View Single Post
  #1  
Old 04-09-2009, 03:05 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Adding additional product options to all products

Hi,

I am trying to add something to allow customer to add optional customisation to their product but i have gotten stuck.

I created a file that contains all my php and javascript which displays custom text to be stitched onto the product with different fonts and colors.

I added a product option so that it is hidden when set to "No" and displayed when set to "Yes" + the extra cash for the customisation.

Now I need to pass this information to the cart / invoice. I have stretched the form in product.tpl to include the new file and have passed it to cart.php and displayed it when mode = add (around line 220) using echo $_POST[....] and die() to stop it so i can see, but i am not sure where to go from here.

Can anyone offer some advise?

I have been able to use product options to put in this module as individual options, but there are around 1000 products to add these to so my client protested.
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
Reply With Quote