Actually I'm wrong...
Firearms get a $50.00 charge, Handguns get $35 -- these charges cover insurance and handling. Smaller items are flat rate priority mail box.
Actually I'm wrong...
Firearms get a $50.00 charge, Handguns get $35 -- these charges cover insurance and handling. Smaller items are flat rate priority mail box.
Last edited by colortheworld; 25 Oct 2010 at 07:54 PM.
Okay so the basic idea is ...
Count how many Products are in the shopping cart and then add $50.00 on a per Quantity per Product basis to the shipping charge ...
So if there were 9 Products in the Cart, and 3 come from the Rifle category and 4 from the Gun category and 2 from non-firearm categories ...
Then I could just take the Rate Quote from USPS based on weight, and add to those:
3 x 50.00 = $150.00
4 x 50.00 = $200.00
= $350.00
and add that $350.00 to each quote from USPS that is listed and the amount would apply, correct?
Then, if an Order is made with none of these firearm categories Products ... just the normal shipping rates from USPS would apply, correct?
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Not sure I catch you, but let me explain this a bit better, in terms of category
We have 3 categories on the site, the first is "Custom Rifles for Sale", the second is "Guns for Sale", and the third is "General Sales" (this is currently 2 guide books).
With 3 categories, we have a total of 13 products, all 6 in the "Custom Rifles" are Rifles. In "Guns for Sale" we have 4 rifles and 1 handgun (handguns are $35.00 shipping, in case you missed the edit I made on my last post), and "General Sales" is just 2 books.
I've added weight into the products, minus the books, and turned off the show weight and show transit boxes.
I don't see this "Per Quality / Per Product" in the Module, but I wonder if this means "Per Item / Per Unit". Is that the case?
Thanks for being so patient with me -- I'm a creature of retention. I can't just read something and totally get it all the time, but once I do it once (or twice), it's picked up.
"Per Product Per Item" is *me* asking *you* if the handling charge is based on the quantity ordered for each Product x $50.00 or just $50.00 if 1 or more are in the cart ...
This makes the calculation either the normal USPS shipping quote plus $50.00 or the normal USPS shipping quote plus $50.00 per Product x quantity ...
And then, if no firearms are in the cart, just the normal USPS shipping quote ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Oh, okay, I understand what you're saying now lol. I guess it would have to be per quantity and per product? Does that make sense?
Reason I say that is, if somebody purchases 2 rifles and 1 hand gun, that's $135.00 in costs right there. If they pick up a book that's another extra shipping cost.
Let's say you want to check the cart for how many Guns (categories_id 2) and Rifles (categories_id 3) there are ... and that the Products in those Categories have the master_categories_id set to those categories_id ...
Now, the $extra_handling_fee can be added to the cost for the quotes ...Code:global $cart; $chk_guns = $_SESSION['cart']->in_cart_check('master_categories_id','2'); $chk_rifles = $_SESSION['cart']->in_cart_check('master_categories_id','3'); $extra_handling_fee = ($chk_guns * 50) + ($chk_rifles * 35);
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Okay, I've been gone for a few days, but I'm back. To do what you suggested, Ajeh, is that something I would have to get into the database to find, or is it a directory within the zencart?
I use a web editor for php files, but I'm not sure if this would be similar or if I would have to get into the database.
You would need to customize the shipping module that you are using ...
If you are using the Per Unit perweightunit shipping module, then you need to customize the file:
/includes/modules/shipping/perweightunit.php
and add the calculation and then and the results to the cost that is calculated in the function quote ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
If you are using USPS shipping module, then you will want to customize the file:
/includes/modules/shipping/usps.php
and add the calculation and then and the results to the cost that is calculated in the function quote ...
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!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!