with this
don't work (I see always cod payment)PHP Code:global $order;
$chk_abc = $order->customer['email_address'];
if ( ($this->enabled == true) && ( $chk_abc != '[email protected]' ) ) $this->enabled = false;
![]()
with this
don't work (I see always cod payment)PHP Code:global $order;
$chk_abc = $order->customer['email_address'];
if ( ($this->enabled == true) && ( $chk_abc != '[email protected]' ) ) $this->enabled = false;
![]()
Last edited by Ajeh; 20 Oct 2011 at 04:53 PM.
Did you add this to the products table?
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!
On the Payment Module for COD, you would add the the code in RED for:
And only the email address for:Code:if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID; } if (!IS_ADMIN_FLAG) { global $order; $chk_abc = $order->customer['email_address']; if ( ($this->enabled == true) && ( $chk_abc != '[email protected]' ) ) $this->enabled = false; } if (is_object($order)) $this->update_status();
will see the COD module ...Code:[email protected]
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!
so only my customer with email [email protected] don't will pay on cod!PHP Code:if (!IS_ADMIN_FLAG) {
global $order;
$chk_abc = $order->customer['email_address'];
if ( ($this->enabled == true) && ( $chk_abc == '[email protected]' ) ) $this->enabled = false;
}
Thank you very much, Ajeh!![]()
Yes if you use the == then if the email address *matches*, the COD module is turned OFF ...
Try it with your email address on your test Customer account ...
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've just try it, works great. So [email protected] will pay only with credit card or bank transfer!
Thanks for the update that this is now working 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!