Results 1 to 10 of 245

Threaded View

  1. #10
    Join Date
    Nov 2003
    Posts
    783
    Plugin Contributions
    2

    Default Re: MZMT includes Virtual Products if real product also ordered

    L., I use the built in Zen Cart functions to get the totals to use in calculations, so as long as you're using a version of Zen Cart that has these functions, it should work fine.

    See around line 190 of the module:
    PHP Code:
    function determineTableMethod($geozone_mode) {
        global 
    $total_count$shipping_weight;

        switch (
    $geozone_mode) {
            case 
    'price':
                if (
    method_exists($_SESSION['cart'], 'free_shipping_prices')) {
                    
    $this->order_total $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
                } else {
                    
    $this->order_total $_SESSION['cart']->show_total();
                }
                break;

            
    /* ... */

    As long as the shopping cart class in your version of Zen Cart has the "free_shipping_prices" method, it should be working fine, that is unless the cart:: free_shipping_prices() method is not working properly or something else isn't quite setup right, but I don't know.

    I forget which version cart::free_shipping_prices() was introduced in, but it was awhile ago I know because the main reason I have that if statement around it is for semi-backward compatibility with older versions of Zen Cart.

    I believe this is the correct way to accommodate free shipping items when the base is the price. If you look in the core's standard table shipping module (table.php), it does the same thing (about line 90):
    PHP Code:
    // shipping adjustment
    if (MODULE_SHIPPING_TABLE_MODE == 'price') {
        
    $order_total $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
    /* ... */ 
    Last edited by dreamscape; 10 Jul 2006 at 09:48 PM.

 

 

Similar Threads

  1. v151 MultiGeoZone MultiTable Shipping version 1.101
    By benxp in forum Addon Shipping Modules
    Replies: 8
    Last Post: 10 Oct 2013, 11:25 PM
  2. Google Checkout and MZMT (MultiGeoZone MultiTable) errors
    By dude_s in forum Addon Payment Modules
    Replies: 3
    Last Post: 23 Dec 2008, 04:23 AM
  3. MultigeoZone Multitable - Weight Shipping Query
    By Andy_GS in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 8 Sep 2008, 09:48 AM
  4. MultiGeoZone MultiTable Shipping for Zen Cart - version 1.101
    By vatovey in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Jul 2006, 02: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