I need to implement a specific payment method on my site, and I need to "give" this method the total price,... but how do I get it? I can't find a string/variable that gives the total,... anyone know?
I need to implement a specific payment method on my site, and I need to "give" this method the total price,... but how do I get it? I can't find a string/variable that gives the total,... anyone know?
Try this:
$_SESSION['cart']->show_total();
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
It only gives the total of the products,... but I want the total,..total :) including shipping, etc.
You would still use that and simply ######### to it the "tax", "shipping", etc... as needed. You would have to create an expression like (this is not the correct one, just an example to get you started):
$products_total = $_SESSION['cart']->show_total();
$products_total + TAX_VARIABLE_HERE + SHIPPING_VARIABLE HERE = NEW TOTAL
Gives you the idea and should get you started. Go through the code in Zen, and you'll find the variables for Tax, Shipping, etc..
You may even be able to use one of the built in Order Classes in Zen to get it working.
Good Luck!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Bookmarks