| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
UPS - Setting Maximum Weight per box | ||||
|
|
Thread Tools | Search this Thread |
#41
|
|||||||||
|
|||||||||
Re: UPS - Setting Maximum Weight per box
I have a client that ships bulk amounts of small products in one standard size box, with a maximum of 60 lbs per box. I need to fill each box up to 60 lbs and then start a new box.
here is the code that makes that happen (beware the <<<EOT spacing as explained above) in mod_UPS.php before (around line 349): Code:
after: Code:
no other files to modify. cheers,
__________________
jonc X-Cart Gold 4.1.10 - http://www.hypnoskates.com X-Cart Gold 4.1.10 - http://tryten.com/shop/ X-Cart Gold 4.1.10 - http://www.bluecurl.ca/shop/ |
|||||||||
#42
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
Should it be compatible with 4.1.8 Pro.? The orig. code to change is identical to that in your post.
I tried it in 4.1.8 Pro. Page errors when clicking the cart: "Parse error: syntax error, unexpected '}' in /var/www/vhosts/storex1.com/httpdocs/shipping/mod_UPS.php on line 477" I delete the } in line 477. The error no longer occurs, but then I always simply get the No Available Shipping Method.
__________________
Jonathan X-Cart Pro v 4.1.11 (win) |
|||||||
#43
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
This looks like it is almost what I need. Thanks for all who came before!
My customers products are sometimes shipped one product per box, sometimes shipped several products per box (to a max weight of about 50 lb) and some of the shipping containers required UPS surcharge as they go in pails. Using the extra fields from the product, could I set a field to indicate whether the product is shipped alone or can be combined with other products to a max weight ... and then use that to further clarify the package sizes for UPS? And could I take either the amount in the "freight" field from the product or a custom field, and add that to the total price of shipping returned to the purchaser? Suggestions on the code? Help appreciated! Marie
__________________
SoapLady Working with various versions of X-Cart Gold from 4.0.x to 4.4.1 (Trying to get everyone up to 4.4.x) |
|||||||
#44
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
__________________
Current version: 4.1.5 Centos 4x |
|||||||
#45
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
Where exactly do you enter the code in mod_UPS.php the direction is kinda confusing or w as anybody able to figure out a solution for this?
__________________
4.6.1 Gold Plus |
|||||||
#46
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
Hi Everyone,
I tried to do what Nick said but I crashed my website - I am getting all sorts of error messages namely: Warning: Smarty error: unable to read resource: "customer/main/buy_now.tpl" in /home/krdesig/public_html/store/Smarty-2.6.3/Smarty.class.php on line 1082 underneath all of the products and this error message when I try to view the cart Parse error: syntax error, unexpected T_SL in /home/krdesig/public_html/store/shipping/mod_UPS.php on line 222 Of course I forgot to save my original files before making the changes so I am in a real bind can anyone help me? I am using x-cart version 4.0.8
__________________
Cart version 4.0.8 X-Cart Gold Add-on: X-RMA (Return Merchandise Authorization) Add-on: X-AOM (Advanced Order Management) Add-on: X-FancyCategories But in the process of ugrading to: Cart version 4.2 |
|||||||
#47
|
|||||||||
|
|||||||||
Re: UPS - Setting Maximum Weight per box
Post 40 works for 4.1.10....thanks tons!!
__________________
4.4 Code:
|
|||||||||
#48
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
I'm on 4.19 and none of these worked for me. nicks original gave me a error on modups and this last one post #41 did not do anything.
I simply need to be able to ship items as individual boxes. anybody have any ideas? SCRATCH ALL THAT... i took a nap and gave it another shot with a fresh set of eyes and post #41 worked on my 4.19.
__________________
Thanks, Alex. Too many version to list. I have some on 3.51 and some on the latest version. |
|||||||
#49
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
Post #40 worked for me. I'm on 4.1.9
I tried processing a shipment way over 149lb and it returned a UPS rate much lower than expected. However, this is the first thing that has worked for me so THANKS! I had to add "EOT;" above the first "#Custom Code" comment from post #40, so it was: </shipto> // start copying here for 4.1.9 EOT; #Custom Code for Orders weighing over 150lbs. change this code of mod_UPS.php after line 349. global $cart;
__________________
Robert Yedlin |
|||||||
#50
|
|||||||
|
|||||||
Re: UPS - Setting Maximum Weight per box
Not really intended to ship single items over 149 pounds. Regular UPS will not pick it up. It is for shipping multiple boxes that total more than 149 pounds.
For example 5000 business cards ship in a single 15lb box. If someone orders 10 sets of business cards the cart will return "no method available" For single items over 150 get a freight rate and set up zones.
__________________
Thanks, Alex. Too many version to list. I have some on 3.51 and some on the latest version. |
|||||||
|
|||
X-Cart forums © 2001-2020
|