Jump to content

Edit History

vav_

vav_


In english its better

12 minutes ago, knacky said:

If you use such a notation, you do not have to use any other hook.

I don't know how you do the import so I can clarify it for you.
I guess it's a secret 😄

 

public function myImportFunction($params)
{
	$idProduct = $params['id_product'];
	$product = new Product((int) $idProduct);
	....
	....
	$product->update();
}

it's not really a secret !  :D

I have a lot of trouble with the PrestaShop code structure, I guess your great directions are supposed to help me. But I don't understand how I can make sending a mail to the customer from a specific page of my module is reproducing the native function. 

I have to modify the Controller of my module? 
And add the function that you have indicated to me? 

I'm really trying to elucidate "PrestaShop logics" to master the tool more easily. For now, you are contributing perfectly! :)

vav_

vav_

3 minutes ago, knacky said:

If you use such a notation, you do not have to use any other hook.

I don't know how you do the import so I can clarify it for you.
I guess it's a secret 😄

 

public function myImportFunction($params)
{
	$idProduct = $params['id_product'];
	$product = new Product((int) $idProduct);
	....
	....
	$product->update();
}

it's not really a secret !  :D

J'ai beaucoup de mal avec la structure de code de PrestaShop, je suppose que vos superbes indications sont censés m'aider. Mais je ne comprends pas comment je peux faire intervenir l'envoi d'un mail au client depuis un page spécifique de mon module est reproduisant les fonction native. Je dois modifier le Controller de mon module ? Et ajouter la fonction que vous m'avez indiqué ? J'essaye vraiment d'élucider "les logiques PrestaShop" pour maitriser l'outil plus aisément. Pour l'instant, vous y contribué parfaitement ! :)

 

 

×
×
  • Create New...