Enable / Disable Fit-in-field image editing

26/10/2011

You can use a custom configuration XML file to (de)activate a special web-to-print extension feature that enables users to edit uploaded images in reference to the image field properties in the template.

This feature is experimental in all web-to-print extension releases prior to 2.x.

Fit-in-field image editing for web-to-print

Variable image fields, in web-to-print or dynamic imaging templates, have different sizes, proportions and quality requirements. The Fit-in-field feature ensures that customers edit their uploaded images in reference to the variable field where the image is used.

Enable / Disable Fit-in-field feature

Since release 1.9.2.0beta15 (beta) of the web-to-print extension, the Fit-in-field feature is enabled by default.

To deactivate this option in the interactive image editing menu in your Magento web-to-print store, 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
<image-edit>
<in-context enabled="0" />
</image-edit>

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>
<image-edit>
<in-context enabled="0" />
</image-edit>
</webtoprint>
</config>

You can enable it again by changing the value of “in-context enabled” to 1, like so:

1
2
3
<image-edit>
<in-context enabled="1" />
</image-edit>
See also: