Skip to content
  • There are no suggestions because the search field is empty.

How to Set a Second Default Shipping Provider

Please note: The contents of this article apply only to licensed versions of the ProductCart software. They do not apply to stores running as a hosted application under a ProductCart Live agreement.



The issue


In the Shipping Setting section of the ProductCart Control Panel you can define your default shipping provider. Shipping services from that provider are shown first during checkout. However, if you have multiple shipping providers active on the store, and no eligible shipping services for a certain order can be shown from the default shipping provider, there is no way to tell ProductCart which other shipping provider should become the default one (i.e. which one should be shown first on the shipping selection step of the checkout page).
 

The solution


You can set a second, default shipping provider by making some simple code changes.
 
Edit opc_ChoseShpmnt.asp
  • Download the file “opc_chooseShpmnt.asp” from the “pc” folder, using your FTP software
  • Make a backup copy
  • Open it in Notepad
  • Perform a complete Find/Replace on the variable “scDefaultProvider”, changing it to “TempDefaultProvider”
  • Save the file
Edit ShipRates.asp
  • Download the file “ShipRates.asp” from the “pc” folder, using your FTP software
  • Make a backup copy
  • Open it in Notepad or your favorite HTML editor
  • Locate the code
    if instr(strOptionShipmentType, scDefaultProvider) AND scDefaultProvider<>"" AND iShipmentTypeCnt>1 then strDefaultProvider=scDefaultProvider end if
  • Replace with:
    if instr(strOptionShipmentType, scDefaultProvider) AND scDefaultProvider<>"" AND iShipmentTypeCnt>1 then strDefaultProvider=scDefaultProvider TempDefaultProvider = scDefaultProvider else If instr(strOptionShipmentType, "UPS") Then strDefaultProvider="UPS" TempDefaultProvider = strDefaultProvider End If end if
  • Replace the hardcoded “UPS” with one of the following as your second, default shipping provider:
    • UPS = UPS
    • FEDEX = FedEx
    • CP = Canada Post
    • CUSTOM = Custom Shipping Options
  • Save the file
 
Upload
Upload the edited files to the “pc” folder.

Make sure to note these files change in a log of changes that you have made to your store, so that you can reapply them when you update your copy of ProductCart.