View Single Post
  #2  
Old 11-16-2002, 06:23 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

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,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote