Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

ShippingKit for UPS Question

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 07-17-2008, 02:54 PM
 
lizlee00 lizlee00 is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 56
 

Default ShippingKit for UPS Question

Hi,
I purchased ShippingKit for UPS a few months back. I haven't been able to work on my store as of late, but am now getting back to it. I've noticed that ShippingKit does not work with products that have product variants. I get a message back from UPS saying:
Code: UPS: 120608
Origin: UPSServiceResponse::UPSServiceResponse
Severity: Hard
Description: Package weight is required

Even thought I have entered a weight for each product variant.

Additionally, I would like to have the option to enter in the actual weight (as opposed to the estimated weight of the product) of the item before printing the UPS label. Has anyone overcome these issues?
__________________
-Liz
Version 4.1.8
www.partssystems.com
Reply With Quote
  #2  
Old 07-17-2008, 04:59 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: ShippingKit for UPS Question

Moving to Third Party Add-Ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-05-2008, 02:31 PM
 
lizlee00 lizlee00 is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 56
 

Default Re: ShippingKit for UPS Question

I wanted to post back here in case anyone was interested. I ended up coming up with a pretty simple solution. I just converted the notes field of the Orders table to a weight field.

First I changed the datatype to decimal in the database. I then modified the history_order.tpl and changed the field from textarea to text box and changed the label. Lastly, I modified the UPS_ship.php file under modules/UPS_Ship. Where it once said:
Code:
$total_weight = array_pop (func_query_first ("SELECT SUM(p.weight*od.amount) FROM $sql_tbl[order_details] od, $sql_tbl[products] p WHERE od.orderid='$orderid' AND od.productid=p.productid"));

I replaced it with:
Code:
$total_weight = func_query_first_cell("SELECT notes FROM $sql_tbl[orders] WHERE orderid='$orderid'");

This allows the order processor to open up the order and enter in the weight before generating the shipping label for the order.
__________________
-Liz
Version 4.1.8
www.partssystems.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:28 PM.

   

 
X-Cart forums © 2001-2020