Default image fields appearance

28/12/2011

By default, all image fields that show up on web-to-print product pages are collapsed when the customer first lands on the page. You can use a custom configuration XML file to change the default appearance of all web-to-print image fields in your store.

This is a default way of showing image fields in a web-to-print product:

Collapsed web-to-print image fields

You can change this default setting and have the image fields expanded by default.

Expanded web-to-print image fields

To achieve this, add the following code inside the <webtoprint> nodes in the custom-options.xml file (located in /app/code/community/ZetaPrints/WebToPrint/etc folder of your Magento installation):

1
2
3
<fields>
<image show-on-load="1" />
</fields>

Or, if you’re editing a custom option for the first time, upload a file named custom-options.xml manually to /app/code/community/ZetaPrints/WebToPrint/etc folder of your Magento installation, with the following file content:

1
2
3
4
5
6
7
<config>
<webtoprint>
<fields>
<image show-on-load="1" />
</fields>
</webtoprint>
</config>
See also: