Passing dynmaic price values to shopping cart

General ShopSite user discussion

Passing dynmaic price values to shopping cart

Postby brehg » Sat Jul 12, 2008 11:03 am

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.
brehg
 
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Postby Jim » Sat Jul 12, 2008 5:25 pm

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Is it Possible

Postby brehg » Mon Jul 14, 2008 11:30 am

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?
brehg
 
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Postby BFChris » Mon Jul 14, 2008 11:54 am

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
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Yes I hope so

Postby brehg » Mon Jul 14, 2008 12:51 pm

Yeah the javascript part is easy. But I don't know who to use a variable price item and pass it to the cart.
brehg
 
Posts: 14
Joined: Sun Jul 06, 2008 7:12 pm

Postby Jim » Mon Jul 14, 2008 1:11 pm

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
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 96 guests