Menu Content

Support

> Forums, FAQs & Paid Support

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

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

  • serval2412
  • OFFLINE
  • Posts: 9
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: 16 years, 11 months ago by serval2412.
The topic has been locked.

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

  • rocketitsupport
  • OFFLINE
  • Can you get square eyes?
  • Posts: 55
@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: 16 years, 11 months ago by rocketitsupport. Reason: type
The topic has been locked.

Re:e-commerce tracking doesn't work anymore with vm! 16 years, 11 months ago #8243

  • selenagriffin9000
  • OFFLINE
  • Posts: 1
serval2412

I used your code, thanks. great help

Chiropractic Marketing
The topic has been locked.

Re:e-commerce tracking doesn't work anymore with vm! 16 years, 10 months ago #8671

  • ksnetsolution
  • OFFLINE
  • Posts: 1
Thanks for Provide me a URl
The topic has been locked.

Re:e-commerce tracking doesn't work anymore with vm! 16 years, 10 months ago #8685

  • serval2412
  • OFFLINE
  • Posts: 9
an url for what ?
The changes of the file gacode.php are described
The topic has been locked.

Re:e-commerce tracking doesn't work anymore with vm! 16 years, 10 months ago #8748

  • AGuerrero
  • OFFLINE
  • Posts: 38
ummm, what moderators/authors think about the modification of "serval2412"? is it correct? is real the problem? are they going to solve it?
The topic has been locked.
User Login Empty