Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Trying to change attribute price layout/text

    Hi,

    Having serious problems here and getting a major headache.

    I know the solution is simple - just trying to find it is the problem!

    Does anyone know how to change the way the attributes displays the price for them (currently (+ $x.xx))?

    Basically the reason is that on my gift certificate, priced by attribute, I currently have the attributes looking as follows....

    $5.00 (+$5.00)
    $10.00 (+$10.00)
    etc

    which is going to confuse customers as it looks like you have to pay $5 +$5 for a gift cert!

    Ideally I would like to hide the attribute price on the customers page for ONLY this product (so only the title is displayed).

    Failling that I would like to remove the brackets and + sign so I can have nameless option values, creating the result of:

    $5.00
    $10.00
    etc

    Any ideas?

  2. #2
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Trying to change attribute price layout/text

    I have managed to do the latter of these two options by removing the + sign directly from the attributes controller page and then removing the parenthesis by following these instructions (found 2mins after posting this - typical!) https://www.zen-cart.com/forum/showt...esis+attribute

    If anyone knows how to hide the attribute price for the one product I would still like to know as I would far prefer this!!!

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trying to change attribute price layout/text

    I'm not sure I understand, but the usual method to price a product by attributes is to set the product price to 0.00, so you'll only see the attribute price.

  4. #4
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Trying to change attribute price layout/text

    Hello,

    The price is set to zero, however the display shows:

    OPTION_VALUE ($x.xx)

    I would like to hide the price on one product as the option is a selector for the value of the item (a gift certificate) so the option values are set at being prices.

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

    Default Re: Trying to change attribute price layout/text

    A generic way to selectively hide the attribute price would be to use Flexible Attributes from Free Addons, which gives an id to every attribute, and then modify the attribute output to put a span around the price. Then you can use something like

    #wAttrib23 .attribPrice {display: none;}

    in your stylesheet to hide the particular ones you want.

    You may be able to add the span by defining it into ATTRIBUTES_PRICE_DELIMITER_PREFIX and ATTRIBUTES_PRICE_DELIMITER_SUFFIX like

    /includes/languages/english/your_template/product_info.php
    define {'ATTRIBUTES_PRICE_DELIMITER_PREFIX','<span class="attribPrice">(');
    define {'ATTRIBUTES_PRICE_DELIMITER_SUFFIX',')</span>');
    Last edited by gjh42; 9 Jul 2010 at 02:17 PM.

  6. #6
    Join Date
    Oct 2010
    Location
    Costa Rica
    Posts
    10
    Plugin Contributions
    0

    Default Re: Trying to change attribute price layout/text

    Since there's a discussion going on about attributes, I'd like to know what governs the output of the Product Attributes on a product listing. For example I'd like to display things like Imported and get rid of Manufactured by and have flexibility on what appears there. Thanks in advance!
    Attached Images Attached Images  

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

    Default Re: Trying to change attribute price layout/text

    I don't know how you got that particular layout (did it come with your template?), but those are not attributes. They are "product details", and you can turn most if not all of them off if you want in admin > Catalog > Product Types > Product-General > edit layout. You can redefine the output text like Manufactured by by searching for it in Tools > Developers Toolkit, then editing the language define file that shows you.

  8. #8
    Join Date
    Oct 2010
    Location
    Costa Rica
    Posts
    10
    Plugin Contributions
    0

    Default Re: Trying to change attribute price layout/text

    Thanks, good tip. Searching for keywords really helps.

  9. #9
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: Trying to change attribute price layout/text

    Quote Originally Posted by gjh42 View Post
    A generic way to selectively hide the attribute price would be to use Flexible Attributes from Free Addons, which gives an id to every attribute, and then modify the attribute output to put a span around the price. Then you can use something like

    #wAttrib23 .attribPrice {display: none;}

    in your stylesheet to hide the particular ones you want.

    You may be able to add the span by defining it into ATTRIBUTES_PRICE_DELIMITER_PREFIX and ATTRIBUTES_PRICE_DELIMITER_SUFFIX like

    /includes/languages/english/your_template/product_info.php
    define {'ATTRIBUTES_PRICE_DELIMITER_PREFIX','<span class="attribPrice">(');
    define {'ATTRIBUTES_PRICE_DELIMITER_SUFFIX',')</span>');
    Glenn, am I understanding your post correctly?

    (1) Your first suggestion with the Flex Attribs add-on would allow for hiding the attrib price on a specific attribute (such as Amount of Gift Cert), so that only Option Value would display (which would be ideal for Gift Certs) and
    (2) Your second solution, if doable, would cause the attribute price to disappear globally, across all attributes and products?

    so, just wanted to clarify your post .. I'm still looking for a good solution for having Amount of Gift Cert options show a single dollar amount for each Option Value, but in a way that doesn't cause a global change in the Cart.

    If the parentheses aren't a big deal, then probably the easiest way to make the Gift Cert page look better and less confusing is just to set the Option Values to blank and give them the correct sort order. Then you get something like example on attached screen shot, with correct pricing at checkout.

    Thx..

    Jim
    Attached Images Attached Images  

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

    Default Re: Trying to change attribute price layout/text

    Flexible Attributes makes the class tag treatable on an individual attribute basis. You also need the redefinition with the span tag to give Flexible Attributes a class to grab.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Trying to change attribute text and position
    By doooomed in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2013, 09:03 PM
  2. stuck trying to change product listing layout
    By backinthesaddle in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jul 2009, 10:03 PM
  3. Trying to change login page layout
    By MaryF in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Jan 2009, 11:09 AM
  4. Trying to change the layout of my Zencart
    By amcdougall in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Jul 2007, 10:28 PM
  5. Trying to change price from 30.03 to 30.00
    By raunharman in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 8 May 2007, 09:10 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