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.
Passing dynmaic price values to shopping cart
-
- Site Admin
- Posts: 4953
- Joined: Fri Aug 04, 2006 1:42 pm
- Location: Utah
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.
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.
-
- Posts: 14
- Joined: Sun Jul 06, 2008 7:12 pm
Is it Possible
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?
-
- Posts: 322
- Joined: Mon Oct 09, 2006 3:28 pm
- Location: PA
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
--------------------------------
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
-
- Posts: 14
- Joined: Sun Jul 06, 2008 7:12 pm
Yes I hope so
Yeah the javascript part is easy. But I don't know who to use a variable price item and pass it to the cart.
-
- Site Admin
- Posts: 4953
- Joined: Fri Aug 04, 2006 1:42 pm
- Location: Utah
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
http://www.shopsite.com/templates/examp ... price.html