Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

e-commerce tracking doesn't work anymore with vm!
(1 viewing) (1) Guest

TOPIC: e-commerce tracking doesn't work anymore with vm!

Re:e-commerce tracking doesn't work anymore with vm! 15 years, 2 months ago #8226

Hi,

I modified a little gacode.php, it's very simple.

Modify this :
$q = 'SELECT order_id, affiliate_id, order_total, order_tax, order_shipping, city, state, country'
. ' FROM #__{vm}_orders LEFT JOIN #__{vm}_order_user_info USING (order_id)'
. ' LEFT JOIN #__{vm}_affiliate_sale USING (order_id)'
. ' WHERE order_id = ' . $db->getEscaped($GLOBALS['vars']['order_id']);
in this :
$q = 'SELECT order_id, order_total, order_tax, order_shipping, city, state, country'
. ' FROM #__{vm}_orders LEFT JOIN #__{vm}_order_user_info USING (order_id)'
. ' WHERE order_id = ' . $db->getEscaped($GLOBALS['vars']['order_id']);

and modify this :
$code = sprintf('pageTracker._addTrans("%d", "%s", "%f", "%s", "%f", "%s", "%s", "%s");',
$db->f('order_id'), $db->f('affiliate_id'), $db->f('order_total'), $db->f('order_tax'),
$db->f('order_shipping'), $db->f('city'), $db->f('state'), $db->f('country'));
in this :
$code = sprintf('pageTracker._addTrans("%d", "%s", "%f", "%s", "%f", "%s", "%s", "%s");',
$db->f('order_id'), '', $db->f('order_total'), $db->f('order_tax'),
$db->f('order_shipping'), $db->f('city'), $db->f('state'), $db->f('country'));


The affiliate field will be empty.
Hope it helps !
Last Edit: 15 years, 2 months ago by serval2412.

Re:e-commerce tracking doesn't work anymore with vm! 15 years, 2 months ago #8227

@serval2412 thanks for the code.

@Artio I got fed-up of waiting for an answer and moved to an alternative solution. Your lack of presence on your own forums is very frustrating!

DM.
Atomicsprite - Social Media Management, SEO & Digital Marketing Agency
Last Edit: 15 years, 2 months ago by rocketitsupport. Reason: type

Re:e-commerce tracking doesn't work anymore with vm! 15 years, 1 month ago #8243

serval2412

I used your code, thanks. great help

Chiropractic Marketing

Re:e-commerce tracking doesn't work anymore with vm! 15 years, 1 month ago #8671

Thanks for Provide me a URl

Re:e-commerce tracking doesn't work anymore with vm! 15 years, 1 month ago #8685

an url for what ?
The changes of the file gacode.php are described

Re:e-commerce tracking doesn't work anymore with vm! 15 years ago #8748

ummm, what moderators/authors think about the modification of "serval2412"? is it correct? is real the problem? are they going to solve it?
Přihlášení uživatele Prázdný