Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    279
    Plugin Contributions
    0

    Default How I you hide the price on the product listing page? (not details page)

    How do you hide the price on the products page? (not details page)

    The code is in the modules/product_listing.php file, but I can't see to be able to hide to price without rearranging the rest of the product layout. I was getting errors from an older version that I've now replaced with the default product_listing.php file and set up the way I want, but the price appears and I only need it to appear on the product details page.

    thank you,
    Jeff
    Jeff Michaels,
    pres of Musical Creations Ltd.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,683
    Plugin Contributions
    123

    Default Re: How do you hide the price on the products page? (not details page)

    Admin > Configuration > Product Listing > Display Product Price/Add to Cart, set to 0.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    279
    Plugin Contributions
    0

    Default Re: How do you hide the price on the products page? (not details page)

    Hm, thank you, but that also removed the entire column for me.

    Just below the price in the same column I have a big (dumb person) button to make it easy to click to the details page. It disappears too. I only need the price to hide and I tried to remove it from the code, but it messed up the columns when I commented out various lines.
    Jeff Michaels,
    pres of Musical Creations Ltd.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: How do you hide the price on the products page? (not details page)

    If you've modified the portion of the store's software that you want to respond differently than a base/vanilla version, then going to have to show the changed code for anyone to be able to suggest how the modified store should further be changed to get the desired result. So far what is known is that changing the setting for a variable that was determined to do what was necessary for a base install doesn't work on this modified site. Whether the suggestion is/was right/wrong I don't yet know as I too haven't attempted to duplicate the effort recommended.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,683
    Plugin Contributions
    123

    Default Re: How do you hide the price on the products page? (not details page)

    In 1.5.7b, in the file includes/modules/product_listing.php, the price is set on line 110.

    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';

    you could make this just

    $lc_price = '<br>';

    and see how that looks.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    279
    Plugin Contributions
    0

    Default Re: How do you hide the price on the products page? (not details page)

    Thank you!

    Yep, that was pretty simple. ;-/
    Leave the ID, then replace with a '<br>' or just put '' which worked better for me.

    I was trying to hide the whole line at first which created the error.
    Jeff Michaels,
    pres of Musical Creations Ltd.

 

 

Similar Threads

  1. v139h Hide the images for document type product in the listing page?
    By Cindy2010 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Feb 2012, 06:32 AM
  2. How to modify the Product Details List on the Product Details Page to look tabular?
    By CaptainCarlton in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Jul 2011, 02:41 PM
  3. How can I hide the category image on the product info page?
    By rstevenson in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Nov 2008, 09:04 PM
  4. How to get rid of / hide the price on the main page only?
    By jaggers in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Nov 2007, 03:33 AM
  5. How do you hide the maximum quantity from the product display? and....
    By kinget in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 May 2007, 12:47 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