Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
HELP I can not figure out how to add a new post so I am just replying to this one.
My customer called and my site is sending the message "not shipping to your area at this time" I tested the site and it does this to me also. I have not touched the site except to add products. I have 1.39e. I charge a flat rate for shipping and taxes are based on the store=MN. I set all my products as 0 rate so that they go to the flat rate shipping. This worked fine and is now not working. I have the zone turned off. I looked in book and can not find anything. Please I am not real versed in computer language so keep it simple. LOL
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Quote:
Okay so that part is working fine to charge the correct amounts based on those two manufacturers_id values ...
The $50 that the cart charges for 1 product from manufacturers_id 1 and 1 product from manufacturers_id 2 should just be $35.
Quote:
If you add 1 Product to the order that is not in manufacturers_id 1 or 2 what is the amount?
$3
Quote:
If you add 2 Product to the order that is not in manufacturers_id 1 or 2 what is the amount?
$6
Quote:
If you add 1 Product to the order that is not in manufacturers_id 1 or 2 and add 1 Product from manufacturers_id 1 what is the amount?
$18
Quote:
If you add 2 Product to the order that is not in manufacturers_id 1 or 2 and add 1 Product from manufacturers_id 1 what is the amount?
$21 (this one and the one above should remain $15, as I do not charge shipping for items I stock when combined with drop-shipped products.)
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Okay ...
Are you saying ...
if the cart contains 1 or more Product from manufactures_id 2 charge $35, regardless of any other product in the cart?
if the cart contains 1 or more Product from manufactures_id 1 (and none from manufacturers_id 2) charge $15, regardless of any other product in the cart?
And if the cart contains any number of Products from any thing and *none* from manufacturers_id 1 or 2 then charge the $3 per Item?
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Quote:
Originally Posted by
Ajeh
Okay ...
Are you saying ...
if the cart contains 1 or more Product from manufactures_id 2 charge $35, regardless of any other product in the cart?
if the cart contains 1 or more Product from manufactures_id 1 (and none from manufacturers_id 2) charge $15, regardless of any other product in the cart?
And if the cart contains any number of Products from any thing and *none* from manufacturers_id 1 or 2 then charge the $3 per Item?
Yes, that's what I'd like. Sorry if how I worded it was confusing.
Again, thanks heaps for your help :bigups:
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
That is very different from what it sounded like you wanted ...
Start over with the Item Rate item shipping module and try the code as:
Code:
// class methods
function quote($method = '') {
global $order, $total_count;
// check if manufacturer 1 or 2 is in cart
global $cart;
$chk_manufacturers_id1 = $_SESSION['cart']->in_cart_check('manufacturers_id', '1');
$chk_manufacturers_id2 = $_SESSION['cart']->in_cart_check('manufacturers_id', '2');
$chk_shipping_charges = 0.00;
switch(true) {
case ($chk_manufacturers_id2 > 0):
$chk_shipping_charges = 35.00;
break;
case ($chk_manufacturers_id1 > 0):
$chk_shipping_charges = 15.00;
break;
}
// adjusted count for free shipping
$item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
'cost' => ($chk_shipping_charges > 0 ? $chk_shipping_charges : ((MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING) ) )));
if ($this->tax_class > 0) {
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
It works perfectly :clap: Thanks so much.
I just have a couple of final questions that are a little off-topic...
First - I mentioned earlier that I ship internationally, and therefore have the Zone Rates shipping mod installed. The only thing is that it shows on the shipping estimator when it is set to national shipping (which is Australia), saying "No shipping available to the selected country".
Is there any way to get it to hide completely unless a customer specifies a country other than Australia?
Second is the same as above, except reversed. So is there a way to hide the Per Item shipping module when a customer specifies an international country?
Once more, I appreciate everything you've done and I'll be sending a cup of coffee your way (I'm going to have to ask you how I go about that, though).
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Build a Zone for the Rest of the World and add it to the Item Rate item shipping module ...
What are your settings on the Zone Rate zones shipping module? It sounds like you do not have a setting correct on it ...
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Quote:
Build a Zone for the Rest of the World and add it to the Item Rate item shipping module ...
After checking, I found I hadn't set up my Zone Definitions properly. Now that I've fixed them, the Per Item mod no longer displays internationally.
Quote:
What are your settings on the Zone Rate zones shipping module? It sounds like you do not have a setting correct on it ...
Again, looking over the settings, I found I had overlooked the Skip Countries option on the Zone Rates mod :oops:
So I think everything is sorted out now.
As always, thanks for everything, and if you could give me the details I need to pay you, a well-earned cup of coffee will be on its way :smile:
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Thanks for the update that all is working properly now ...
The link for coffee and donuts to the Zen Cart Team is in my signature ... :cool:
Re: Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories
Hi Linda
It seems I overlooked one aspect of my shipping when I was discussing it with you...
I have just now realised that I have some small accessories available from manufacturer 1, but which ship at a separate price.
I managed to incorporate the shipping prices for them just fine using a table rate (up to 2 accessories for $5 and up to 10 for $10), but now I can't hide that module when the regular items from manufacturer 1 are in the cart.
So, I want the Per Item module to show as before, when regular items from manufacturer 1 are in the cart, but to have it hide and the Table Rate module to show when accessories from manufacturer 1 are in the cart (each are listed in separate categories).
I've tried to alter some of the codes you've given previously, but I've had no luck with it.
This is what I had hoped would work:
PHP Code:
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','4') > 0)) && (('manufacturers_id','1') > 0)) {
$this->enabled = true;
} else {
$this->enabled = false;
}
I'd really appreciate it (again!) if you could show me what I need to change to get it to work :smile:
Thanks,
Tija