Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS XML 1.2.9 - insurance limit...


Guest

Recommended Posts

what can i do? i have items that are over $50,000 and it reports an error that UPS wont insure more.. is there some type of limit that could be programmed into it?

 

example. someone buys a $70,000 item, charges them up to $50k insurance.. then lets me figure out what i'm gonna do with the method i will use to ship the item...

 

i dont know why i can't clearly say anything right now, i hope someone understands me lol

 

thanks in advance

Link to comment
Share on other sites

what can i do? i have items that are over $50,000 and it reports an error that UPS wont insure more.. is there some type of limit that could be programmed into it?

I think this should work. Change the bit around line 85 in modules/shipping/upsxml.php from

		// insurance addition
	if (MODULE_SHIPPING_UPSXML_INSURE == 'False')
	  { $this->pkgvalue = 100; }
	if (MODULE_SHIPPING_UPSXML_INSURE == 'True')
	  { $this->pkgvalue = ceil($order->info['subtotal']); }

to:

		// insurance addition
	if (MODULE_SHIPPING_UPSXML_INSURE == 'False')
	  { $this->pkgvalue = 100; }
	if (MODULE_SHIPPING_UPSXML_INSURE == 'True') {
	  if (ceil($order->info['subtotal']) > 50000) {
		$this->pkgvalue = 50000;
	  } else {		
		$this->pkgvalue = ceil($order->info['subtotal']); 
	  }
	} // end if (MODULE_SHIPPING_UPSXML_INSURE == 'True')

and the total value of the shipment will never be reported higher than $ 50,000.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...