ricardovtav Posted October 8, 2010 Share Posted October 8, 2010 Good day, I have a doubt.I set the shipping of freight, with Weight Ranger, but I need to put the free shipping over $ 99.90 only one carrier (the store has 5 carriers)a friend did it in the first part ordes_carrier.tplI replaced the line 74 (If $) carrier.price to (If $ carrier.price AND $ cart-> getOrderTotal (true, 4) <= '99 .90 ') but it works on all carriers. how do I work on just one?thanks Link to comment Share on other sites More sharing options...
rocky Posted October 8, 2010 Share Posted October 8, 2010 See here. Link to comment Share on other sites More sharing options...
ricardovtav Posted October 8, 2010 Author Share Posted October 8, 2010 did not work, I just need to improve the code below with the necessary corrections;(If carrier.price $ AND $ cart-> getOrderTotal (true, 4) <= '99 .90 ')* Run only one carrier* The free shipping over $ 99.90 (already)* Only show the carrier when the value of spending $ 99.90, otherwise it does not appear.thanks Link to comment Share on other sites More sharing options...
rocky Posted October 8, 2010 Share Posted October 8, 2010 Try the following: {if $carrier.price AND ($carrier.id != 1 OR ($carrier.id == 1 AND $cart->getOrderTotal(true, 4) <= '99.90'))} Change both carrier IDs from 1 to the ID of the carrier that should have free shipping above 99.90. Link to comment Share on other sites More sharing options...
ricardovtav Posted October 9, 2010 Author Share Posted October 9, 2010 friend did not work when it comes to calculating the shipping screen, only appears to the left column to the center and the right not appear .. Link to comment Share on other sites More sharing options...
rocky Posted October 9, 2010 Share Posted October 9, 2010 Oops, left out a closing bracket. I've updated my code. Try again. Link to comment Share on other sites More sharing options...
ricardovtav Posted October 9, 2010 Author Share Posted October 9, 2010 friend, firstly thanks for helping me.I put the code as followsat line 74 of the order-carrier.tpl{If $ carrier.price AND ($ carrier.id! OR = 41127 ($ 41127 AND $ carrier.id == card-> getOrderTotal (true, 4) <= '99.90 '))}did not work, the carrier appears. I signed up a 0lbs Weight ranges up to 100kg with the value zero. but the carrier is appearing even when the value is below 99.90, in case it can only appear when the value is greater than 99.90thanks again Link to comment Share on other sites More sharing options...
rocky Posted October 10, 2010 Share Posted October 10, 2010 Can you please post the code without running it through Google Translation? Link to comment Share on other sites More sharing options...
ricardovtav Posted October 10, 2010 Author Share Posted October 10, 2010 ok, I'll try, but you do not understand something? Link to comment Share on other sites More sharing options...
rocky Posted October 11, 2010 Share Posted October 11, 2010 The code above has been mangled by Google Translate, so I can't be sure that you it is right. Link to comment Share on other sites More sharing options...
ricardovtav Posted October 12, 2010 Author Share Posted October 12, 2010 sorry friend, I laid the code was this: {if $carrier.price AND ($carrier.id != 41120 OR ($carrier.id == 41120 AND $cart->getOrderTotal(true, 4) <= '99.90'))} Link to comment Share on other sites More sharing options...
Recommended Posts