Personalized Cart Page
Personalized Cart Page Recommendations
GET
1.0/ClientRecom/{websiteId}/Cart?customerId={customerId}&items[0]={refId}&items[1]={refId}&filterOutOfStock=false
This is a hybrid tactic meaning if there are no results for the first tactic, the recommender will try the next one. This fall-through will continue through all the tactics until a result is found. Tactic Cascade: Bought With Cart Contents > Bought With Recently Viewed > Viewed With Recently Viewed > Recently Viewed > Historically Viewed (up to 12 products)
Path Parameters
websiteId
string
Your website ID provided by PA
Query Parameters
customerId
string
This the customer ID you want to query for. It is stored in the Local Storage of your browser. You can retrieve the attribute by entering the following command in the console:
window.patutil.paLocalStorage.configData.c
items
array
This takes in an array of Ref IDs in the customer cart (used for Bought with Cart Contents)
filterOutOfStock
boolean
Whether to filter out of stock items
GET
/1.0/ClientRecom/{websiteId}/ProductDetail?customerId={customerId}&productRef={refId}&items[0]={refId}&items[1]={refId}&filterOutOfStock=false
Query Parameters
customerId
string
This the customer ID you want to query for. It is stored in the Local Storage of your browser. You can retrieve the attribute by entering the following command in the console:
window.patutil.paLocalStorage.configData.c
Last updated