Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default quantity discounts for attributes

    I am trying to get the actual price of the product displaying when the price is determined by an attribute.

    The site sells products that can be color or black and white. The attribute of black & white subtracts pricing - $34.95 for color (base product) $24.95 or -$10 for black & white (attribute).

    I have used the Attributes Qty Price Discount to set up pricing for the attributes - as minus numbers.

    I need to be able to show the attributes actual pricing in the quantity discounts table - not the minus numbers which show now. Since this is actually a mathematical equation of product price minus attribute discount, I thought that I could combine the two scripts to make that happen.

    Well, it's definitely more complicated than that.

    The attribute quantity pricing has a number of cases that aren't described in the code so that I can see what's what:
    PHP Code:
    switch (true) {
                      case (
    $i+2==$n):
                        
    $zc_disp_qty $attribute_table_cost[$i-2]+'+';
                        break;
                      case (
    $i <= and $attribute_table_cost[$i] == 1):
                        
    $zc_disp_qty '1';
                        break;
                      case (
    $i <= and $attribute_table_cost[$i] != 1):
                        
    $zc_disp_qty '1-' $attribute_table_cost[$i];
                        break;
                      case (
    $i and $attribute_table_cost[$i-2]+!= $attribute_table_cost[$i]):
                        
    $zc_disp_qty $attribute_table_cost[$i-2]+'-' $attribute_table_cost[$i];
                        break;
                      case (
    $i and $attribute_table_cost[$i-2]+== $attribute_table_cost[$i]):
                        
    $zc_disp_qty $attribute_table_cost[$i];
                        break;
                    } 
    I would like to at least identify which case is at work here.

    Where the pricing for the attributes actually show it has this.
    PHP Code:
    .  $currencies->display_price($attribute_table_cost[$i+1], zen_get_tax_rate($_GET['products_tax_class_id'])) . 
    So I figured on sticking in the code from the quantity discounts for the product into this but I obviously missed the boat as the numbers show are 6 for each level.

    So the question - finally - is there a way to do this that I haven't thought of? Having the attributes quantity pricing display as -7 or -8 etc simply makes no sense to the buyer.

    You can see what I'm talking about here: http://www.picpads.com/zencart/index...&products_id=9
    The full-time Zen Cart Guru. WizTech4ZC.com

  2. #2
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: quantity discounts for attributes

    so since I got no answer, we actually went back to basics rather than use this advanced method. We created different products instead of having products with attributes. Ridiculous but true.
    The full-time Zen Cart Guru. WizTech4ZC.com

 

 

Similar Threads

  1. Quantity Discounts using attributes
    By buildingblocks in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 23 Apr 2011, 02:57 PM
  2. Quantity discounts with product attributes
    By claynomi in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 26 Aug 2009, 05:43 PM
  3. Quantity discounts for items with different attributes?
    By woodblock in forum General Questions
    Replies: 1
    Last Post: 28 Feb 2009, 03:29 AM

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