Hi,
Is there a way to make moneyorders OK if more than XXX ?
I read a post mentionning coding: "$this>=XXX;"
but in which file and where exactly...Also I would need an error message somewhere if the order is below XXX
Thanks if you can help.
Hi,
Is there a way to make moneyorders OK if more than XXX ?
I read a post mentionning coding: "$this>=XXX;"
but in which file and where exactly...Also I would need an error message somewhere if the order is below XXX
Thanks if you can help.
Last edited by broeder; 7 Oct 2009 at 01:16 PM. Reason: typo...
Edit the Check/Money Order moneyorder payment module and add below this line:
the new code:Code:$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
Code:global $cart; if (!IS_ADMIN_FLAG && ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices()) <= 100) { // show if less than or equal to $100 $this->enabled = true; } else { // do not show if more than $100 $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!
Thanks a lot!
Hi,
I need to allow moneyorders on a customer-approved basis.
I guess I could create a group for that or check a field on approved customers.
But I also would need to add code to moneyorder.php....
Anyone has a clue ?
Thanks a lot.
You could use something similar to the Check/Money Order moneyorder payment module where you test for whatever you use to distinguish which customers are allowed to use the Check/Money Order moneyorder payment module and only show it when they qualify based on that condition ...
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 Ajeh,
Could could you be more specific ? Is that in moneyorder.php
or somewhere in Admin ?
Thanks for your help!
You could add:
below the line:Code:if (!IS_ADMIN_FLAG && $order->info['total'] < 100.00) { $this->enabled = false; }
Code:$this->enabled = ((MODULE_PAYMENT_INSTALLMENT_STATUS == 'True') ? true : 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!
Thanks for looking at this Ajeh. I've tried what you suggest, but it didn't work. I have a £35.00 cart and it's still showing.
Last edited by limelites; 20 Jan 2011 at 08:39 PM.
What does the:
function installment() {
// stuff here
}
read on the server right now?
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!