What's New
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic.
Tagged: sticker
Hello,
I set up the module Sticker to have a sticker for the sold out products.
The issue is that on a product with combinaison. I have a product with 4 sizes.
S : qty = -17
M : Qty = -7
L : qty = 13
Xl : qty = 10
This product is not sold out (L & XL are still availlable) but the module displays the text for the sold out products.
I think this is because the total quantity of the prouct is = -1 (-17 -7 +13 +10 = -1).
How can I fix this issue not to have any sold out sticker when any combinaison has stock even if the total of the quantity is <= 0 ?
Thanks
Hi,
Did you enable the “Allow order when out of stock”? as Prestashop show didn’t assign any other combinations quantities to the current combination, so just can get the total quantities, see the attached file. I will investigate whether there is another solution.
Best regards.
Hi,
I can give you the FTP et BO access but the issue is that there are advanced cache systems on this site (cloudflare and varnish) and in order to let you work with the site, we have to plan it together so i can empty the cache when needed otherwise you won’t see the changes (because of the cache).
When can you work on the site?
Thanks!
Hi,
All stock message was provided by Prestashop core file: /src/Adapter/Presenter/Product/ProductLazyArray, see the function addQuantityInformation, there just two fields: quantity(current combination) and quantity_all_versions(all combinaion), and on the $product array, there are just those two fields also, there isn’t any other field to identify stock for other combinations, I attached you some files and screenshots, you can check it. it is impossible to resove the issue currently.
Best regards.
Hi,
Thanks for your time.
I opened an issue on Github if you want to follow : https://github.com/PrestaShop/PrestaShop/issues/13153
Thanks
You must be logged in to reply to this topic.