multiple orders in a single transaction | Community
Skip to main content
October 16, 2015
Solved

multiple orders in a single transaction

  • October 16, 2015
  • 1 reply
  • 943 views

Implementation question.. What is the best practice for tracking a single transaction that contains multiple "orders"?

Is there a way to differentiate multiple orders in one single s.products string? (only one s.t() call)

What happens if I fire s.tl() multiple times.. each with a new set of products?

I'm hoping you can provide a sample s.products as well as a recommendation.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alexis_Cazes_

Hi 

 

When you send:

s.events="purchase"

s.products=";product1;2;14,;product2;1;30"

It correspond to in sc:

Product    Unit    Order    Revenue

Product1    2    1    14

Product2    1    1    30

Total    3    1    44

There will only be one order here.

If you send the follow :

s.events="purchase"

s.products=";productX;2;14,;productY;1;30"

 

in 3 different s.t() call then you will have 3 distinct orders.

 

Best regards.

 

Alexis Cazes

1 reply

Alexis_Cazes_
Alexis_Cazes_Accepted solution
Level 10
October 16, 2015

Hi 

 

When you send:

s.events="purchase"

s.products=";product1;2;14,;product2;1;30"

It correspond to in sc:

Product    Unit    Order    Revenue

Product1    2    1    14

Product2    1    1    30

Total    3    1    44

There will only be one order here.

If you send the follow :

s.events="purchase"

s.products=";productX;2;14,;productY;1;30"

 

in 3 different s.t() call then you will have 3 distinct orders.

 

Best regards.

 

Alexis Cazes