Chargin Posted November 2, 2012 Share Posted November 2, 2012 Ive asked this question before, how do I change the (Free) text in the cart for the free shipping option? The reply I got last time was its in Admin > Languages. But this is the only "free" I can find and it doesnt make any difference. 'misc_free' => "Free" So how is this done? Also, how do I change the default selected shipping option, I want to have 2 options, 1 will be free and I dont want it to be the default, I want the paid method to be the default. CC4 tries to select the cheapest freight, but in this case thats not what I want. Quote Link to comment Share on other sites More sharing options...
leeofaccy Posted November 2, 2012 Share Posted November 2, 2012 You can change the phrase through the language section in admin: Languages > en > Global Common Phrases > misc_free Change the phrase and click the 'Modify Language File' button at the bottom. If you have tried to edit the file itself you will still need to go into the lang section and the phrase will probably have 'Revert' next to it. Click that then click the 'Modify Language File' button for the changes to take affect. Shipping is sorted low > high on the file includes/content/cart.inc.php by this code: function cmp($a, $ { $b=floatval($b['value']); $a=floatval($a['value']); return $a<$b ? -1 : ($a>$b ? 1 : 0); } usort($Shipping, 'cmp'); Changing it to the following will sort it high > low: //function cmp($a, $ { $b=floatval($b['value']); $a=floatval($a['value']); return $a<$b ? -1 : ($a>$b ? 1 : 0); } //usort($Shipping, 'cmp'); rsort($Shipping); Quote Link to comment Share on other sites More sharing options...
Chargin Posted November 5, 2012 Author Share Posted November 5, 2012 Thankyou so much, all advice worked perfectly. I tried changing 'misc_free' => "Free" several times and it didnt work, must have been some caching somewhere as its working now. Quote 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.