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

    Default Re: Table Rate Calculating Best Rate only

    You have a very old version of Zen Cart 1.2.6 ...

    I cannot recall if there are issues with Priced by Attribute and Table Rate by price on that version ...

    If I get some time, I will try to install a test site with this version and see if I can reproduce the problems and if so, if there is a simple fix for it ...
    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!]
    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Table Rate Calculating Best Rate only

    Save a copy of the file:
    /includes/classes/shopping_cart.php

    Now edit the file and change this section of code around line 526:
    Code:
    // bottom total
    //            if ($attribute_price->fields['product_attribute_is_free']) {
                if ($attribute_price->fields['product_attribute_is_free'] == '1' and zen_get_products_price_is_free((int)$prid)) {
                  // no charge for attribute
                } else {
    // + or blank adds
                  if ($attribute_price->fields['price_prefix'] == '-') {
                    if ($attribute_price->fields['attributes_discounted'] == '1') {
    // calculate proper discount for attributes
                      $new_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
                      $this->total -= $qty * zen_add_tax( ($new_attributes_price), $products_tax);
    // Fix Table Price comment out line below
    //                  $this->free_shipping_price -= $qty * zen_add_tax( ($new_attributes_price), $products_tax);
                    } else {
                      $this->total -= $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
                    }
                  } else {
    // Fix Table Price add IF statement below
    // appears to confuse products priced by attributes
                    if ($product->fields['product_is_always_free_shipping'] == '1' or $product->fields['products_virtual'] == '1') {
                      $shipping_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
                      $this->free_shipping_price += $qty * zen_add_tax( ($shipping_attributes_price), $products_tax);
                    }
                    if ($attribute_price->fields['attributes_discounted'] == '1') {
    // calculate proper discount for attributes
                      $new_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
                      $this->total += $qty * zen_add_tax( ($new_attributes_price), $products_tax);
    // Fix Table Price comment out line below
    //                  $this->free_shipping_price += $qty * zen_add_tax( ($new_attributes_price), $products_tax);
                    } else {
                      $this->total += $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
                    }
                  }
    
    ////////////////////////////////////////////////
    I commented the changes so I hope it helps you make them ...

    See if this fixes the Attribute Pricing for the Table Rates ...
    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!]
    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. #13
    Join Date
    Sep 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: Table Rate Calculating Best Rate only

    How shipping rate is possible in categoires wise,

    any clue or advise, please let me know,
    Thanks

    Zahid

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Table Rate calculating incorrectly - help please!
    By Miranda_Hart in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 14 May 2013, 02:13 PM
  2. Table Rate Best Way
    By beth99 in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 21 Oct 2010, 06:43 PM
  3. Change Table Rate (best way) on check out
    By chris32882 in forum General Questions
    Replies: 4
    Last Post: 9 Nov 2008, 07:42 PM
  4. Table Rate (Best Way) Text
    By TimonSK in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Jan 2008, 08:04 AM

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