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: Restrict Courier Based On Weight

  1. #1
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Exclamation Restrict Courier Based On Weight

    We have three different shipping methods Royal Mail, UPS and UPS before 12.

    We want to show Royal Mail up until 20kg, after which it no longer displays and can not be selected as an option.

    Another issue is we may want to do this with more couriers, say have Parcel Force up until 2kg.

    We have the source code and can make mods, I am just looking for some guidance on the best way to go about this kind of change.

    Thanks in advance.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi,

    As you have the source code, probably a good place to start would be in the ASPDNSFCommon/ShoppingCart class and specifically the GetShippingMethodList() method.

    Look for the switch statement on ShipCalcID and find the one that matches the method you are using (by Weight, by Total etc) then modify the code within this block.

    The WeightTotal() method can be used to return the total weight of all the items in the cart.

    Adam