themoscow Posted June 1, 2017 Share Posted June 1, 2017 (edited) Hi, I have a problem with - Feature custom value in backend product page. Custom value don't want to save if i have set more then one lang in my shop. I install fresh version of prestashop and its the same. Can you help? Edited June 2, 2017 by themoscow (see edit history) 1 Link to comment Share on other sites More sharing options...
bmwjoeytsang Posted August 3, 2017 Share Posted August 3, 2017 I got the same problem too if I have two language installed. Link to comment Share on other sites More sharing options...
robbie007 Posted August 18, 2017 Share Posted August 18, 2017 Any fixes??? Link to comment Share on other sites More sharing options...
alexjorgef Posted August 21, 2017 Share Posted August 21, 2017 Maybe this should be reported in bug tracker Link to comment Share on other sites More sharing options...
TVBZ Posted July 2, 2020 Share Posted July 2, 2020 Huh.. 3 years later. I have the same problem in fresh PS 1.7.6.5. Any fixes? Link to comment Share on other sites More sharing options...
TVBZ Posted July 2, 2020 Share Posted July 2, 2020 (edited) Okay.. In my case, if I set English as default language it works. Hopefully this info can help others. PS: I added this bug to issue tracker on github. Edited July 2, 2020 by TVBZ (see edit history) Link to comment Share on other sites More sharing options...
miras1331 Posted September 18, 2020 Share Posted September 18, 2020 Hello there. I got the same issue and I found reason. it hepens if U have more than one language and trying add value only at one language. You should add values to all languages and after save it. Good luck :) Link to comment Share on other sites More sharing options...
khalid Posted September 26, 2020 Share Posted September 26, 2020 File: controllers/admin/AdminProductsController.php function: public function processFeatures($id_product = null) replace line 880 - 889 with below (starting from elseif): } else{ $defaultValue = $this->checkFeatures($languages, $feature); $idValue = $product->addFeaturesToDB($feature['feature'], 0, 1); foreach ($languages as $language) { $valueToAdd = (isset($feature['custom_value'][$language['id_lang']])) @ -885,7 +886,7 @@ class AdminProductsControllerCore extends AdminController : $defaultValue; $product->addFeaturesCustomToDB($idValue, (int) $language['id_lang'], $valueToAdd); } } } 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