What are your settings for the Shipping/Packaging?
What are your settings for the Shipping/Packaging?
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
QUOTE=Ajeh;559683]Imagine for a moment ...
I buy 3 Products from categories_id 15 and that means UPS ...
Tommy buys 4 Products from categories_id 32 and that means "other shipping module(s)" ...
Freddy buys 2 Products from categories_id 32 and 1 Product from categories_id 15 ...
1 Can Tommy use UPS as an option? ... meaning other shipping modules show "and" UPS also shows ... OR, other shipping module(s) show but UPS does NOT show ...
2 Can Freddy "only" use UPS? ... meaning no other shipping modules show
3 Can I "only" use UPS? ... meaning my whole order is categories_id 15 so that is my "only" shipping module to choose from
What "other" shipping module(s) are you using aside from UPS?♠[/QUOTE]
I had this very same problem.
if a customer chose a category that only provided UPS and then added another product from a category that only provided "other shipping" once they clicked on checkout, an error page would come up as it would cancel each other out.
My only solution was that when lets say, category 2 was in shopping cart, to show other shipping as well as ups, when category 1 was in shopping cart, UPS would hide.. and if category 1 and 2 were in shopping cart, then only other shipping would come up and UPS would still be hidden. This way, only both UPS and other shipping option show up if a product from category 2 is added. if it is mixed up with another product.. UPS is no longer an option.
I think this thread can help me. I have tried figuring this out myself using the previous post but I am able to figure out what variable I need to use.
I want to set my USPS module to only turn on if the total order weight of each box in the order is less than 20 pounds.
Could someone please help me with the correct code to insert.
Matt
Ok I almost have something that works
In the USPS module I added $shipping_weight to the first global line
Then added this code:
// disable only if shipping weight > 20
if ($shipping_weight > 20) {
$this->enabled = false;
}
This then only lets the USPS module show if the total weight is less than 20 pounds
But If I have 2 boxes that each weigh less than 20 pounds USPS does not show but I want it to show.
Any help would be appreciated
Matt
If your Maximum Shipped weight is > 20, then your boxes cannot be less than 20 when there is more than one box ...
What are you using for the Maximum Box shipped in the Shipping/Packaging?
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
My Max weight per box is set at 30. So if I have 2 20 pound items each item would go in 1 box. But with the code I used the USPS module doesn't show.
Matt
Unfortunately ... it doesn't quite work that way, at this time ...
You have 2 20lb Products and ship a maximum of 30lbs so it will make 2 boxes of 20lbs ... check where you are setting your test what the actual value of $shipping_weight is ... if it is equal to 20 and you add in a Tare weight, then you are over the 20 and may really be at 22.00 with the 10:0 on the Large Package ...
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
I can certaintly help you on this..
Please email me at cs@cellmonsters.com
Currently I have been successful at coding the shipping options to include more than one master category.
Alright, so i have been troubleshooting this for a while now since it is an option that I really want and all i have been able to do is change the code to instead of using master_categories_id i tested with :
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','SHP1') > 0)) {
$this->enabled = true;
}
now, everytime a product with this model "SHP1" is in the cart, the appropriate shipping module is activated. What i found out is that you cannot include more than 2 main_categories_id in the shipping module. for example you can use:
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','1') > 0)) {
$this->enabled = true;
}
and under this another:
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','2') > 0)) {
$this->enabled = false;
}
this would disable any products in category 2 from using whatever shipping module this code is in. however, you cannot repeat the same code to disable another category as it would not work. At least it did not work for me. so what i did was change the master_categories_id to products_model, therefore any products with the same Model, regardless of their categories would disable or enable a shipping module.
Hope this helps everyone that would like to include many products in different categories and would like these to activate different shipping options.
Last edited by cellmonsters; 29 Jun 2008 at 10:58 PM.
Bookmarks