Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Remove the addition sign in attributes dropdown

    I have created one gift card w/ multiple attributes for the different denominations. However, I would like to remove the addition sign and just have the option value listed. similar to this sitehttps://www.menswearhouse.com/webapp...2BmOzxV3U4tDXn


    This is my site
    http://www.ourstyleonline.com/index....products_id=88

    Thanks in advance for any help!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Remove the addition sign in attributes dropdown

    In the attributes controller you can remove the + sign when adding/editing this attribute to a product

    https://www.zen-cart.com/tutorials/index.php?article=57
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Remove the addition sign in attributes dropdown

    That is it...Is there a way to just have the amount w/o having to repeat 100 ($100.00) just $100?

    Thanks!

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove the addition sign in attributes dropdown

    Without changing code in the attributes files, you can modify the definition of the ( and ) for this to include a <span> with classname, then style that span with display: none in your stylesheet. I gave full instructions a while back, not sure exactly where now.

    define ('CONSTANT_NAME1', '<span class="hideAttPrice"> (');
    define ('CONSTANT_NAME2', ')</span>');

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove the addition sign in attributes dropdown

    /includes/languages/english/your_template/product_info.php

    Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

    //change to

    Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', '<span class="hideAttPrice"> ( ');

    Line 43 similar for closing </span>.

  6. #6
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Remove the addition sign in attributes dropdown

    I am a bit new to span, class,etc. Where do I put the hideAttPrice? Don't I need to make reference to that in the stylesheet. I tried the code and it just appeared in the attribute window and didn't hide the attribute price. I am assuming because I didn't make reference to it in the stylesheet. Excuse my lack of knowledge on the subject.

    Thanks in advance!

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove the addition sign in attributes dropdown

    Yes, you would put
    .hideAttPrice {display: none;}
    in your stylesheet.

    What did you have for lines 42 and 43? They both have to be right for it to function correctly.

  8. #8
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Remove the addition sign in attributes dropdown

    Yes, I have tried putting it in my stylesheet and on productinfo. However, this is what is showing up in my attribute box now


    http://www.ourstyleonline.com/index....products_id=88

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove the addition sign in attributes dropdown

    The < and > are being converted into code &lt; and &gt; so they can't work. Even when I edit the HTML output of that page and reconvert them to < >, the styling doesn't seem to affect them (though they do become proper HTML tags and disappear from the screen).
    I will have to look at this some more. I thought it had been tested at some point, but maybe it hadn't.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove the addition sign in attributes dropdown

    Just tried it on my local test site. It works fine for radiobuttons, but not for dropdowns. The dropdowns do show the span code as well, so this solution is really limited to sites that have no dropdowns (or no pricing on dropdowns).

 

 

Similar Threads

  1. Remove + Sign from attributes Price?
    By Best Price Accessori in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 May 2009, 06:02 PM
  2. remove the sign up button and the link
    By malik1985 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2009, 09:50 PM
  3. Removing the '+' plus sign in the price field - Multiple Attributes
    By alana1223 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 25 Feb 2009, 09:42 PM

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