Thread: UPS Insurance

Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 54
  1. #41
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    not sending order total to ups

  2. #42
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    figured it out
    changed this
    Code:
    $this->pkgvalue = ceil($order->info['subtotal']);
    to this
    Code:
    $this->pkgvalue = $_SESSION['cart']->show_total();

  3. #43
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    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

  4. #44
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    changed to this $this->pkgvalue = ceil($order->info['total']); now working

  5. #45
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: UPS Insurance

    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:
    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
    }
    This prevents that code from running in the Admin as that is something that exists in the Catalog ...
    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!

  6. #46
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    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

  7. #47
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    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

  8. #48
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: UPS Insurance

    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!

  9. #49
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    does the upsxml file use shipping boxes manager?

  10. #50
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: UPS Insurance

    something in the file is adding a pound

 

 
Page 5 of 6 FirstFirst ... 3456 LastLast

Similar Threads

  1. Shipping insurance (UPS, USPS, etc)
    By Historic Ent in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 13 Jul 2010, 08:32 PM
  2. UPS module not including insurance?
    By eaglepg in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 11 Dec 2008, 10:32 PM
  3. UPS Insurance
    By dwessell in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Apr 2008, 11:04 PM
  4. USPS and UPS insurance
    By saddlebred in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 21 Nov 2006, 04:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR