![]() |
adding user-input fields
When a user chooses a product, the product options are shown. I would like to add 3 additional fields which the customer can input information which will be sent with their order.
ie- a Comment field for them to input any special instructions that should be sent with their order. Is this possible without any major customization? |
Hi seaCOAST,
can't sleep, it's 2:45AM in London, just noticed your post. I'm certain this can be done, but it will require mods on at least 2 template files and 1 or 3 php files (/mail/order_notification.tpl, /customer/main/checkout.tpl, /customer/cart.php etc) If I was to try this, I would add the 2 to 4 options to the checkout template (stage 2 or 3) as <input> text or textarea form elements, or use smarty variables to store the info as in (contact us.tpl) The 2 or 3 or however many options could be assigned as an options array in php, with error checking to only pass on variables that contained data, to the mail/order_notification.tpl. I can see another way to shortcut some of this by assiging the php created variables as GLOBAL, meaning the variable would reside in memory. I hope the php/smarty experts, will look at what I posted here, and tell if I'm on the right track, or completely off the rails, as I'm still trying to learn smarty and php, and linux, and SQL and how to go to bed and sleep. Well it's time for me to leave the programming, and try the sleeping bit. Regards, |
Hi,
You could always add a few product options without anything in the options list part. That would create an empty text field that the customer can fill in. Would be better if we could make the text field a text area but not managed that yet. |
Thank you both.
Shan, I wasn't aware that this was possible. Works PERFECTLY! :D |
All times are GMT -8. The time now is 05:19 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.