Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Have you an URL to where the Product with discounts is not showing the right 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!

  2. #12
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Sorry. I am not yet live, I am only on my laptop until I learn Zen Cart. I am finding it hard to express my attempts to modify pages.

    I have on the Listing Page image in color Red what I am attempting to do and on the Product Information page.
    Click image for larger version. 

Name:	zencart-aiuto1.png 
Views:	55 
Size:	9.5 KB 
ID:	10508

    *****
    In the Listing Page I have a price showing for 'Call for Price' products. Also to add the red text before.
    Click image for larger version. 

Name:	zencart-aiuto2.png 
Views:	48 
Size:	7.3 KB 
ID:	10509

    In the Product Information Page I have tried to add and IF condition to show 'FROM' text and the lowest quantityDiscounted price where a product has quantity discount. ELSE to not show the text 'FROM' and only show the base price. I fail.

    LOL, appology, I do not know how to explain more.

  3. #13
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Maybe too much and confusion. Might best be on the Product Information Page to have an IF condition to 'HIDE' base price if the Quantity Discount table exists, just showing the QtyTable, ELSE show base Price..?

    Click image for larger version. 

Name:	zencart-aiuto3.png 
Views:	45 
Size:	14.0 KB 
ID:	10510

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

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    You can try for the tpl_product_info_display.php to use:
    Code:
    //  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
    $discount_price = zen_get_products_discount_price_qty((int)$_GET['products_id'], 5000);
    $discount_price = $currencies->display_price($discount_price, $products_tax_class_id);
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . ($products_discount_type ? ' Discounts from: ' . $discount_price : '' . zen_get_products_display_price((int)$_GET['products_id']));
    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. #15
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Quote Originally Posted by Ajeh View Post
    You can try for the tpl_product_info_display.php to use:
    Code:
    //  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
    $discount_price = zen_get_products_discount_price_qty((int)$_GET['products_id'], 5000);
    $discount_price = $currencies->display_price($discount_price, $products_tax_class_id);
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . ($products_discount_type ? ' Discounts from: ' . $discount_price : '' . zen_get_products_display_price((int)$_GET['products_id']));
    Thank you so very much! Exactly what I tried to do. Please forgive for one last question. Can you point me in the direction of breaking this down and learning how to script for Zen Cart? Is there a Zen Cart writing guide?

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

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Scripting for Zen Cart is fundamentally no different than any other PHP coding. You first need to learn PHP well, depending on how much customizing you want to do. Then you can look at existing ZC files that handle similar kinds of things to what you want to do, for examples of ZC-specific functions, variables, etc. The wiki has numerous articles about the code structure and how to handle various parts of it.

  7. #17
    Join Date
    Jan 2012
    Location
    London / Roma
    Posts
    30
    Plugin Contributions
    0

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Yes. I have a long way to learn. I am trying to script ELSEIF command per but loosing each time.

    I have in order to hide a price when quantityDiscounts are used but show a price when not quantityDiscounts used is modified the
    Code:
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . ($products_discount_type ? ' Discounts from: ' . $discount_price : '' . zen_get_products_display_price((int)$_GET['products_id']));
    to
    Code:
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . ($products_discount_type ? ' Discounts from: '  : '' . zen_get_products_display_price((int)$_GET['products_id']));
    It feels bad, but it works as intended. Yes?

    Grazie

  8. #18
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Re: How do I display the lowest price for a product when using Quantity Discounts?

    Hi, I have applied this mod and it fits the bill nicely, however I have also added this mod to the site
    Include and Exclude Tax in Prices (Net/Gross). I have struggled to get both to work together. Can anyone in this thread help me?

    The full topic is @
    http://www.zen-cart.com/showthread.p...VAT-TAX/page33

    Any help anyone can give I will be hugely grateful, thank you.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 On Product Display Page add text before Price when using Qty Discount & change Price
    By rufusclc in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Jun 2013, 08:04 PM
  2. Problem with the way the quantity discounts display on the product page
    By Kegless.co.uk in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 7 May 2009, 12:24 AM
  3. Display Lowest Price in Product listing
    By gairneybank in forum Basic Configuration
    Replies: 6
    Last Post: 10 Sep 2006, 07:23 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