vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

shelf.relatedProduct 2 items mobile #674

Closed marmarquez closed 2 years ago

marmarquez commented 2 years ago

I would like to know if I can modify the item that can be displayed per page for mobile, in the 'shelf.relatedProducts'. I only display 1, but I want 2.

In the props 'itemsPerPage' it is set only for dektop.

"shelf.relatedProducts#1": { "blocks": ["product-summary.shelf#demo2"], "props": { "recommendation": "view", "productList": { "titleText": "Productos Relacionados I", "itemsPerPage": 4 } } }

templatedev--delucca.myvtex.com/cafe-1820-clasico-cr-250gr/p

IncognitaDev commented 2 years ago

Hi, I have a PR in product-summary wich have a alternative block to shelf.relatedProducts solving this type of problem, maybe this can help you cloning the branch, or help to get vtex attention to merge it.

marmarquez commented 2 years ago

Hello! Thanks for the reply. Then I realized that I could configure this from the site editor, it was very easy :)