Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Show Price Starting At

    Hello All,
    PHP7.4, ZC 1.5.7c, Latest Bootstrap template. I have products with "priced by attributes", price 0.00 and actually priced by attributes. So on the product info page I have the Starting at showing up. Is there a way to do this on the listing page/s? Sorry for the super lame question but I haven't done a bunch of this in a very long time and searching zc forum for "starting at" does nothing for me lol.

    Thank you,
    John

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Show Price Starting At

    For clarity? Is there just the one issue: display on listing pages (e.g. Category showing all product, products_all, products_new, etc..) the text starting at with the minimum price for the product or is there something more to "correct"?

    The first sentence seems to hint at a possible other/additional problem, but then the focus changes to the text for listings.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Show Price Starting At

    Hey MC. Just the one problem. Show "Starting at" on listing, new, all etc..

    Thank you,
    John

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Show Price Starting At

    Ok. So I've come to the conclusion that this is not a switch flip issue. I'm certainly not complaining but you think that'd be a switch flip thing. I mean it is for the product info page, but not for the product listing pages?? Strange. So anywho, I'm gonna leave it alone for the time being as there is much more work to be done. I'll either get used to what's there or do some digging around the functions_prices.php...

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: Show Price Starting At

    Quote Originally Posted by bumba000 View Post
    Hello All,
    PHP7.4, ZC 1.5.7c, Latest Bootstrap template. I have products with "priced by attributes", price 0.00 and actually priced by attributes. So on the product info page I have the Starting at showing up. Is there a way to do this on the listing page/s? Sorry for the super lame question but I haven't done a bunch of this in a very long time and searching zc forum for "starting at" does nothing for me lol.

    Thank you,
    John
    I too searched for 'starting at' and found this post that might do it for you:

    https://www.zen-cart.com/showthread....g-at-quot-Text
    Simon

  6. #6
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Show Price Starting At

    Hey Simon,
    Thanks for the link! I had seen that about a week ago now but was looking for a more recent solution. For those following along. Ajeh's solution does work but requires a little modification to work in ZC 1.5.7.

    With a stock cart, override the includes/modules/product_listing.php. Find case 'PRODUCT_LIST_PRICE'. There are two of these. The one you're looking for is near line 300. Replace with following!

    PHP Code:
    case 'PRODUCT_LIST_PRICE':
                        
    $lc_align 'center';
                        if (
    $product_listing_layout_style === 'table'$lc_align 'right';
                        
    $lc_text '';
                        
                        
    // if ($product_listing_layout_style === 'columns') $lc_text .= '<label>' . TABLE_HEADING_PRICE . '</label>';
    //                    $lc_text .= '<div class="list-price">';
                        
    $lc_text .= $listing_price;
    //                    $lc_text .= '</div>';
    //                    $lc_text .= '<br><br>';
                        
    $lc_text .= zen_get_buy_now_button($record['products_id'], $lc_button$more_info_button);
    //                    $lc_text .= '<br>';
                        
    $lc_text .= zen_get_products_quantity_min_units_display($record['products_id']);
    //                    $lc_text .= '<br>';
                        
    if (zen_get_show_product_switch($record['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH')) {
                            if (
    zen_get_product_is_always_free_shipping($record['products_id'])) {
                                
    $lc_text .= '<div class="text-center">';
                                
    $lc_text .= TEXT_PRODUCT_FREE_SHIPPING_ICON;
                                
    $lc_text .= '</div>';
                            }
                        }
                        
    // bof: Add Starting at to prices with Attributes with prices
                        
    if (zen_has_product_attributes($record['products_id'])) {
                          global 
    $db;
                          
    $chk_attributes $db->Execute("SELECT products_id from " TABLE_PRODUCTS_ATTRIBUTES " WHERE products_id ='" $record['products_id'] . "' and options_values_price !=0");
                          if (
    $chk_attributes->RecordCount() > 0) {
                            
    $lc_text TEXT_BASE_PRICE $listing_price;
                          }
                        }
                        
    // eof: Add Starting at to prices with Attributes with prices
                        
    break; 
    John

 

 

Similar Threads

  1. Displaying Starting at: before price when price by letters
    By pcaines in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 23 Oct 2010, 11:53 AM
  2. Show starting at.
    By osbornjr in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2009, 02:47 PM
  3. Starting Price and Price Header
    By susanshropshire in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2009, 05:58 AM
  4. "Starting At" price is empty OR price doubles when add to cart
    By infocom in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 22 Mar 2008, 10:40 PM
  5. Price Starting At: NOTHING
    By ALSMonarch in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 28 Nov 2006, 10:07 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