USPS for Admin Only?
Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4096
Printed Date: 15-July-2025 at 5:46am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: USPS for Admin Only?
Posted By: sdalan
Subject: USPS for Admin Only?
Date Posted: 24-October-2010 at 12:06pm
Hello. Can anyone help me disable USPS on the outward-facing store but still be able to use it on the Admin side? We send our samples out USPS for free (the item shows a custom FREE SHIPPING option as the method during checkout).
I tried nixing the CHOOSE PROVIDER drop-down from the page, but then the FREE SHIPPING option did not show - it said instead that rates could not be calculated.
I need to keep CUSTOM OPTIONS as my shipping default in Control Panel in order for the FREE SHIPPING to show for samplers (a PC support person might have made some code changes to make that work years ago - I don't know for sure).
After working through all the different possibilities, causing the CHOOSESHPMNT.ASP to skip USPS would actually work.
Can anyone help? Thanks. I am willing to pay a developer. Using PC 3.1 but planning to move to 4.1 (lots of mods have held me up) very soon.
Thanks.
|
Replies:
Posted By: sdalan
Date Posted: 24-October-2010 at 12:35pm
Not perfect but atleast it appears to work as I need. After this line I
strTempOptionShipmentType=session("strOptionShipmentType")
I added the following to remove USPS from the drop-down and then force UPS to take the place of USPS if that's what is getting set.
'// SD - NIX USPS
strTempOptionShipmentType = REPLACE (strTempOptionShipmentType,"USPS","")
If session("provider") = "USPS" THEN session("provider") = "UPS"
'// SD
|
Posted By: sdalan
Date Posted: 24-October-2010 at 12:47pm
Not working, actually. Still showing USPS options, though UPS is on the drop-down, when I test with a fresh session.
|
Posted By: sdalan
Date Posted: 24-October-2010 at 1:13pm
Figured it out. Answer was in SHIPRATES.ASP, an include.
Right before
if iUSPSFlag=1 then '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' Start: Pre-Filter USPS for Availability '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I added
'// SD Disable USPS
iUSPSFlag=0
'// SD
That causes USPS to not make it any further as an available option.
|
|