Passing dynmaic price values to shopping cart

General ShopSite user discussion
Post Reply
brehg
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Passing dynmaic price values to shopping cart

Post by brehg »

I am currently building a site for an aluminum company. There prices are based on linear foot. So what I need to do is have 2 drop down boxes, one for length, one for width. When the user changes the drop down box values then a new price for the product is figured - using the base per liner foot price that is stored in the product details.
That part is very simple. But When the user clicks the submit button how do I pass that new dynamic price to the shopping cart along with the length and the width values that the user selected in the drop down boxes. IS this possible? Has anyone done this before.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

Check out the order option menus help and see if that will work for you.
http://shopsite.com/help/9.0/en-US/sc/p ... tions.html

basically you append a modify to the end of the option and that will change the base price when the person adds the item to the cart.
brehg
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Is it Possible

Post by brehg »

I need to have to drop down boxes that are multiplied by each other - length * width and then that multiplied by the price stored with the product. Can I do that by appending a modifier. There is no way to pass a price to the shopping cart from the product page?
BFChris
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Post by BFChris »

You could probably use a Variable price item and use Javascript to calculate the total and pass it to the cart......
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
brehg
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Yes I hope so

Post by brehg »

Yeah the javascript part is easy. But I don't know who to use a variable price item and pass it to the cart.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

There is an example of how to code a variable price product in a custom template in the help at
http://www.shopsite.com/templates/examp ... price.html
Post Reply