Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default UPS Worldship XML Export

    I installed this wonderful mod, and it all seems to work except it is not adding the proper weight to UPS.

    I was thinking, it would be good for this program to either enter the proper weight (it is only adding each Item's weight once, even if there is multiple items)
    or a way to make it enter 0 for every weight and all orders go into the pending shipment so I can manually enter all weights, and process the shipment.

    Any help would be AMAZING!

  2. #2
    Join Date
    Nov 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: UPS Worldship XML Export

    You got no help?

    I had the same problem because we use a prefix to our SQL table names. That is, our orders table is actually called pre_orders where pre_ is the table prefix.

    To fix this chage from hard coded table names to zen cart variable names in print_ups_xml.php. So change line 44 in print_ups_xml.php from:

    Code:
      $query = mysql_query("SELECT * FROM `products` wHERE `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
    to:

    Code:
     $query = mysql_query("SELECT * FROM ".TABLE_PRODUCTS." WHERE `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
    note that the tabled called products was changed to TABLE_PRODUCTS.

    You also need to make a similar change to line 52. From:

    Code:
        $query = mysql_query("SELECT `shipping_method` FROM `orders` WHERE `orders_id` = ".$oID." LIMIT 1");
    To:

    Code:
        $query = mysql_query("SELECT `shipping_method` FROM ".TABLE_ORDERS." WHERE `orders_id` = ".$oID." LIMIT 1");
    I hope that helps anyone else who is stumbling....

    Chris

  3. #3
    Join Date
    Dec 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: UPS Worldship XML Export

    I'm having same probs... I just added this update, ctopher, and it didn't fix it. What is that update supposed to do?

    (using version 9 at the moment)
    Thanks,
    Chuck
    Last edited by chuckienorton; 28 Jan 2009 at 09:24 PM. Reason: wanted to ask an actual question!

  4. #4
    Join Date
    Nov 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: UPS Worldship XML Export

    The changes I suggested made the module more friendly to carts that use a prefix in their table names.

    When installing Zen Cart, you could, at the Database Setup screen, set a string as the "Store Identifier (Table-Prefix)". If you didn't leave this blank, then the table names in your database would use this string as a prefix.

    http://www.installationwiki.org/imag...1175_02_10.png

    For example if you put "Zen_" as the Store Identifier, then your "products" table will actually be called "Zen_products". If this is the case there will be no "products" table and the Worldship Export module's query will fail because the table doesn't exist. All I did was replace the hard coded table names with the Zen Cart variable names which will automatically use the Store Identifier.

    What problems are you having?

  5. #5

    Default Re: UPS Worldship XML Export

    My prefix is zen. Change line 42 to 50 in print_ups_xml.php to the code below which will multiply weight with quantity per product ordered.
    Code:
    while (!empty($order->products[$i])) {
    
      $query = mysql_query("SELECT * FROM `zen_products` wHERE `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
      $result = mysql_fetch_array($query);
      $query2 = mysql_query("SELECT * FROM `zen_orders_products`  WHERE `orders_id` = ".$oID." AND `products_id` = ".$order->products[$i]['id']. " LIMIT 1");
      $result2 = mysql_fetch_array($query2);
      $weight = $weight + $result2['products_quantity'] * $result['products_weight'];
      $i++;
      }

 

 

Similar Threads

  1. UPS XML - Weight not transferring to WorldShip
    By ikernbecauseicare in forum Addon Shipping Modules
    Replies: 6
    Last Post: 23 Feb 2011, 08:03 PM
  2. UPS Worldship 9.0 Export Weight issues
    By staft in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Oct 2009, 04:00 PM
  3. UPS XML Worldship 9.0
    By spilker in forum Addon Shipping Modules
    Replies: 0
    Last Post: 16 Feb 2009, 06:14 PM
  4. UPS XML export to Worldship 9.0 import chokes on an "&"
    By snowkrash in forum Addon Shipping Modules
    Replies: 1
    Last Post: 16 Jan 2009, 05:35 PM
  5. UPS XML Auto Export & Worldship -- too costly
    By Twbeebe in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 30 Sep 2008, 06:50 AM

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