Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  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

  7. #7
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    Where can i change the name of the "Price"? Because I want to translate it and i dunno where from.

    Thank you.

  8. #8
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    Never mind, found it. It's in zencart/includes/modules/product_listing.php at this section case 'PRODUCT_LIST_PRICE':
    $lc_text = 'Price';

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: remove price on product listing & New Products

    Quote Originally Posted by bladecris View Post
    Never mind, found it. It's in zencart/includes/modules/product_listing.php at this section case 'PRODUCT_LIST_PRICE':
    $lc_text = 'Price';


    That is not something in STANDARD, CORE zencart.

    Looks like you have a commercial module installed, where the developer has FORCED the define text into the MODULE FILE.

    That section should read:
    case 'PRODUCT_LIST_PRICE':
    $lc_text = TABLE_HEADING_PRICE;

    ... and the relative text for TABLE_HEADING_PRICE is located in a LANGUAGE FILE as a DEFINE STATEMENT.

    Module files are very "sensitive". Generally there is no need for a "novice" to edit them.

    This demonstrates the types of risks associated with many commerical templates, where the creator blithely (or deliberately) by-passes protocol.
    20 years a Zencart User

  10. #10
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: remove price on product listing & New Products

    I downloaded it from zen-cart.com latest version 1.3.9h full fileset

 

 
Page 1 of 2 12 LastLast

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

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