Jump to content

Prestashop 1.7.1 - Feature Custom Value not saving.


themoscow

Recommended Posts

  • 2 months later...
  • 3 weeks later...
  • 2 years later...
  • 2 months later...
  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...