Warning |
---|
If you offer different product variations (such as size, color, material, etc) than your integration will slightly be different, please follow the guidelines on the Product Variant page |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript"> function OnVisilabsLoaded(){ var VL = new Visilabs(); VL.AddParameter("OM.pv","Product ID"); VL.AddParameter("OM.pn","Product Name"); VL.AddParameter("OM.inv" , "Number of items in stock"); VL.AddParameter("OM.ppr", "Product Price"); VL.AddParameter("OM.pv.1", "Product Brand"); VL.Collect(); VL.SuggestActions(); } </script> |
Note |
---|
You must define OnVisilabsLoaded() before calling it. You can do it by inserting the OnVisilabsLoaded() code before the Visilabs main script. |
Note |
---|
OnVisilabsLoaded function must be defined only once on every page. When a page has multiple event triggers, for example: Product Page View and Cart Update(Add to/Remove from Cart) event can be triggered on same page; 2 functions must be defined with different names. In this case, since the OnVisilabsLoaded name defined for Product Page View, function name for Cart Update(Add to/Remove from Cart)event must be something else and this function must be called when Cart Update(Add to/Remove from Cart) event triggers. definition: function rdAddtoCart() { |
Note |
---|
Do not use thousands separator when sending numbers. Wrong: 123.456,78 Correct: 123456,78 |
...