[Skip to main content](#vessel-content)

#   Trovaprezzi datalayer script after order confirmation

##

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

10 years 1 month ago [\#252368](#252368) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252368 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.4
-- PHP version -- : 5.5

I need to integrate this code after a product (or a series of products) is confirmed:

&lt;script type="text/javascript" src="[ tracking.trovaprezzi.it/javascripts/tracking.min.js](https://tracking.trovaprezzi.it/javascripts/tracking.min.js)" async="true"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
window._tt = window._tt &#124;&#124; [];
window._tt.push({ event: "setAccount", id: /* chiavemerchant */ });
window._tt.push({ event: "setOrderId", order_id: /* idordine */ });
window._tt.push({ event: "setEmail", email: /* emailcliente */ });
window._tt.push({ event: "addItem", sku: /* sku */, product_name: /* nomeprodotto */ });
window._tt.push({ event: "setAmount", amount: /* totalecarrello */ });
window._tt.push({ event: "orderSubmit"});
&lt;/script&gt;

Where the string "window._tt.push({ event: "addItem", sku: /* sku */, product_name: /* nomeprodotto */ });" is repeated for each product of the order.
If i have 3 product on order confirmed, i have to generate a string for each of these.

Is it possible to create? Contact us please.

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 1 month ago [\#252372](#252372) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252372 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Hi,

Yes, it's possible to do that. You can edit the file "after_end" via the menu Display&gt;Views in order to add your custom code.

If you need someone to work on that for you, you can contact our partners:
[ www.hikashop.com/home/our-partners.html](https://www.hikashop.com/home/our-partners.html)

The following user(s) said Thank You: [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

10 years 1 month ago -  10 years 1 month ago [\#252564](#252564) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252564 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

I found a script for virtuemart. Do you think i can use even for hikashop, changing the db fields? Code:

//TPtpi implemntation –Start $TPtpi['chiaveMerchant']="yourMerchantKey"; $TPtpi['email']=$order['details']['BT']-&gt;email; $TPtpi['orderid']=$order['details']['BT']-&gt;virtuemart_order_id; //array of elemets for scrippt -End //Printing Script echo "&lt;script type=\"text/javascript\" src=\"https://tracking.trovaprezzi.it/javascripts/tracking.min.js\"&gt;&lt;/script&gt;"; echo "&lt;script type=\"text/javascript\"&gt;"; echo "window._tt = window._tt &#124;&#124; [];"; echo "window._tt.push({ event: \"setAccount\", id: '". $TPtpi['chiaveMerchant'] ."' });"; echo "window._tt.push({ event: \"setOrderId\", order_id: " . $TPtpi['orderid'] . " });"; echo "window._tt.push({ event: \"setEmail\", email: '" . $TPtpi['email'] . "' });"; foreach( $order['items'] as $p ) { $name=str_replace("'", "", $ p-&gt;order_item_name); echo "window._tt.push({ event: \"addItem\", sku: '" . $p-&gt;order_item_sku . "', product_name: '" . $name . "' });"; } echo "window._tt.push({ event: \"orderSubmit\"});"; echo "&lt;/script&gt;"; //TPtpi implemntation -End

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Last edit: 10 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 1 month ago [\#252591](#252591) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252591 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Hi,

If you change all the variables to use HikaShop's then yes.
For example, Code:

$order['details']['BT']-&gt;virtuemart_order_id

is $this-&gt;order-&gt;order_id and Code:

$order['details']['BT']-&gt;email

is $this-&gt;order-&gt;customer-&gt;user_email
The variables available in $this-&gt;order are listed here:
[ www.hikashop.com/support/documentation/156](https://www.hikashop.com/support/documentation/156)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

10 years 1 month ago [\#252888](#252888) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252888 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Thanks for reply Nicolas,

I would ask you if the "after_end" view will be always loaded (and user redirected) with every payment method. For example if user pays with PayPal or Credit card, will this page displayed before or after the payment?

This is necessary to execute the script for every transaction.

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 1 month ago [\#252902](#252902) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#252902 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Hello,

The 'after_end' view will only be called after the return of your customer from a payment platform like PayPal (you'll have to make sure that payment methods like PayPal don't have any "Return Url" through your payment methods configuration page).
But the "after_end" view won't be called if you use payment methods like "HikaShop check payment plugin" instead the "check_end" view of the payment plugin will be called.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

10 years 1 month ago [\#253008](#253008) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#253008 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Maybe we should work on a different way. Maybe a plugin that fires the trigger and generate the script when the order is created (or confirmed and so on...), right?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 1 month ago [\#253020](#253020) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Trovaprezzi datalayer script after order confirmation](/forum/30-integrations/886897-trovaprezzi-datalayer-script-after-order-confirmation#253020 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4 -- PHP version -- : 5.5  I need to integrate this code after a product (or a series of products) is confirmed:     window.&#95;tt = window.&#95;tt || &#91;&#93;; window.&#95;tt.push({ event: &quot;setAccount&quot;, id: /&#42; chiavemerchant &#42;/ }); window.&#95;tt.push({ event: &quot;setOrderId&quot;, order&#95;id: /&#42; idordine &#42;/ }); window.&#95;tt.push({ event: &quot;setEmail&quot;, email: /&#42; emailcliente &#42;/ }); window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ }); window.&#95;tt.push({ event: &quot;setAmount&quot;, amount: /&#42; totalecarrello &#42;/ }); window.&#95;tt.push({ event: &quot;orderSubmit&quot;});   Where the string &quot;window.&#95;tt.push({ event: &quot;addItem&quot;, sku: /&#42; sku &#42;/, product&#95;name: /&#42; nomeprodotto &#42;/ });&quot; is repeated for each product of the order. If i have 3 product on order confirmed, i have to generate a string for each of these.  Is it possible to create? Contact us please.")*

Hello,
Sure, that's a good idea, the solution will be to create a plugin based on the "onAfterOrderCreate" function :
[ www.hikashop.com/support/documentation/6...l#onAfterOrderCreate](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderCreate)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODY4OTctdHJvdmFwcmV6emktZGF0YWxheWVyLXNjcmlwdC1hZnRlci1vcmRlci1jb25maXJtYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
