Skip to main content

Hi, 

 

I want to display the number of views a product has had over the last month on the PDP for the customers to see, on a PWA-kit project. From what I've looked up this is stored on the ProductActiveData object, and will appear as part of the activeData attribute as part of the response when we GET a product's info. 

 

That would mean that presumably something on product-view.jsx like the following 

<Text>{product?.activeData?.viewsMonth}</Text>

will display the number of views when it's available, but I don't know how I can test this on my sandbox environment. Presumably active data from production can be imported as test data into the sandbox from what I read, but my project has not gone into production yet so I have no examples to go from. How should I approach this? 

 

Any help is greatly appreciated. Thanks a ton! 

 

@* Salesforce Developers * @* Salesforce Commerce for B2B & D2C *

 

 

#B2C Commerce

1 respuesta
0/9000