Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    help question Product Listing Page - Show "Starting at..." Text

    Hi

    I've been looking around for a solution to this, but have only come across one thread that covers what I'm wanting to do, and it used a solution that is no good for me (find it here http://www.zen-cart.com/showthread.p...t-Listing-Page).

    The solution on that particular thread was altering the header text. What I want to do is the following:

    If a product is available with two options -- let's say Small for $5 and Large for $10 -- the product listing page simply shows $5. Once inside the actual product description page, there is the "Starting at: $5" wording.

    We have had feedback from our clients that the low price shown on the product listing page is misleading... We'd like to alter this so that the "Starting at" wording also shows on the product listing page.

    Hoping someone has some ideas on how I can incorporate this.

    Thanks in advance,
    Tija

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

    Default Re: Product Listing Page - Show "Starting at..." Text

    You could customize the module:
    /includes/modules/product_listing.php

    using your templates and overrides and add the code in RED:
    Code:
            case 'PRODUCT_LIST_PRICE':
            $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
            $lc_align = 'right';
    if (zen_has_product_attributes($listing->fields['products_id'])) {
     $lc_price = TEXT_BASE_PRICE . $lc_price;
    }
            $lc_text =  $lc_price;
    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
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Product Listing Page - Show "Starting at..." Text

    OK -- thanks for that, Ajeh.

    The only problem is that the snippet of code you have supplied adds "Starting at..." to all products with attributes, not just the ones with differing prices through attributes.

    Is there any way to modify the code a little so that it only shows the "Starting at..." wording on products that have priced attributes?

    Thanks,
    Tija

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

    Default Re: Product Listing Page - Show "Starting at..." Text

    Try using this code in RED:
    Code:
            case 'PRODUCT_LIST_PRICE':
            $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
            $lc_align = 'right';
    // bof: Add Starting at to prices with Attributes with prices
    if (zen_has_product_attributes($listing->fields['products_id'])) {
      global $db;
      $chk_attributes = $db->Execute("SELECT products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " WHERE products_id ='" . $listing->fields['products_id'] . "' and options_values_price !=0");
      if ($chk_attributes->RecordCount() > 0) {
        $lc_price = TEXT_BASE_PRICE . $lc_price;
      }
    }
    // eof: Add Starting at to prices with Attributes with prices
            $lc_text =  $lc_price;
    
            // more info in place of buy now
    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
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Product Listing Page - Show "Starting at..." Text

    Thanks -- that's works perfectly

    - Tija

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

    Default Re: Product Listing Page - Show "Starting at..." Text

    Thanks for the update that this is now working for you ...
    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!

  7. #7
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Product Listing Page - Show "Starting at..." Text

    Thank you for this! I needed it as well!!

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

    Default Re: Product Listing Page - Show "Starting at..." Text

    You are most welcome ... thanks for the update that you too needed this and that it worked for you as well ...

    Remember the Zen Cart Team when you are rich and famous ...
    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!

 

 

Similar Threads

  1. showing "Starting at:" in Product listing
    By MattyZee in forum Setting Up Categories, Products, Attributes
    Replies: 27
    Last Post: 14 Jun 2011, 03:25 AM
  2. "More Pictures" text on product listing page?
    By 524cw in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Nov 2010, 03:17 PM
  3. Show "Starting At" on Product Listing Page
    By daltonkost in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jan 2010, 01:23 PM
  4. "Starting at" price on the product listing page
    By Three Sisters in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Dec 2007, 09:39 PM
  5. how do i right align my product attributes & remove "starting at" price text?
    By tarynhipp in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 2 May 2007, 09:27 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