View Full Version : UPS instead of USPS in PowerStore
mark286077
07-10-2009, 10:31 AM
I purchased power store 1.0.2 The Globals file only has a shipping option for USPS. How can I change that to UPS.
Ray Borduin
07-10-2009, 10:37 AM
You can remove the shipping server behavior on the confirm.php page and apply the UPS server behavior that comes with eCart in its place.
mark286077
07-10-2009, 11:40 AM
Thanks for the response Ray. I did as instructed and now the confirm page comes up with
Call to undefined function wa_ecart_ups_setsessiondefaults() in /webroot/a/d/adose001/www/confirm.php on line 61
Line 61 is as follows
59 }
60 else if (!isset($_SESSION["WA_Store_Cart_UPS_Success"])) {
61 WA_eCart_UPS_SetSessionDefaults($WA_Store_Cart);
62 }
Ray Borduin
07-10-2009, 11:49 AM
It soundes like the include file for UPS was maybe added too low on the page. It defines that function.
mark286077
07-10-2009, 12:29 PM
Thank you Ray. I Found the problem. The eCart Shipping behavoir (version 4.5.0) did not put in the following line <?php require_once("WA_eCart/WA_eCart_UPS_PHP.php"); ?>
The confirm page displayed but when I hit submit order the following error comes up
Fatal error: Call to undefined function wa_ecart_formatnumber() in /webroot/a/d/adose001/www/confirm.php on line 42
Line 42 is as follows
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($WA_Store_Cart->TotalColumn("TotalWeight"), true, 1) ."";
Ray Borduin
07-10-2009, 01:31 PM
That means that the cart object include is too low on the page. The cart object should be above this code and would define that function.
For some reason you are having trouble with includes being placed properly it would seem.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.