8ternity Posted January 28, 2020 Share Posted January 28, 2020 Hi, I have the version 1.7.5.1 installed with two differents languages. I've modified the default label for "Out of Stock" in english, and "En Rupture" for French. We can clearly see that the label is set into product settings: In Github, they have a fix for the Product which i already applied.https://github.com/PrestaShop/PrestaShop/pull/12655/commits/1132abd94382fc13c614371a85c108be1cc26a31 I clear cache, clear browser cache, delete \var\cache\dev and \prod folders. Message are still shown has default one. Maybe i can translate the label from the ProductLazyArray.php for the english part, but what about the French label? Anybody can help me with that issue? PS 1.7.5.1 with French Canada "qc" + English Canada "en" languages. Thanks. Link to comment Share on other sites More sharing options...
8ternity Posted January 28, 2020 Author Share Posted January 28, 2020 Fixed! I download a Fresh installation of 1.7.6.3 files and copy the line 788 of \src\Adapter\Presenter\Product\ProductLazyArray.php, replace the line 766 into the version of 1.7..5.1 currently in my store (same file). Replace } elseif ($product['quantity'] - $product['quantity_wanted'] < 0) { for } elseif ($product['quantity_wanted'] > 0 && $product['quantity'] > 0) { It's working now with the label entered into "Product Settings". Link to comment Share on other sites More sharing options...
Diego Galma Posted August 25, 2020 Share Posted August 25, 2020 For fix you have to put the 0 in 1 } elseif ($product['quantity_wanted'] > 0 && $product['quantity'] > 0) { } elseif ($product['quantity_wanted'] > 1 && $product['quantity'] > 0) { Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now