Is there a way to get the order total from within a hook_payment_method function?
Thanks,
Shane
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
order total from within hook_payment_method?
Submitted by spydor@drupal.org on Mon, 06/23/2008 - 15:32
Is there a way to get the order total from within a hook_payment_method function? Thanks,
Glad you asked. Your second argument should be a reference to the order object. Depending on which $op you're in, it will mostly contain a fully loaded order which includes a property called order_total that you should be able to check like so: <?php
|
|
Joined: 01/19/2008