// set the cost to be able to calculate free shipping $order->info = array('total' => $_SESSION['cart']->show_total(), 'currency' => $currency, 'currency_value' => $currencies->currencies[$currency]['value']); } // weight and count needed for shipping ! $total_weight = $_SESSION['cart']->show_weight(); $shipping_estimator_display_weight = $total_weight; $total_count = $_SESSION['cart']->count_contents(); require DIR_WS_CLASSES . 'shipping.php'; $shipping_modules = new shipping(); $quotes = $shipping_modules->quote(); //print_r($quotes); //4px shipping require DIR_WS_CLASSES . 'DSFShipping.php'; $objDSFShipping = new DSFShipping(); if (!$country_info) { $country_info = $objDSFShipping->getCountryInfo($_SESSION['customer_id'], $sendto); } //var_dump($country_info, $total_weight); $dsf_shippings = $objDSFShipping->calculate($country_info['countries_iso_code_2'], $total_weight); $quotes = array_merge($dsf_shippings, $quotes); //end 4px shipping //die('here'); $order->info['subtotal'] = $_SESSION['cart']->show_total(); // set selections for displaying $selected_country = $order->delivery['country']['id']; $selected_address = $sendto; //} // eo shipping cost // check free shipping based on order $total if (defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') { switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {