vtex-apps / store-discussion

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

Problem with Buy Together component #664

Open lucaspoiob opened 2 years ago

lucaspoiob commented 2 years ago

We are trying to make a component to buy together other products in the store in the PDP page of a product, the component appears in the website editor to change the name and some information, but in the store nothing appears, just empty div. we've tried everything in the code but we don't know why it doesn't show up, there are some errors that it generates too, oh these errors I don't know if it could be interfering with the code. And no console log in the SuggestedLists part never sees anything inside the array, it's only coming [], there it doesn't appear in the product nothing inside the SuggestedLists, nor the component title, nothing. It was supposed to appear as it is in this image below. Capturar

And there are these errors in the image below. Capturar2

thalytafabrine commented 2 years ago

hello @lucaspoiob 👋 could you inform which repository is this Buy Together component that you are trying to use?

alextalha commented 2 years ago

hello @thalytafabrine , I'm having the same problem , the suggestion variable is empty. need to pass some prop on the block? image workspace: https://buytogether--ioinfracommerce.myvtex.com/1000037466-blusa-malwee-liberta/p

thalytafabrine commented 2 years ago

Hello @alextalha, currently the buy-together shelf of the recommendation-shelf repository doesn't work with the "show together" strategy of the product. Actually, this shelf was created thinking about the use for Intelligent Search recommendation strategies that use AI to define which products to suggest to the user, and not the pre-defined products in the "show together" config of the product. We have this feature in our backlog to make it work also with the "show together" config, but it hasn't been implemented yet.

alextalha commented 2 years ago

@thalytafabrine How would the configuration work the way it was shown in the first print ( Aproveite e compre junto ) would it be buy together for promotion?

thalytafabrine commented 2 years ago

@alextalha as I said, it only works with Intelligent Search product recommendations, a feature that is still in alpha and we are currently not accepting new stores for testing. it doesn't work with "compre junto" promotions currently, we still have this feature in the backlog and if you want to use it that way today, you need to create a custom component