Hi,
I am trying to disable payment by moneyorder on "item" delivery purchases.
I guess, some code is to be added in moneyorder.php.
Does anyone have a lead ?
Thanks a lot..
Hi,
I am trying to disable payment by moneyorder on "item" delivery purchases.
I guess, some code is to be added in moneyorder.php.
Does anyone have a lead ?
Thanks a lot..
Probably better to make the change in the payment class, where it works out what payment methods are available. Otherwise your Zen Cart may think, and act, as though it has more methods available than it actually does.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Hi,
Thanks. Just to be sure, that would be in
includes\classes\payement.php ?
Actually, a little elf has just has just whispered in my ear that it would be better to go with your original plan and use your condition to set the $this->enabled class variable to true or false as appropriate.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Hi,
Thanks. This leads to a question regarding sessions, I guess. The code in moneyorder.php should use:
$_SESSION['cart']->stuff()
followed by conditions leading to $this->enabled = true or false
Does anyone know how to get the list of stuff() available at that stage ?
Thanks..
The session's only contribution to this is to hold the name of the object created by the cart class. You could try using var_dump() to see what's in there, and then extract what you need. This is usually good enough though, but if not, you would need to visit the cart class to see how the object is constructed.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)