Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Remove/modify display of PRICE_PREFIX?

    Seems like nobody has asked about this before, so I started a new thread, which I is posted in the right place (hmm, maybe a "coding customizations-forum" would be more relevant ).

    I'm trying to modify/remove the display of PRICE_PREFIX. When you create menu's using for example radio buttons (which involves attributes), the parenthesis and +"price" is automatically added to every attribute-menu-choice. I'd like to remove the parenthesis, display some other "symbols" and remove the +sign.
    Now PRICE_PREFIX has a functionality as well, and especially important is that I don't mess up with the database entries when doing this customization. Therefore the + has to be added into the database when new attributes are made. So I was wondering what file to edit (avoiding DB trouble ), and where that line of code can be found.

    Thanks in advance!
    ZenCart? Oh yeah sure!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Remove/modify display of PRICE_PREFIX?

    Peek in the attributes template and module.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Remove/modify display of PRICE_PREFIX?

    Quote Originally Posted by Kim View Post
    Peek in the attributes template and module.
    hmm couldn't see the + and/or the parenthesis in that file. But maybe I've misunderstood what PRICE_PREFIX really is. Ok whatever this + sign and parenthesis is called, where is it located (where can I remove it from displaying completely on the "product info pages" that the customers see when looking at single 1 product).
    ZenCart? Oh yeah sure!

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

    Default Re: Remove/modify display of PRICE_PREFIX?

    If you don't want to see the + on the price ... then just do not add it to the Attribute ...

    + and blank are Adding to the price
    - is subtracting from the price
    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!]
    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
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Remove/modify display of PRICE_PREFIX?

    Quote Originally Posted by Ajeh View Post
    If you don't want to see the + on the price ... then just do not add it to the Attribute ...

    + and blank are Adding to the price
    - is subtracting from the price
    Allright, that means it's added into the database. And with that + would be the same as no symbol at all?
    ZenCart? Oh yeah sure!

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

    Default Re: Remove/modify display of PRICE_PREFIX?

    That is correct ...

    Product Price 15.00
    Price Prefix +
    Price 10.00

    Price would be $25.00
    Product Price 15.00
    Price Prefix (blank)
    Price 10.00

    Price would be $25.00
    Product Price 15.00
    Price Prefix -
    Price 10.00

    Price would be $5.00
    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!]
    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!

  7. #7
    Join Date
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Remove/modify display of PRICE_PREFIX?

    Yup I just found it :

    the + sign is stored in the table called: zen_products_attributes
    In the column called: price_prefix

    Now I was wondering if I can just do a massupdate (I know how to do this massupdate, but is it safe to only change this value, or more values in other places have to be changed as well) in the database, by simply replacing all the + in that column (price_prefix)? Would I have to remove the + in any other place inside the database?
    ZenCart? Oh yeah sure!

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

    Default Re: Remove/modify display of PRICE_PREFIX?

    You can replace all the price_prefix with blank where price_prefix = +

    PHP Code:
    UPDATE products_attributes SET price_prefix '' WHERE price_prefix '+'
    Then if you use any Priced by Attribute products, you would want to run the Tools ... Store Manager ... Update Product Price Sorter ...
    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!]
    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!

  9. #9
    Join Date
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Remove/modify display of PRICE_PREFIX?

    Quote Originally Posted by Ajeh View Post
    You can replace all the price_prefix with blank where price_prefix = +

    PHP Code:
    UPDATE products_attributes SET price_prefix '' WHERE price_prefix '+'
    Then if you use any Priced by Attribute products, you would want to run the Tools ... Store Manager ... Update Product Price Sorter ...
    Thank you , but with this do you mean that this is the only place in the DB where the update is needed (just want to make sure so I avoid DB problems later on )?

    Where can I remove that parenthesis that is displayed, see example (+$5.00).
    Doing a search through all files, looking for "()" is not possible since there is the price in between . And "(" will be encountered in almost every PHP-file since the "()" is a very common part of the PHP coding-itself.
    ZenCart? Oh yeah sure!

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

    Default Re: Remove/modify display of PRICE_PREFIX?

    You would need to edit the module for the attributes ...
    /includes/modules/attributes.php

    and copy to your templates and overrides directory:
    /includes/modules/your_template_dir/attributes.php

    Searching on:
    ' (
    ) '

    should help you locate where those are set on the price ...
    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!]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 How do I modify paging's display mode?
    By sfgl in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Mar 2016, 04:19 AM
  2. modify display order of attribute
    By petergy in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Apr 2013, 04:29 AM
  3. modify USPS module display text on checkout pages?
    By mcqueeneycoins in forum Addon Shipping Modules
    Replies: 10
    Last Post: 2 Jun 2012, 06:05 PM
  4. How to modify, delete, or remove certain menu title?
    By frontier2002 in forum Basic Configuration
    Replies: 6
    Last Post: 29 Jun 2009, 04:43 PM
  5. modify category path to display clearly
    By ebaobao in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Sep 2008, 05:26 PM

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