Thank you, I thought there would be a way to just edit the ups module to check the flat rate table option and add them together
Thank you, I thought there would be a way to just edit the ups module to check the flat rate table option and add them together
any other ideas out there on how to edit the existing modules to achieve this?
This is actually not as hard as you think ...
If you could provide a few more details ... I can tell you how to do this ...
When an Order is made, what specifically can be used as an indicator of Products that can ONLY use Table Rates ...
Example, would the master_categories_id of a Product indicate if the Product can go via UPS or Table Rate?
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!
Thank you that would be great. I could use a master category but that would cause a problem since the "drums" are in more than one category. Would it be possible to use product id#'s? That would be best since there isnt' really a specific category that would ALL go the table rate
thank you
Actually it looks like I will need to use the "zone rates" module since it will charge a different rate depending on the state they are in
thanks
one last question. Would this module work with zen cart 1.5 http://www.zen-cart.com/showthread.p...t=zones+tables
I need to split up zones if they order a drum. Each zone has 6 states and the rate is different for each zone..
Let's say you have 3 master_category_id values for the specific Categories that are no suppose to use UPS ...
You can test for these Products by using in the file:
/includes/modules/shipping/upsxml.php
Add the code in RED and set the master_categories_id to the Categories that you do not want to use the UPS shipping for ... if you need more Categories, just add additional lines for them ...
then, whether you use the Table Rate table or another shipping module, you can use similar code and just change the test ...Code:// bof: test for not allowed categories 10, 12 and 15 if (!IS_ADMIN_FLAG) { $chk_cat = 0; // check how many Products are in the cart for master_categories_id 10 and 12 $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','10'); $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','12'); $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','15'); // if any are found turn off the shipping module if ($chk_cat > 0) { $this->enabled = false; } } // eof: test for not allowed categories 10, 12 and 15 if (($this->enabled == true) && ((int)MODULE_SHIPPING_UPSXML_RATES_ZONE > 0)) {
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!
That will effectively disable a shipping method for the order if it is not applicable based upon master category id... I think part of the OPs request was to have one order with products requiring different shipping methods (UPS / table / etc) and have a shipping quote returned for all items in the order (add together quotes from all necessary methods)... but maybe I was wrong?
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker