Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Real-time Shipping and In-store Pickup

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation Real-time Shipping and In-store Pickup

    Hi ,

    I am using Real-time Shipping and In-store Pickup

    I want to reorganize the Shipping options.

    I know i can re organize real-time shipping options,
    But i want to bring the In-Store pickup on the top the list.
    How can i do it.

    Thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That would be done in the 2 ShoppingCart.GetRTShippingRates methods.

    For example, in the method with 3 overrides, look for this line:

    Code:
    RTShipping.ShippingMethods s_methods = GetRates(AppLogic.AppConfigUSDecimal("ShippingHandlingExtraFee"));
    ...and change it to

    Code:
    RTShipping.ShippingMethods s_methods = new RTShipping.ShippingMethods();
    Then after the big 'if (AppLogic.AppConfigBool("RTShipping.AllowLocalPick up"))' section, add:

    Code:
    RTShipping.ShippingMethods s_methods2 = GetRates(AppLogic.AppConfigUSDecimal("ShippingHandlingExtraFee"));
                foreach (RTShipping.ShippingMethod tempMethod in s_methods2)
                {
                    s_methods.AddMethod(tempMethod);
                }
    That will add the in store pickup method to the s_methods collection first, then go back and add the other RTShipping rates (instead of the other way around). You'll have to do something similar in the other GetRTShippingRates overload.