To turn off the Flat Rate flat shipping module, just change the one line:
to read:Code:if ($chk_cat < 1) {
Now if there is 1 or more in the cart this shipping module will not show ...Code:if ($chk_cat >= 1) {
To turn off the Flat Rate flat shipping module, just change the one line:
to read:Code:if ($chk_cat < 1) {
Now if there is 1 or more in the cart this shipping module will not show ...Code:if ($chk_cat >= 1) {
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!
It is my understanding that you want to run the Flat Rate flat shipping module when there are NO Products from the 3 categories in the cart ... and you want to run the Flat Rate Clone when you have 1 or more Products from the 3 categories in the cart ...
Is this 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!
I have this now:
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat >= 1) {
So, I ran a test and the amounts are reversed.
I would like 70.76.78 to be 3.95 and I set that under shipping price in admin flat clone.
The rest to be $8.00 (regular flat)
But it's reversed....yicks I am sorry I am so lost here..thanks for patience.
Example...if I add a product from 82 it's showing up 3.95 instead of 8.00.
I have been really trying to figure this out. Sorry again..
flat.php
// bof: disable for these master_categories_id
if (IS_ADMIN_FLAG == false) {
// check master_categories_id add one line per master_categories_id
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat > 0) {
$this->enabled = false;
}
}
// eof: disable for these master_categories_id
clone flat php
// bof: disable for these master_categories_id
if (IS_ADMIN_FLAG == false) {
// check master_categories_id add one line per master_categories_id
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat >= 1) {
$this->enabled = false;
}
}
// eof: disable for these master_categories_id
Again, thank you so much helping me out and I am sorry I am lost. This is a bit challenging for me...but I am seriously trying.
You need to decide which shipping module is to be used when NO Products from the 3 Categories are in the cart and which module should be used when 1 or more Products from the 3 categories are in the cart ...
Also, what is suppose to happen on a mixed cart that has 1 or more Products from the 3 Categories and 1 or more Products that are not in the 3 Categories?
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 ajeh for all your work, I learnt alot from your replies and messages on this forum..today I was trying for category shipping but did something wrong..now I can not see install, remove or edit menu on the right side under shipping module...
more details...
when I click on shipping modules...I can see 10 type of shipping modules but on the right side after action menu..there is no link to install, remove or edit....suddenly disappear....
Please help so I could go further....
Check the directory:
/includes/modules/shipping
and make sure that you do not have any extra files, such as backup files in the directory ...
Check the directory:
/cache
and see if you have any debug logs ...
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!
Thanks for the update that this worked for you ...![]()
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!