What is the best way to change price based on a drop down?

General ShopSite user discussion

What is the best way to change price based on a drop down?

Postby cameron » Wed Mar 11, 2009 1:13 pm

What is the best way to add dollars to the price of a product. I'm guessing checkboxes but was wondering if people had any better way?

I have a product that has an additional option and if that option is selected it increases the cost.

For instance ...

Product A - $699.00
Option 1 - $200.00

So there are two prices for this product. It can be $699 or $899 if the option is checked.

Could anywhere point me to the code that I would need to add and perhaps where I would add it?

Much thanks!
Erik
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby Jim » Wed Mar 11, 2009 1:27 pm

How is the option selected?

Pro and Manager level stores have Order option pricing that is formatted like this.

Product A has a base price of $699.00 Each option would add additional $200.

In the order option section you would put
base
Option 1;+200
Option 2;+300

Help on the feature can be found at
http://www.shopsite.com/help/10.0/en-US ... tions.html
for a pro store or
http://www.shopsite.com/help/10.0/en-US ... tions.html
for a manager store.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby cameron » Wed Mar 11, 2009 2:44 pm

I was hoping that the order would be selected on the MoreInfo page via a check box underneath the price.
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby Jim » Wed Mar 11, 2009 3:42 pm

So you will need to have two products then, the main product and the option part.
You could create a multi add to cart template and that would allow you to add both products to the cart at the same time. See
http://www.shopsite.com/help/10.0/en-US ... i-add.html for a sample of how this would be done.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby cameron » Wed Mar 11, 2009 4:41 pm

Jim,

Is there a way to put the code for a checkbox and price increase into a custom field for the product and do it that way?

Putting this inside a custom field and displaying it inside the form did nothing for me except show a text box.

<input type=checkbox name=itemnum value=[-- PRODUCT.RECORDNUMBER --]>

Thanks again for the help.
Erik
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby Jim » Wed Mar 11, 2009 6:03 pm

[-- PRODUCT.RECORDNUMBER --] is a template tag and will only be evaluated in the template itself and not if it is in a text field. Depending on how your template is setup replacing the [-- PRODUCT.RECORDNUMBER --] with the product's record number might work if the input field is placed inside of the form.

Determining the record number might be a little difficult if you have lots of products but if you have just a few you could view the source of the page for the List all Products screen and find the product name and the record number will be in that line as a value.
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 128 guests