Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sepete ürün eklendiğinde, çıkartıldığında veya sepetteki ürün adedi artırılıp, azaltıldığında alttaki kod çalıştırılmalıdır.

Submit the product codes in the parameter OM.pb, separating them with a semicolon.

Submit the quantity of the relevant product in the basket in the OM.pu parameter, separating them with a semicolon.

In the OM.ppr parameter, multiply the price of the relevant product and the number in the basket and send them by separating them with a semicolon.

Note

The following code should be run every time the basket is updated.

Note

When the basket is completely empty, all parameters except OM.pbid should be sent empty.

Code Block
languagejs
var data = {
  "OM.pbid" : basketID, 
  "OM.pb" : "Product1 Code;Product2 Code", 
  "OM.pu" : "Product1 Quantity;Product2 Quantity", 
  "OM.ppr" : "Product1 Price*Product1 Quantity;Product2 Price*Product2 Quantity"
};
visilabsApi.customEvent("Cart", data);

 

Ui button
colorgreen
titleNext Step
urlhttps://relateddigital.atlassian.net/wiki/spaces/KB/pages/1090879519/React+Native+-+Purchase