Ray UK Posted June 6, 2018 Share Posted June 6, 2018 How can I change the wording on the product flag "ON SALE!" In previous PS it was in the product.tpl, but now I cant find where to do it. I know its a UL that is populated somewhere but I can not find it. Thanks in advance Link to comment Share on other sites More sharing options...
Ray UK Posted June 8, 2018 Author Share Posted June 8, 2018 any idea on this one.. cant find the text in the translation file or the code anywhere. Link to comment Share on other sites More sharing options...
oserrano Posted November 2, 2018 Share Posted November 2, 2018 In my experience you do not need to edit product.tpl, you just need to find that translations in the default theme (classic), If you cant find those terms in the theme translations you will find them in the classic theme translations. It's a common error. 1 Link to comment Share on other sites More sharing options...
Evgenii Pavlov Posted November 8, 2018 Share Posted November 8, 2018 up Link to comment Share on other sites More sharing options...
JBW Posted November 8, 2018 Share Posted November 8, 2018 As Oserrano already mentioned correcty you can change this text in the Theme Translations e.g. at Shop.Theme.Catalog 1 Link to comment Share on other sites More sharing options...
Evgenii Pavlov Posted November 8, 2018 Share Posted November 8, 2018 3 hours ago, JBW said: As Oserrano already mentioned correcty you can change this text in the Theme Translations e.g. at Shop.Theme.Catalog Not working No effect. Did u test you solution? Link to comment Share on other sites More sharing options...
JBW Posted November 9, 2018 Share Posted November 9, 2018 It's excately at the spot I pointed out and works. 2 Link to comment Share on other sites More sharing options...
sting5 Posted December 10, 2018 Share Posted December 10, 2018 Sadly none of the above works when You try to find translations for status label "NEW". Search filted does not find this one. Link to comment Share on other sites More sharing options...
JBW Posted December 10, 2018 Share Posted December 10, 2018 On 11/8/2018 at 5:17 PM, Evgenii Pavlov said: Not working No effect. Did u test you solution? Yes I did as you can see in the screenshots I have posted above! Link to comment Share on other sites More sharing options...
JBW Posted December 10, 2018 Share Posted December 10, 2018 9 hours ago, sting5 said: Sadly none of the above works when You try to find translations for status label "NEW". Search filted does not find this one. It's in Shop > Theme > Catalog Link to comment Share on other sites More sharing options...
puspo Posted June 30, 2019 Share Posted June 30, 2019 I have bought theme and can't find in in shop > theme > catalog neither... I'm looking for flag: "new", but there is none. Link to comment Share on other sites More sharing options...
puspo Posted June 30, 2019 Share Posted June 30, 2019 i found it! but not in my bought template, but in classic template. this os so weird. 1 Link to comment Share on other sites More sharing options...
Lynda Posted August 14, 2019 Share Posted August 14, 2019 (edited) Hello. I changed the text of the flag "On sale!" in the "ProductLazyArray.php" file. My problem is now I can't change the translation of this flag. On the Theme translation - Classic - Shop - Theme - Catalog, there is still "On sale!" and the translation is not operative. Can you help me ? Thank you. Edited August 14, 2019 by Jojo Kaly (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted August 21, 2019 Share Posted August 21, 2019 Hi Jojo, don't understand why you changed a php file. As you can see in my screenshots above the translation works without any modifications. Link to comment Share on other sites More sharing options...
rachel01 Posted August 23, 2019 Share Posted August 23, 2019 Someone found how to change the flag New ? Thanks Link to comment Share on other sites More sharing options...
Lynda Posted August 23, 2019 Share Posted August 23, 2019 The JBW's issue works. Thank you ! Link to comment Share on other sites More sharing options...
rachel01 Posted August 23, 2019 Share Posted August 23, 2019 But I don't have New in my Prestashop 1.7 New products, All new products, but no New Link to comment Share on other sites More sharing options...
Henrik41 Posted August 26, 2019 Share Posted August 26, 2019 (edited) Same issue... new translate to neuf in french which is wrong. Translation in Prestashop is worse then a teenager's room... so disorganized. In multiple places! International Translation, email theme, etc.. Couldn't find the word NEW anywhere. Edited August 26, 2019 by Henrik41 (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted August 27, 2019 Share Posted August 27, 2019 Please see my screenshots above, it shows the exact position for the translation Link to comment Share on other sites More sharing options...
Henrik41 Posted August 28, 2019 Share Posted August 28, 2019 Unfortunately, my theme translation is not showing/supporting what is on your screenshoot. However, this solution worked for me: Link to comment Share on other sites More sharing options...
Toto Mir Posted August 23, 2022 Share Posted August 23, 2022 (edited) [excuse my english] I translated "new" and "new products" everywhere, caché bla bla... but for some reason doesn't work. Problems started with version: 1.7.8.7 My desesperate solution : /src/Adapter/Presenter/Product/ProductLazyArray.php (line 481) if ($this->product['new']) { $flags['new'] = [ 'type' => 'new', 'label' => $this->translator->trans('New', [], 'Shop.Theme.Catalog'), // put what you want there... i.e: "NOVEDAD, NO NUEVO!!!" ]; } Edited August 23, 2022 by Toto Mir bla. (see edit history) 2 Link to comment Share on other sites More sharing options...
jmeca Posted September 10, 2023 Share Posted September 10, 2023 En 24/8/2022 a las 12:28 AM, Toto Mir dijo: [excuse my english] I translated "new" and "new products" everywhere, caché bla bla... but for some reason doesn't work. Problems started with version: 1.7.8.7 My desesperate solution : /src/Adapter/Presenter/Product/ProductLazyArray.php (line 481) if ($this->product['new']) { $flags['new'] = [ 'type' => 'new', 'label' => $this->translator->trans('New', [], 'Shop.Theme.Catalog'), // put what you want there... i.e: "NOVEDAD, NO NUEVO!!!" ]; } This is valid for PS8 too. Link to comment Share on other sites More sharing options...
jmeca Posted September 10, 2023 Share Posted September 10, 2023 Justo ahora, jmeca dijo: This is valid for PS8 too. Line: 493 Link to comment Share on other sites More sharing options...
dimmtrov Posted September 12, 2023 Share Posted September 12, 2023 If after update your flag automatically changes the language go in ProductLazyArray.php and edit 493 line from 'label' => $this->translator->trans('New', [], 'Shop.Theme.Global'), -- to 'label' => $this->translator->trans('New', [], 'Shop.Theme.Catalog'), and then you can translate it from the back office in option front office - catalog - new ! file location - src\Adapter\Presenter\Product 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