Skip to main content

Need help installing ecommerce code on opencart site (Google Analytics 4)

Comments

1 comment

  • Karapuz

    Hi,

    The final page visible by a customer after placing an order is a success page. A controller file for that page is located here:

    catalog\controller\checkout\success.php

    A template file for a default theme in Opencart 3 is located here:

    catalog\view\theme\default\template\common\success.twig

    You can collect all required parameters in success.php from the order and pass them to success.twig file. There, you will put your js code and substitute the parameters as shown in the example.

    These changes require good knowledge of php and twig.

    Kind regards,

    Karapuz

    https://www.ka-station.com

    0

Please sign in to leave a comment.

Powered by Zendesk