Post by nobodyinteresting » Tue Nov 12, 2019 2:38 am

Hey all!

Back with another question. I am trying to integrate OpenCart with a company we use for affiliates (affiliatly). What they told me is that I need to place a piece of code on the "thank you" page, which must have these:

{{order_name}} :: must be dynamically replaced with the order ID/name, required
{{subtotal_price}} :: must be dynamically replaced with the order subtotal, required
{{discount_code}} :: must be dynamically replaced with the used coupon code, if any, optional (needed only if you are using the coupon code tracking).
{{email}} :: must be dynamically replaced with the customer’s email, optional. Used for the email tracking and if you want to block certain customer emails from being tracked.

Can you please provide me with the appropriate calls for order name, subtotal, discount code and email, so I can replace them in the code I have, so I can get this working?
Also any idea where the "thank you" page is located, so I can ssh into the server and edit it?



Fri Nov 08, 2019 7:53 am

Post by DigitCart » Tue Nov 12, 2019 3:25 am

Controller file:


Code: Select all

if (isset($this->session->data['order_id'])) {
Add after:

Code: Select all

$data['order_info'] = $this->model_checkout_order->getOrder($this->session->data['order_id']);
View File:

Where you want add:

Code: Select all

{% if order_info is defined %}
  {{ order_info.order_id }}
  {{ }}
{% endif %}
You need to make sure that you've cleared all caches and refreshed the modifications.

My Extensions / DigitCart

User avatar
Active Member


Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: thekrotek and 19 guests