ken0306 Posted August 31, 2017 Share Posted August 31, 2017 Hi there, I am trying to setup my shopping cart with table rate and limited by product weight and postcode, and here is so far I can think about. 1. I setup the Table Rate charge by price, 29:8.99,49:6.99,49.01:0.00 so all orders over 49.01 will be free shipping. 2. Because I only want to offer free shipping to a small and medium size package, not the large item. I add the following code to /includes/class/shipping/ table.php change return $this->quotes; to if (($cart->show_weight() < 50 )) { return $this->quotes; } This will limit the shopping cart total weight while they check out. So, how do I change this to each item's weight instant of total cart weight? If customer order 2 x 21 lbs item will give total weight 52 lbs, the free shipping can't apply to order. So how can I change shopping cart total weight to heaviest items on the shopping cart's weight? 3. I also trying to limit the service only available in city area, so I will need to adding the restriction on postcode, if (($cart->show_weight() < 50 ) && $order->delivery['postcode'] != 'v6y 3j8') { return $this->quotes; } so how can I setup multiple valuable for delivery postcode and only check if first 3 characters match? thank you ken Quote Link to comment Share on other sites More sharing options...
frankl Posted September 8, 2017 Share Posted September 8, 2017 @ken0306 I'm wondering Ken if you could duplicate the table rate module, use that for weight, then check if under weight it then references the price table rate module? Just a thought. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.