Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Include a plus sign for drop down list

Include a plus sign for drop down list

Locked

Views: 3,027

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
3 Jun 2009, 4:50 PM
#1
07dcolem avatar

07dcolem

New Zenner

Join Date:
Feb 2008
Posts:
13
Plugin Contributions:
0

Include a plus sign for drop down list

I've been searching the forum and can't figure out how to add a plus sign to my attribute drop down. I.E. Size large costs $10 more than the base price, so the drop down option looks like this:

Large ($10.00)

And I want it to look like this:

Large (+$10.00)

Could someone please explain this or direct me to the post that does.

Thank you. :cool:

3 Jun 2009, 5:02 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Include a plus sign for drop down list

Navigate to the Attributes Controller for the product in question.

Scroll down through the screen, into the big grey box, until your reach:
**
Prices and Weights**

There - under the little heading called "Price" you will see TWO input fields. In the LEFT one, put your + . In the RIGHT one put 10.0000 (with four decimals!)

3 Jun 2009, 6:04 PM
#3
07dcolem avatar

07dcolem

New Zenner

Join Date:
Feb 2008
Posts:
13
Plugin Contributions:
0

Re: Include a plus sign for drop down list

Thank you for your response!

This would work for me, but I have about 160 products to apply this to. :blink: Is there a way to always include the plus sign?

4 Jun 2009, 5:39 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Include a plus sign for drop down list

If you want every single attribute to have the + in front of the price, you then want to:

1 Backup your database

2 then run the SQL command:

UPDATE products_attributes SET price_prefix = '+';

that can be run in either the Tools ... Install SQL Patches ... or in phpMyAdmin but be aware of prefixes as phpMyAdmin need the exact table name and Install SQL Patches converts it for you ...

4 Jun 2009, 5:55 PM
#5
07dcolem avatar

07dcolem

New Zenner

Join Date:
Feb 2008
Posts:
13
Plugin Contributions:
0

Re: Include a plus sign for drop down list

Thank you, that worked well.

4 Jun 2009, 10:18 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Include a plus sign for drop down list

Thanks for the update that this was able to save you a considerable amount of time vs adding the price_prefix per attribute ... :smile: