I found how to set group % discount. But, I also want to to offer free shipping for some groups of customers. How should I set up this? Thank you.
I found how to set group % discount. But, I also want to to offer free shipping for some groups of customers. How should I set up this? Thank you.
I'd like to do the same thing.
regards, anna
Is this Free Shipping forever?
Is this Free Shipping for One Order Only?
Can you give more specifics?
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 Linda,
The idea is to offer free shipping is for a certain group of customers and should be forever :), (we offer a organic-home-delivery-service).
The problem is that the discount for a group is on a percentage basis and our shipping is a fixed amount.
Thank you, Anna
So anyone in Group ABC gets the associated discount and should be offered a Free Shipping Option ... or just get the Free Shipping Option and no other choices?
NOTE: Offering a Free Shipping Option based on some criteria is easier than forcing a Free Shipping Option and no other choice ...
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's the point, no discount, just free shipping...
of course if the group discount could be a fixed amount, would be wonderful as well.
This code could be turned into something:
PHP Code:$group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
if ($group_query->fields['customers_group_pricing'] != '0') {
$group_discount = $db->Execute("select group_name, group_percentage from " . TABLE_GROUP_PRICING . "
where group_id = '" . (int)$group_query->fields['customers_group_pricing'] . "'");
// do something here with the $group_discount->fields['group_percentage']
// do something here because (int)$group_query->fields['customers_group_pricing'] has a value
}
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 Linda,
I freewheeled somewhat in the direction you pointed out to me, but being an complete PHP-ignorant I didn't get very far.
$discount = ($order_total - $gift_vouchers) * $group_discount->fields['group_percentage'] / 100;
modified in
$discount = 4
results in a discount of €4.03 (which is something)
but isn't it possible to just add something like:
if (if ($group_query->fields['customers_group_pricing'] != '0' && $group_id ==1) /my free-shipping group ID {
$discount = 4;
}
thank you very much for your interest, anna
That is more along the lines of what I mean ...
Obtain the customer's group id and if it matches the one you want to discount you can then manage what shipping modules show or do not show or apply a discount as needed ...
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!