How to change click on inline tile behaviour to redirect to PDP in a Widget
Overview
Nosto's UGC offers the ability to create advanced customizations to your widgets to match your brand needs.
In this guide, we are going explain how you can change the click though behaviour of an inline tile to direct users to PDP.
Getting Started
Create a Widget
Create a new Widget and set the click through behaviour to No clickthrough.
For Grid, Masonry, Nightfall, Slider and Quadrant widgets.
Open the Custom Code editor and click Inline Tile. Under the Javascript section add the following code:
Then click Save.
For Waterfall and Carousel widgets.
Open the Custom Code editor and click Inline Tile. Under the Javascript section add the following code:
Then click Save.
In the code above, the first product's url of each tile is used to redirect the user to the PDP page. If you want to use a different product url by product name, please change the way of how to get productTags variable by:
Last updated
Was this helpful?