Using JS to modify SKU and Price based on Order Options

General ShopSite user discussion

Using JS to modify SKU and Price based on Order Options

Postby Jared » Sun Aug 06, 2006 7:47 am

Has anyone tried to use Javascript to modify the SKU and Price (visible on the page) based on the user choosing an order option? The shopping cart we are migrating from automatically updates the price when the user chooses an option, and also shows the new SKU... we'd like to be able to update the price, show the new SKU, and send the new SKU to the shopping cart when the Add to Cart button is pressed.

From my searching in the forum here, I'm pretty sure we'll have to use Variable SKU to get the shopping cart to show the SKU... and, if I spend enough time at it, I'm sure I can write some JS that updates the price based on the dropdown choices... just hoping someone has already written the code :)

(As for the SKU, our order management software (StoneEdge) already supports building SKUs based on order options, but we'd prefer to show the correct SKU directly on the item page, in the cart, and also not have the extra text in the dropdown...)

If anyone has done anything like this, let me know... any assistance is appreciated.
Jared
Jared
 
Posts: 4
Joined: Sun Aug 06, 2006 7:16 am
Location: Boulder Junction, WI

Return to User Forum

Who is online

Users browsing this forum: No registered users and 151 guests