Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    St. Louis, MO
    Posts
    69
    Plugin Contributions
    0

    Default remove price on product listing & New Products

    Have included the price in the Product Name (cause I like the way it looks).

    Would like to exclude the price from the "New Products For Month" listing on the main page (Home)
    http://myseedsofhappiness.com/store/
    Configuration/New Listing/Display Product Price is set to "0" but does not seem to change anything that I can see?

    And would like to hide the price under the Price column, but keep the Add to Cart button, on the category pages
    http://myseedsofhappiness.com/store/...=index&cPath=7

    Suggestions?

  2. #2
    Join Date
    Aug 2009
    Location
    St. Louis, MO
    Posts
    69
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    Quote Originally Posted by itseemedsosimple View Post
    Have included the price in the Product Name (cause I like the way it looks).

    Would like to exclude the price from the "New Products For Month" listing on the main page (Home)
    http://myseedsofhappiness.com/store/
    Configuration/New Listing/Display Product Price is set to "0" but does not seem to change anything that I can see?

    And would like to hide the price under the Price column, but keep the Add to Cart button, on the category pages
    http://myseedsofhappiness.com/store/...=index&cPath=7

    Suggestions?
    Found the answer to the second question at
    http://www.zen-cart.com/forum/showthread.php?t=109078 on about the eighth page of the response to my query - sorry.

    But still have not found a solution to the first desire.

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

    Default Re: remove price on product listing & New Products

    There is no identifier to use styling on for the price, so you will have to edit a PHP file to remove the price.
    In /includes/modules/your_template/new_products.php around line 70, replace
    '</a><br />' . $products_price
    with
    '</a>'
    in
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' ' ' 'style="width:' $col_width '%;"',
        
    'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' zen_image(DIR_WS_IMAGES $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTHIMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' $new_products->fields['products_name'] . '</a><br />' $products_price); 
    to get
    PHP Code:
        $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' ' ' 'style="width:' $col_width '%;"',
        
    'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' zen_image(DIR_WS_IMAGES $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTHIMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' $new_products->fields['products_name'] . '</a>'); 

  4. #4
    Join Date
    Aug 2009
    Location
    St. Louis, MO
    Posts
    69
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    Thanks, tg

  5. #5
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    Thanx! It works great!
    http://www.dodeca.eu/
    Zen Cart is simply Jamming

  6. #6
    Join Date
    Mar 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    This worked great for me too! Thanks for the help

 

 

Similar Threads

  1. Replies: 1
    Last Post: 19 Dec 2009, 07:47 AM
  2. Remove "New Products" from Product Listing
    By TurtleDove in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Aug 2009, 05:45 AM
  3. Turn off 'New Products' & 'Featured Products' in product listing.
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Jul 2009, 07:28 AM
  4. How to Remove New Products Listing?
    By neighbornick in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Apr 2009, 05:52 PM
  5. Product Images & Description MISSING in the NEW PRODUCTS & ALL PRODUCTS LISTING pages
    By TJB in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 30 Apr 2008, 03:36 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