Search the Community
Showing results for tags 'order quantity'.
-
Our site, www.labelsupplyhut.com is supposed to allow free shipping if a customer orders 5 boxes or above, plus any configuration after that rule. For example, 5 boxes of one style and one box of another style. We have a simple free FedEx shipping module that programs this based on a field in the product details, "Minimum Order Quantity for Free Shipping." Not being familar with php code, can someone look at the code for this function and tell me if there is something off that is causing this not to work? (For reference, we are using osCommerce Online Merchant v2.2 RC2a, PHP Version 5.3.23 and this should be independent of the free module, but FedEx Web Services version 9. function quote($method = '') { global $shipping_weight, $shipping_num_boxes, $cart, $order, $total_weight, $total_free_shipping_weight; $products = $cart->get_products(); $free_shipping = array(); foreach ($products as $product) { $free_shipping[$product['products_free_shipping_qty']] += $product['quantity']; } foreach ($free_shipping as $threshold => $quantity) { if ($quantity >= $threshold && $threshold > 0) { $total_free_shipping_weight = 0; break; } } if (isset($total_free_shipping_weight) && $total_free_shipping_weight < $total_weight) { if ($total_free_shipping_weight == 0) { function quote($method = '') { global $shipping_weight, $shipping_num_boxes, $cart, $order, $total_weight, $total_free_shipping_weight; $products = $cart->get_products(); $free_shipping = array(); foreach ($products as $product) { $free_shipping[$product['products_free_shipping_qty']] += $product['quantity']; } foreach ($free_shipping as $threshold => $quantity) { if ($quantity >= $threshold && $threshold > 0) { $total_free_shipping_weight = 0; break; } } if (isset($total_free_shipping_weight) && $total_free_shipping_weight < $total_weight) { if ($total_free_shipping_weight == 0) {
-
- free shipping
- fedex
-
(and 1 more)
Tagged with: