Hi All, Client has given the order,can we sort the...
# suitecommerce
g
Hi All, Client has given the order,can we sort the shipping methods with that order ?? Any one has any idea on this??
m
Can't understand your question. Can you elaborate it further?
g
We can sort the shipping methods through internalid's or name right.But Client has given the order like(storepickup,Fedex,Fedex Overnight etc..)..They want to see the order ike this in checkout page
m
You can have a custom record where user can define the methods and a sequence column to define ordering. Create a saved search and sort by that sequence column. Use the result of saved search and parse/replace shipping_methods with yours one.
g
you want me to create custom record and perform saved search right?
m
First check if can add a custom filed in Shipping Items record and use that in saved search if possible. Last resort should be custom record.
g
I have checked...we can not create custom field in shipping item record
m
Okay then go with custom record approach.
g
isn't possible to write a code?
like change the array index position?
m
As per your query, you said your Client needs the listing in specific order. What if the order is totally random and can change over time. Will you keep changing code everytime? I guess No!
g
Correct what you said...what is the workaround??
m
Custom record approach to make the solution dynamic.
g
Okay thank you