====== Adding a Gift Wrapping Checkbox on the Checkout ====== Paste the chunk of code below into the templates -> configuration -> checkout -> Add custom form fields to your checkout -> custom checkout fields. {% if gift_wrapping is not defined %} {% set gift_wrapping = false %} {% for item in items %} {% if item.code == "giftwrapping" %} {% set gift_wrapping = true %} {% endif %} {% endfor %} {% endif %}
Also on the configuration section of the administration, paste the following code into the "footer" textarea of the "Add custom header and footer code to your templates" option. You'll just need to modify the "MODIFY THE PRODUCT LINK BELOW" section to set the gift wrapping "product" as desired. If your store is using [[..:.:hmac_validation|link/form signing]], you'll just need to create that link and sign it (using the tool in the "sample code" section of the admin, if you don't have another way) and paste it in there as needed. Make sure it's set to the appropriate category so it has the proper shipping and taxes applied to it.