View Single Post
  #3  
Old 05-01-2009, 06:06 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Possible to email wishlist?

I don't think there is a simple solution for this. It sounds like you want to pass the options selected to the product page from variables in the URL.

In the default X-CART setup - the options are stored in javascript variables. So, to do what you want, you would need to modify the php to get the variables you want selected from a URL, then use Smarty to pass those variables to the javascript to initialize the options you want selected. X-CART now initializes the selected options in the javascript based on the first option in stock - so you would have to modify that javascript to instead get the selected variables by matching something it found in the URL to what it found in the database. It probably could be done, but it sounds fairly complex. The existing code that retrieves the variants/options from the database and sets them to javascript variables is not the easiest to understand.

Hopefully some one will post something clever that is easier and that you and I are missing!
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote