binshops / prestashop-rest

PrestaShop REST API module to expose your PrestaShop website's REST endpoints
https://www.binshops.com/prestashop-api
Academic Free License v3.0
95 stars 33 forks source link

Low quality image when fetching product variant #46

Closed giorgiopogliani closed 9 months ago

giorgiopogliani commented 12 months ago

I encountered a problem but I am not sure if I'm doing something wrong. Basically, on the product page I call the useProduct composable that then call /rest/productdetail endpoint. If I pass the variant to the composable search({ id, variant: root.$route.query }) the api client add the refresh param.

The problem is that the two responses are quite different, in particular, without the refresh param I have high quality images while with the refresh param I have only one image and in very low quality. And I can't really keep them both (unless deep clone maybe?) because the shared ref is the same.

samberrry commented 9 months ago

Hi, I guess the question belongs to the VSF repo, not this API. So, I close the issue. thanks