PDA

View Full Version : Shipping options..order of dropdown menu


TraceyHand
18-Aug-2006, 01:20 PM
OK, thanks to Royal Mail I've had to change the way I charge shipping.
I have it set as "by quantity" and it is charged at £1 per item up to a max of £3 (used to be free shipping across the board)

Anyway, as my advertising has free shipping advertised, I want to offer free shiping to first time customer only. sO I also have a shipping option of "first time customer" set up at £0 for all quantities.

Thing is, everyone will select this as, being the cheapest, it appears at the top of the drop down!
I want it to appear at at the bottom of the list with the standard option first and then priority option (first class, additional £1) next.

Is there any way to do this? So I can specify the order in which the appear in the dropdown?
They're in the correct order in Business Settings so I assume that checkout automatically displays the cheapest option at the top... kinda defeats the object in this case though!

Is there a way to over-ride this, please?
Thanks
Tracey...

Bruce
22-Aug-2006, 01:44 PM
Tracey,

This is possible with a bit of a script change. Am running it past development will update you.

Kind regards,

Bruce
22-Aug-2006, 03:02 PM
Check out this thread http://community.actinic.com/showthread.php?t=10063

If you cannot see the thread, then here goes..


It is possible to sort out the classes by the following:
1. Ascending order of total cost
2. Descending order of total cost
3. Ascending alphabetical order
4. Descending alphabetical order

Its a bit tricky, but what you do is, go to the following folder: C:\Program Files\Actinic v7\Sites\Site1\ShipControl. Or whatever your site is called.

You will find a file called ShippingTemplate.pl. Please open this in notepad.

Once you opened the file in notepad, then simply go a search for 'ACTINIC CUSTOMISE' minus the quotes.

The default sort is via Ascending order of total cost
Code:

@::s_arrSortedShippingHashes = sort{$$a{Cost} <=> $$b{Cost}} @arrShippingHashes;


If you want to sort by ascending alphabetical order

Simply comment the ascending order of total cost firstly, by the following
Code:

# @::s_arrSortedShippingHashes = sort{$$a{Cost} <=> $$b{Cost}} @arrShippingHashes;


Then find "Store the hashes in ascending alphabetical order", and underneath the code, simply take out the # in the beginning.

Once you have done this, simply save the file and update the site

Kind Regards
__________________
Nadeem Rasool
Actinic Development

What version of Actinic are you on? Did you upgrade to 7.0.6??

Kind regards,