Override file download permissions

19/04/2011

You can use a custom configuration XML file to allow output file download regardless of weather it’s permitted in template settings on your web-to-print portal.

To enable file download 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/local/ZetaPrints/WebToPrint/etc folder of your Magento installation).

1
2
3
<file-download>
<users allow="1" />
</file-download>

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

1
2
3
4
5
6
7
<config>
<webtoprint>
<file-download>
<users allow="1" />
</file-download>
</webtoprint>
</config>

Read more about custom configuration XML files.

Reversible effect

After making these modifications to the custom configuration file, your customers will be able to download all generated print-ready output files.

Links to the files will appear on order details page.

This includes orders placed before you made the changes and orders that will be placed in the future.

Removing the setting brings it back to the default behavior.

See also: