Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Posts
    12
    Plugin Contributions
    0

    xhtml problem 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.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default 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!)
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2008
    Posts
    12
    Plugin Contributions
    0

    Default 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. Is there a way to always include the plus sign?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    Code:
    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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Include a plus sign for drop down list

    Thank you, that worked well.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Attribute drop down box – RTL and plus/minus signs alignment…
    By eranariel in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Jul 2011, 12:53 PM
  2. Drop down list for ordering larger quantity with a discount?
    By Soldierxx in forum Managing Customers and Orders
    Replies: 3
    Last Post: 18 May 2011, 03:20 PM
  3. Spry Sign-in Drop Down
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Jul 2009, 04:26 PM
  4. Inventory for drop down list?
    By wondergirl in forum General Questions
    Replies: 2
    Last Post: 25 May 2008, 05:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR