Deep Kumar Posted May 24, 2023 Share Posted May 24, 2023 For creating Brand Programmatically- $brand_name = 'Test Brand'; $brand = new Manufacturer(); $brand->name = $brand_name; $brand->active = 1; $brand->add(); $id_brand = $brand->id; Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 25, 2023 Share Posted May 25, 2023 Yes, the code provided above is the correct way to create a manufacturer programmatically in PrestaShop. 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