In Admin/Configuration/Shipping and Packaging there is an option for the "Order Free Shipping 0 weight"
and in Modules/Order Total is where I set the "Allow Free Shipping"
In Admin/Configuration/Shipping and Packaging there is an option for the "Order Free Shipping 0 weight"
and in Modules/Order Total is where I set the "Allow Free Shipping"
You do not want the Modules ... Order Total .... Shipping ot_shipping to have a Free Shipping setting ...
You want the Modules ... Shipping ... Free Shipping Options freeoptions turned on with the Total set to >=0 ...
Then you need to customize the file:
/includes/modules/shipping/freeoptions.php
if you have a limited number of customers that is Free Shipping ...
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!
Hi Ajeh,
You say I will then have to customise the file: Then you need to customize the file: /includes/modules/shipping/freeoptions.php....
Is this actually within the code? If so I wouldnt know where to start. Also - I have about 200 invoice customers (and growing) if that make a difference.
I will install the module and see what it entails.
many thanks for your time.
How are you identifying the Invoice Customers?![]()
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!
Hi Ajeh,
I use the Customers area in admin and then select the relevant option (Invoice Only) from the Discount Pricing Group drop down.
For example, let's say the Discount Group ID is 2 ... you can customize the code for:
/includes/modules/shipping/freeoptions.php
with the code in RED:
Now only those in Discount Group ID 2 can use this shipping module ...Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false); } // bof: Only for Discount Group 2 if (!IS_ADMIN_FLAG) { $chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'"; $chk_discount_group = $db->Execute($chk_discount_group_sql); if ($chk_discount_group->fields['customers_group_pricing'] != 2) { $this->enabled = false; } } // eof: Only for Discount Group 2 if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_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!
Cool!
Sorry to be a pain - but I have had a look at the SQL table and it appears that every customer that is not in a "discount group" is set to "0".
Is it possible to reflect in the code that if customer is in group "0" then they do not get free shipping?
I tried to put your code into the zones module but then I get an blank screen:
Is it in anyway possible to use thies code also in the table and zones module
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
}
// bof: Only for Discount Group 1
if (!IS_ADMIN_FLAG) {
$chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
$chk_discount_group = $db->Execute($chk_discount_group_sql);
if ($chk_discount_group->fields['customers_group_pricing'] != 1) {
$this->enabled = false;
}
}
// eof: Only for Discount Group 1
// CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED
$this->num_zones = 3;
I have not forgotten you ... I just have not had time to really look at this and what you need vs the examples posted ...
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!