Jump to content

Edit History

Butch0071

Butch0071

Hi, I do not have a quite solution - since I am using .tpl and fetched data from php to purchase event  - however I have question regarding to 'add_to_cart" event.

'item_name': addedProduct.name, 
  'item_id': addedProduct.id_product, 
    'item_variant': addedProduct.id_product_attribute, 
      'price': addedProduct.price_amount, 
        'quantity': addedQuantity,

I need to put in 'item_variant' a mpn value for current combination - but do not have an idea how to reach the value from js...Can not see the value in js product object.

Any suggestions?

Oh, I think that price passed to DL for GA should be just value without currency sign- so probably: addedProduct.price_wt

 

Butch0071

Butch0071

Hi, I do not have a quite solution - since I am using .tpl and fetched data from php to purchase event  - however I have question regarding to 'add_to_cart" event.

'item_name': addedProduct.name, 
  'item_id': addedProduct.id_product, 
    'item_variant': addedProduct.id_product_attribute, 
      'price': addedProduct.price_amount, 
        'quantity': addedQuantity,

I need to put in 'item_variant' a mpn value for current combination - but do not have an idea how to reach the value from js...Can not see the value in js product object.

Any suggestions?

 

 

×
×
  • Create New...