garywhitling Posted March 28, 2012 Share Posted March 28, 2012 Hi, I need to place the options for shipping in an order I prefer. Currently I have by weight and FREE shipping (buyer collects) but it defaults to FREE shipping as the first option so people are not selecting ship by weight when they want me to post it! Is there a way of having the ship by weight as the default selection and then they have to select and change to FREE Shipping if they want to pick it up? Any ideas? Gary Quote Link to comment Share on other sites More sharing options...
Toucan Web Design Posted March 28, 2012 Share Posted March 28, 2012 There's a quick way of doing it, not the best, but try opening up classes/cubecart.class.php FIND: if (!isset($cheapest['value']) || $value['value'] < $cheapest['value']) { $cheapest = $value; } REPLACe with: if (!isset($cheapest['value']) || $value['value'] > $cheapest['value']) { $cheapest = $value; } That'll just switch it so it defaults to the most expensive option instead, which if you only have 2, will sort it out fine for you Quote Link to comment Share on other sites More sharing options...
garywhitling Posted April 20, 2012 Author Share Posted April 20, 2012 Cheers, Easy mod and worked a treat :-) Thanks Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 20, 2012 Share Posted April 20, 2012 It would help if you can change the wording to indicate Pickup, instead of Free Shipping. Is this possible? Quote Link to comment Share on other sites More sharing options...
Ms Holly Posted February 8, 2014 Share Posted February 8, 2014 This no longer works with 5.2.7. can anyone help me with an option as after upgrading today (and chaning the code to the above) customers have already begun to go through with there order as pick up when they are clearly not able to pick up. At this point I only have two options and I would like it to display the most expensive first. Unfortuantely just changing the less than to a more than sign hasnt done the trick. I have just disable the pick up option to stop this from occuring while I sleep but its not the best solution as my local customers are going to think I have stopped the pick up option. Thanks so much Holly Quote Link to comment Share on other sites More sharing options...
Ms Holly Posted February 8, 2014 Share Posted February 8, 2014 After spending hours on this I think this might be more of an issue with my server not uploading the file ...getting a stupid disk full error. Ill let you know if it works. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 11, 2014 Share Posted February 11, 2014 In the meantime, there is a way that I use that shows all choices, rather than the drop down box. That has worked much better for us. 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.