Jump to content

How add image to manucfacturer programmatically


ricky250r

Recommended Posts

Hello I have done several search on the subject without finding answer to my problem. To add a brand I have this code that works but my problem how to add an image has my brand. What should be used to have all the image formats needed.

$date_jour = date("Y-m-d H:i:s");

//créer une marque
$manucfacturer = new Manufacturer();
$manucfacturer->name = 'Test';
$manucfacturer->active = 1;
$manucfacturer->date_add = $date_jour;
$manucfacturer->date_upd = $date_jour;
$manucfacturer->description = '';
$manucfacturer->short_description = '';
$manucfacturer->add();

Thank You

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...