Jump to content

Overriding AdminAttributeGeneratorController


Recommended Posts

I am using Prestashop 1.6.0.13

we are overriding AdminAttribteGeneratorController but we are not able to call the function productAttributeCombination() in my file. we are getting error after click on save button

 

Step 1. How we did Override

 

class AdminAttributeGeneratorController extends AdminAttributeGeneratorControllerCore

 

 

Step 2. Call function in my file

 

public function productAttributeCombination()
    {
     
        $tab = array_values($multi_array);

        AdminAttributeGeneratorController::setAttributesImpacts($this->product->id, $tab); // Here we are getting error
        $this->combinations = array_values(AdminAttributeGeneratorController::createCombinations($tab));
     
    }

  • Like 2
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...