Getting data from Community Store
Permalinkand then add some code to hook in to the on_community_store_payment_complete event.
You'll probably need to add a little custom package, and add the code into the package controller's on_start() method.The WIKI page links to an example package you can modify as you see fit.
https://concrete5-community-store.github.io/community_store/develope...
(the work very similar to other concrete5 events that are triggered)
There's also a new RESTful API for Community Store, which would allow you fetch data about all/any order externally: https://github.com/concrete5-community-store/community_store_api...
/* * The Order object is loaded should we wish to place receipt details here. * Example: * echo $order->getTaxTotal() * echo $order->getShippingTotal() * echo $order->getTotal() * * $orderItems = $order->getOrderItems(); * foreach($orderItems as $item){ * echo $item->getProductName(); * echo $item->getQty(); * echo $item->getPricePaid(); * } * */
Would the best way to do this to be to put in something like:
?