Expand my Community achievements bar.

Update multiple entities in page load request

Avatar

Level 5

Hello Masters!

 

We are using Adobe Target Recommendations. We are updating entity attributes via page load request parameters, in the product detail page (we need updates more often than daily, so the feed is not enough).

 

We are trying to figure out if it is possible to update more than one entity in a single page request. For example, we would like to update the inventory for all those products included in the purchase, in the order confirmation page. This way, we can manage products which are sold out, as quickly as possible (don't need to wait to the next product detail page view).

 

Is that possible? Any idea? Thank you very much in advance!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 2

Hi Julio,

Did you get any luck on this thread?

 

Avatar

Administrator

Thanks for your question here Julio_Baixauli and for your +1 to it nbhart! I know the original question is almost two years old now but in case anyone wants to try to take a stab at it to close it out with deeper insights, please do  Cheers!

CC our brilliant Advisors:  , and 

and our inspiring Mentors: @abhilashsape@Gokul_Agiwal@Rajneesh_Gautam_@PratheepArunRaj, and @Sneha-Parmar

Avatar

Community Advisor

Thanks @Amelia_Waliany for sharing this question.

 

@Julio_Baixauli @nbhart  -assuming you are using  orderComfirmPage mbox on Order Confirmation page, you can pass multiple product IDs under productPurchaseId attribute as shown in the example below 

 

<script type="text/javascript">
adobe.target.trackEvent({
    "mbox": "orderConfirmPage",
    "params":{
        "orderId": "ORDER ID FROM YOUR ORDER PAGE",
        "orderTotal": "ORDER TOTAL FROM YOUR ORDER PAGE",
        "productPurchasedId": "PRODUCT ID FROM YOUR ORDER PAGE, PRODUCT ID2, PRODUCT ID3"
    }
});
</script>

 

If you are planning to use it on a different page e.g. Product listing pages where you have multiple products then you will have to pass the information for each product in separate mbox calls. One way to do is calling trackEvent() method for each product you would like to update using custom JavaScript code.

 

Hope this helps

 

Regards

Rajneesh