Home Integration Methods OpenCart

OpenCart

This is integration method for open source shopping cart OpenCart. The integration is done by integrating files of thank you page.
1
Edit confirm action
Navigate to your cart directory catalog\controller\checkout\ and open confirm.php (for older versions also guest_step_3.php) for editing. Find this line:
$this->data['totals'] = $total_data;
There are two of this lines, find the second one. It should be around line 419.

Put these lines below it:

Save these files and continue with next step.
2
Edit success action
Open file catalog\controller\checkout\success.php
Find this line:
  if (isset($this->session->data['order_id'])) {
It should be around line 10.
Put this code below it:
Again do not forget to save the file and continue with next integration step.
3
Whole cart as one transaction - Edit success view
If you want to process whole payment as one transaction in PAP follow this step. If you want to create one transaction for every product skip to step 4.

Open file catalog\view\theme\default\template\common\success.tpl

Add these lines:
Save the file and your shop is integrated.
4
One transaction per product - Edit success view
This step is not necessary if you integrated step 3.

Open file catalog\view\theme\default\template\common\success.tpl

Add these lines:

OpenCart 1.4.9.4 Integration

3 months ago Victor Knight
My shop is operating as per above version of Opencart.

What versions does your integration instruction apply to?

Looking forward for your response.

Thank you.

Devon