Hello Guys!
I'm developping a custom module which give me the possibility to create a product programatically. in the Product() object i have to specify catégories of my products with the addToCategories() method. But for now i just have the name of categories.
$product->addToCategories() method takes an array of ids categories as argument. So, how can i retrieve the categories ids associated to my categories names please? Seems Prestashop does not provide a function for it.
.png.022b5452a8f28f552bc9430097a16da2.png)