Home Integration Methods CoreCommerce


The integration method of CoreCommerce shopping cart.
Sale tracking
Open file packages/core_commerce/single_pages/checkout/finish.php and find this line:
if($previousOrder instanceof CoreCommercePreviousOrder && $previousOrder->getStatus() > 0) { ?>

Add the sale tracking code below the line:
Save your changes and that's it. Your thank you page has just been integrated. If you want per product integration, please use the sale tracking code from the next step.
Per product integration
The sale tracking code for per product integration is this, place it to the file described in previous step:
Save your changes and that's it. Your site has just been integrated.
PayPal with CoreCommerce 1
In case you are using PayPal as your payment gateway in CoreCommerce and you want to track it, use this integration step.

The first step is to add the tracking code to all buttons generated by CoreCommerce. To
 do this, edit this file packages/core_commerce/models/payment/methods/paypal_website_payments_standard/form.php and add this code after the "foreach" loop:
Save your changes.
PayPal with CoreCommerce 2
Now edit file controller.php (in the same directory) and find private function validateIPN() {
Add this code right below the line:
Save your changes. The last step is to turn on PayPal plugin in your merchant panel and configure it. That is it... Now all your payments done through PayPal will be tracked, as well as its cancellations or refunds.
HOSTED version of CoreCommerce
If you happen to have a hosted solution of CoreCommerce then the sale tracking code integration happens inside the CoreCommerce admin panel.
To integrate it this way, in CoreCommerce admin panel click 'Settings' in the top right corner. At the settings page click 'Affiliate settings'. In this Affiliate settings page you will find a field called 'Custom Affiliate Program Code' where you can place the hidden image (pixel) tracking code:
Save your custom code and that's it.
Do not forget to add the click tracking code to your theme files (header or footer).