Nixnix Posted December 29, 2015 Share Posted December 29, 2015 Hello. I have a question about the options gift wrapping and recycled packaging. We use both these options, but they are quite easy to miss during the packing process. We only use invoices (not delivery slips) and now we have to look at the order page in the backoffice and manually write a note by hand if for example the customer chose recycled packaging. I would like to put this information somewhere on the invoice. How would I go about doing that? Optimally, I would just want a small code such as for example "G Y/N" (for gift) and "R Y/N" (for recycled) printed somewhere on the invoice with Y or N depending on the customer's choice. We use PS 1.6.0.9. Thank you. Link to comment Share on other sites More sharing options...
tuk66 Posted January 4, 2016 Share Posted January 4, 2016 It should by easy to use the $order->total_wrapping and the $order->recyclable values in the template. 1 Link to comment Share on other sites More sharing options...
Nixnix Posted February 9, 2016 Author Share Posted February 9, 2016 For reference, I added: {if $order->recyclable} <b>Recycling</b> {/if}<br /> {if $order->total_wrapping > 0} <b>Gift</b> {/if} Into invoice.tpl, and it seems to work fine. Thank you tuk66! Link to comment Share on other sites More sharing options...
mattheoh Posted May 23, 2016 Share Posted May 23, 2016 Hi, thanks for your post. It's strange, I m trying to use this code on 1.6.1.5... but it doesn't seem to work. Someone knows if something changed between these versions ? Link to comment Share on other sites More sharing options...
tuk66 Posted May 24, 2016 Share Posted May 24, 2016 In which file are you trying to use that snippet? Link to comment Share on other sites More sharing options...
mattheoh Posted May 24, 2016 Share Posted May 24, 2016 Hi thanks for your answer. I tried to put the code : {if $order->total_wrapping > 0} <b>Gift</b> {/if} in pdf/header.tpl and pdf/invoice.tpl But nothing is displayed for orders with wrapping gift checked. Link to comment Share on other sites More sharing options...
jihem Posted June 16, 2016 Share Posted June 16, 2016 (edited) Hello mattheoh, This is the solution : {if $order->gift != 0} <b>+ Gift wrap.</b>{/if} Edited June 16, 2016 by jihem (see edit history) Link to comment Share on other sites More sharing options...
mattheoh Posted September 26, 2016 Share Posted September 26, 2016 Hello mattheoh, This is the solution : {if $order->gift != 0} <b>+ Gift wrap.</b> {/if} Hi thanks for the answer and sorry for the delay... I didn't see your answer. Unfortunately on PS 1.6.1.5 it still doesn't work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now