Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 73
  1. #41
    Join Date
    Jul 2006
    Location
    Cardiff, Wales
    Posts
    305
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    I also needed this solution and used the code but found some problems when using Special Discounts or a Sold Out Image etc. The code does not work when you use these. i.e. for Special Discounts I want the normal prioce crossed out and the savings displayed, but the code above results in the cheapest price showing and replacing the Specials Price.

    So I changed the code to include a check to check for the substrings that are included when Special Price or an image we use when products are sold out and not to display the From cheapest price if they are. There of course maybe other scenarios not covered (the first line just puts cheapest price in the same format as the normal price to run the check).

    Code:
    $cheapest = "£".number_format(zen_get_products_discount_price_qty((int)$_GET['products_id'],20000),2);
    $price = zen_get_products_display_price((int)$_GET['products_id']);
    	
    if ( $cheapest != $price && ( !stristr($price,"productSpecialPrice") ) && ( !stristr($price,"call_for_prices") ) )
    {
    	echo 'From: ' . $cheapest . '';
    }
    else
    {
    	echo $price;
    }

  2. #42
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Quote Originally Posted by ZenLova View Post
    Also I added the following to includes\modules\product_listing.php to give you this look with the price displayed on the product listing page (ex. http://www.promo2sell.com/index.php?...ex&cPath=25_48)



    // case 'PRODUCT_LIST_PRICE':
    // $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    // $lc_align = 'right';
    // $lc_text = $lc_price;
    // I made some mod's below this
    case 'PRODUCT_LIST_PRICE':
    // $lc_price = zen_get_products_discount_price_qty((int)$_GET['products_id'],20000);
    $lc_price = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
    $lc_price = number_format($lc_price, 2);
    $lc_text='<b><font color="red">As low as: $' . $lc_price . '</font></b><br>';
    When I add this to my product_listing.php file, it does nothing. When products are listed they still show like they used to - shows highest price, not lowest quantity discount price. The only file that seems to change anything in this area is the tpl_tabular_display.php file. But when I edit that it takes the price off entirely. Editing the product_listing.php file does nothing.

    I was able to figure out how to display the chepest price in the product info. But when it comes to the product listing, I am lost. Any ideas?

    Kindest Regards,
    Brad

  3. #43
    Join Date
    Feb 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Quote Originally Posted by ceobrad View Post
    When I add this to my product_listing.php file, it does nothing. When products are listed they still show like they used to - shows highest price, not lowest quantity discount price. The only file that seems to change anything in this area is the tpl_tabular_display.php file. But when I edit that it takes the price off entirely. Editing the product_listing.php file does nothing.

    I was able to figure out how to display the chepest price in the product info. But when it comes to the product listing, I am lost. Any ideas?

    Kindest Regards,
    Brad
    Hi, there, I also have this problem. Any ideas?

    Kindest Regards

    Jimmy

  4. #44
    Join Date
    Jan 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Quote Originally Posted by Jimmyyu1998 View Post
    Hi, there, I also have this problem. Any ideas?

    Kindest Regards

    Jimmy
    exactly the same for me too, i can get it to display lowest price in product info but not product listing

  5. #45
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    It DID work for me. Thank you. Hey guy's have you checked if you have
    includes\modules\product_listing.php maybe already in a template folder?

    includes\modules\YOUR_TEMPLATE\product_listing.php

    If like me, you have the grid layout mod installed, you may have it already in the override structure as above.
    Live and learn... the Zen way.

  6. #46
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Quote Originally Posted by Ryk View Post
    What I want to do is only display the cheapest price (and accompanying text) when there ARE quantity discounts, but just the regular price when that's all there is.

    I just can't work out what the conditional statement should be - I've managed to do it in the tpl_product_info_display.php, but it's got me beat in product_listing.php (mind you, it's waaay past my bedtime here so the brain cells are not really up to it!)
    How did you do it in the tpl_product_info_display.php? I can't get the conditional going myself.

    Your solution for the product_listing.php works great, thank you.
    Live and learn... the Zen way.

  7. #47
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Hi, I need some help here, anyone. I put in the new code (first few lines), great, works, so now I have the 'As low as' and the lowest price.

    Next step I am trying to do really is the conditional stuff. I am not a guy who like to 'confuse' with only the cheapest price. I want the single unit price shown then follow by the As low as price below IF there is one.

    The code I improvised below, make use of if ($products_discount_type != 0) or if there is a quantity discount, then show the as low as price, else, just show the normal price. But it does not work, it just show the normal price. Did I miss something, anyone can open an eye?

    Code:
     
     
    case 'PRODUCT_LIST_PRICE':
    if ($products_discount_type != 0) {
    // $lc_price = zen_get_products_discount_price_qty((int)$_GET['products_id'],20000);
    $lc_price = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
    $lc_price = number_format($lc_price, 2);
    $lc_text='<b><font color="red">As low as: $' . $lc_price . '</font></b><br>';
    }
    else {
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />'; 
    $lc_align = 'right'; 
    $lc_text = $lc_price; 
    }

  8. #48
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    Ok I've used Ryk's code from post #40 for my product listing page (Thanks for posting your work, much appreciated!!). It worked beautifully, except for one small problem. It is now displaying $0.00 on the price for things that are listed as "Call for Price", where nothing displayed before. Any idea's how to turn this off?

    Anyone able to do it in the actual product listing yet?

    http://transportation.actionforms.ca...82_187_188_196
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  9. #49
    Join Date
    Feb 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    I too have used Ryk's code and it works great in the category listing. Any ideas on how to get it to work in the all products listing (and possibly new products)?

  10. #50
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Quantity Discounts

    I still can't figure out how to get it not to show $0.00 instead of "Call For Price" when I applied this code.

    Help please!

    http://transportation.actionforms.ca...03_205_208_210
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

 

 
Page 5 of 8 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. v150 Quantity Discounts
    By dfontana in forum General Questions
    Replies: 4
    Last Post: 13 Aug 2012, 03:49 PM
  2. Product quantity price discounts & group discounts
    By Richard.Tung in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 11 Jun 2009, 03:24 PM
  3. Quantity Discounts?
    By FLGator in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 14 Jul 2008, 02:58 AM
  4. Quantity Discounts
    By Michele in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 28 Aug 2007, 04:51 AM
  5. Quantity Discounts
    By andes in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2007, 07:53 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