php - Virtuemart - Tie in API function on checkout -
what trying once user checks out, buy's $25 worth of points; need send message api user made purchases worth $25 dollars.
i found file, checkout.thankyou.tpl.php
, confirmation message given after goes well. going tie in api function.
my question how amount user purchased? page mentioned above, need access total amount user spent. stored in global variable? still accessible? appreciate ideas may have.
on last step of checkout ps_checkout->add() called add shopping cart items database, same function sends notification email , clears cart session. is:
- use system plugin onafterinitialise looks option/task triggers last checkout step
- recalculate cart total $_session, need initialise virtuemart session, have @ virtuemart.php
- store result temporarily in different $_session variable
- same plugin, check loading of thank page , check variable in session. trigger api.
Comments
Post a Comment