not sending order total to ups
not sending order total to ups
figured it out
changed this
to thisCode:$this->pkgvalue = ceil($order->info['subtotal']);
Code:$this->pkgvalue = $_SESSION['cart']->show_total();
but for some reason when i add that line, i can no longer edit my shipping modules
i get this in logs PHP Fatal error: Call to a member function show_total() on a non-object in /var/www/clients/client1/web4/web/TESTSITE/includes/modules/shipping/upsxml.php on line 87, but it is working
changed to this $this->pkgvalue = ceil($order->info['total']); now working
I do not know why you would need to do that but to allow it to work, you need to use the code in RED:
This prevents that code from running in the Admin as that is something that exists in the Catalog ...Code:if (!IS_ADMIN) { // insurace addition if (MODULE_SHIPPING_UPSXML_INSURE == 'False'){ $this->pkgvalue = 100; } if (MODULE_SHIPPING_UPSXML_INSURE == 'True'){ // $this->pkgvalue = ceil($order->info['subtotal']); $this->pkgvalue = $_SESSION['cart']->show_total(); } // end insurance addition }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
that does not work for me this works
Code:// insurace addition if (MODULE_SHIPPING_UPSXML_INSURE == 'False'){ $this->pkgvalue = 100; } if (MODULE_SHIPPING_UPSXML_INSURE == 'True'){ $this->pkgvalue = ceil($order->info['total']); } // end insurance addition
if i disable shipping boxes manager it does not add any extra weight to package. if is on it adds 1 pound to each pound, 1lb =2lb
If you have a problem with shipping boxes manager I would suggest you speak to the author of that as we did not write it ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
does the upsxml file use shipping boxes manager?
something in the file is adding a pound
Bookmarks