Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Adding text after price

    On the product listing page I would like to add the words "per set" after the price (on the same line). How do I do this?

    Thanks.

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

    Default Re: Adding text after price

    Get a really big screen ...

    Is that even going to fit on one line?

    What about with a Special or a Sale?

    This can be done, but I don't think you have room for it on one line ...

    Is that the only place you need to see this?
    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!

  3. #3
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Adding text after price

    Yes, that's the only place it needs to show. Could you please tell me how? Thanks!

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

    Default Re: Adding text after price

    Copy the products_listing module to your templates and overrides directory and you can add in the text or via a constant what you would like to see ...

    Then set the width in the Configuration ... Product Listing for the Price column to be wide enough to accommodate this ...
    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
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Adding text after price

    Thanks. I've tried adding it both ways, using a constant and text, but nothing is showing. I set the price column to 200. Could you please show me where exactly in the code I need to add the text? I don't know php all that well.

    Thanks.

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

    Default Re: Adding text after price

    In /includes/modules/your_template/product_listing.php, find this section
    PHP Code:
     case 'PRODUCT_LIST_PRICE':
            
    $lc_price zen_get_products_display_price($listing->fields['products_id']) . '<br />';
            
    $lc_align 'right';
            
    $lc_text =  $lc_price
    and add

    [ space ] per set

    to get this
    PHP Code:
     case 'PRODUCT_LIST_PRICE':
            
    $lc_price zen_get_products_display_price($listing->fields['products_id']) . ' per set<br />';
            
    $lc_align 'right';
            
    $lc_text =  $lc_price

  7. #7
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Adding text after price

    Thanks. I tried this but no change.

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

    Default Re: Adding text after price

    Then you have somehow not gotten the edit to the right place to be recognized.

    What is your custom template name?
    What is the filepath to your custom template?
    What is the filepath to your edited product_listing.php?
    Post the section of the file that you edited (say 5 lines on either side).

  9. #9
    Join Date
    Apr 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Adding text after price

    That was it. I was uploading to the wrong folder. Thank you!

 

 

Similar Threads

  1. Adding ex VAT text after price
    By Jakesza in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 8
    Last Post: 28 Mar 2016, 02:04 PM
  2. v138a Adding text "Price" in front of the price
    By gabicen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jun 2012, 09:00 PM
  3. adding words after price
    By partyparcels in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 20 Jan 2008, 06:57 AM
  4. Adding to Price Text
    By fraser1203 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 May 2006, 03:50 PM
  5. Recalculate Price after adding options
    By gguidi in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 12 May 2006, 10:36 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