AbanteCart Community

Shopping Cart Operations => Support => Topic started by: kaitsie22 on March 18, 2013, 04:43:00 AM

Title: How to add conversion code?
Post by: kaitsie22 on March 18, 2013, 04:43:00 AM
Hi, trying to add conversion code in the 'Thank You' page of checking out.

Anyone figure out how to do so?

Thanks!
Kait
Title: Re: How to add conversion code?
Post by: abantecart on March 18, 2013, 07:05:30 AM
Success template is shared with few different submit processes.  It will not be right to add it to that template.

You can add javascript to success controller. It will be loaded right after order is placed.

/storefront/controller/pages/checkout/success.php

Add:
Code: [Select]
$this->document->addScript(RDIR_TEMPLATE . 'javascript/[YOUR FILE]');
somewhere after  line:
Code: [Select]
$this->extensions->hk_InitData($this,__FUNCTION__);