What is the customer group id that you are trying to block from the payment modules?
Are you using PayPal Express?
Also, check that the customer you are testing with is in the customer group that you want blocked from PayPal Express ...
What is the customer group id that you are trying to block from the payment modules?
Are you using PayPal Express?
Also, check that the customer you are testing with is in the customer group that you want blocked from PayPal Express ...
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!
The group ID is 1, so I used this code:
I am using Paypal Express and Authorize.net AIM, I tried it in both files but it didn't hide either method.// bof: disable when when customer group is 1
if (!IS_ADMIN_FLAG) {
global $db;
$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'] == 1) {
$this->enabled = false;
}
}
// eof: disable when when customer group is 1
The customer is definitely in group 1.
Last edited by Ajeh; 27 Feb 2012 at 07:43 PM. Reason: fixed typo
Danielle
eeks typo!!
Change the:
to read:Code:$this->enable = false;
see if that works better ...Code:$this->enabled = false;![]()
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!
Perfect, thanks!!!
Danielle
Thanks for the update that this is working for you now ... without that silly little typo ...![]()
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!
This is just what I need, but in reverse!
I want to show 2 payment options at checkout depending on their group. Either "press" for the "press group" or "team" for the "team group". The press & team payment options are renamed "cod & money order" payment options. Ideally (if wishes were raindrops) I'd like 2 new payment options "Press" & "Team" made available.
When either of the 2 groups login (100% disc) I want them to see the previously hidden options (as well as the paymate/paypal ones available).
Would it be possible to exclude a product from the discount group? Say, a donation item?
Team/Press come along, they login they add to the cart their review/staff items - but hey, they want to help with our charity of the month and add the "donation" item to the order. Is it possible to have that excluded from the group?
v1.5 (reward points; master password; paypal express; paymate; orders 2.0 - selling digital software only)
Many thanks in advance,
Karen