Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Sort shipping fedex (rtv8) dropdown options
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
VP-CART New User

149 Posts

Posted - August 28 2014 :  18:03:57  Show Profile  Reply with Quote
Is there a way to change the order of the fedex results returned? Currently, they are being presented from most expensive to least expensive and I would like the reverse of that.

Does anyone know how?

g3nnin
VP-CART Super User

209 Posts

Posted - September 11 2014 :  15:26:06  Show Profile  Reply with Quote
Hi,

Have you tried checking DisplayForm routine in fedexrtv8.asp file? This should be the routine that displayed the shipping dropdown menu.

You might also want to check GenerateSelectNV and GenerateSelectRadio routines.


Hope this helps!
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - September 20 2014 :  05:30:57  Show Profile  Reply with Quote
how about trying on file fedexrtinterface.asp , these functions maybe related :

Sub AddServicePrice (service, price, deliverydate)
Sub AddService (scode,sname)
Sub SetupShippingMethods

good luck.
diego
Go to Top of Page

FCS-Webmaster
VP-CART New User

Canada
120 Posts

Posted - September 30 2014 :  16:33:37  Show Profile  Visit FCS-Webmaster's Homepage  Reply with Quote
Thanks for your suggestions G3nnin and Diego.

The setupShippingMethods looked very promising but reordering the list didn''t seem to do anything (doing something similar in UPS works though).

Looking at the code the only workable option we see at this point is to look at the GenerateSelectNV sub procedure in the shop$db.asp file and do some sort of massive array sort in there.
That may allow us to look at sorting all the shipping options (even between shipping companies) from lowest cost to the highest cost. That should make things easier for the customer who is trying to figure out what the most cost effective shipping option is for there needs.

Tim
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - October 09 2014 :  04:30:14  Show Profile  Reply with Quote
tim, i want to know your solution if you have done that. can you share me on forum. i am interesting.
diego.
Go to Top of Page

FCS-Webmaster
VP-CART New User

Canada
120 Posts

Posted - February 25 2015 :  20:05:10  Show Profile  Visit FCS-Webmaster's Homepage  Reply with Quote
Tim here... I haven''t had much time to work on this and managed to lose my planed solution, but I think I''m on to something by attacking this from a different angle.

In sub ShopShippingForm inside the shopcustomerform.asp file all the shipping services get combined in this area.
Now in this area changing it from each shipping company dumping there quotes into the down menu something in here takes the information and breaks it up to a 2D or 3D array. Using this we then perform a sort on the data to sort by price then spit out the drop down list of shipping options in a sorted form that sorts by price.

What do you think of that possible solution Diego?
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - February 26 2015 :  21:49:40  Show Profile  Reply with Quote
ur solution maybe will work, but i have just think of something , easier to solve but need to create a new table..
u try to store all the shipping results from different shipping methods (lookup, ups, usps, etc.. ) to a new table....
the data there is temporary and just call sql query to get data from that table , of course SORT BY ASC OR DESC and show the list as drop-down for shipping methods... then clear the data there in the new table.......
how about that ??? open discussion
diego
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00