Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search the Community

Showing results for tags 'order quantity'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce v4.x
    • General Support
    • Migration from old osCommerce
    • Design and Templates
    • Apps / Add-ons
    • Translations
    • API and import/export
    • Marketplace integration
    • Manuals and How-to
    • Blog's discussion
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Commercial Support Inquiries
    • Developer Feedback

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. 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) {
×
×
  • Create New...