Gaurav Pal
Gaurav Pal

Reputation: 36

Perform An Action When Proceeding To Payment in prestashop.

After selecting any payment method on order page. I want to run a small php code so is there any way to perform an action after chosen any payment method.

Upvotes: 0

Views: 455

Answers (1)

Matteo
Matteo

Reputation: 93

You can create a module and use a hookActionPayamentConfirmation

public function hookActionPaymentConfirmation()
{
    /* Place your code here. */
}

if you do not want to display anything

public function hookActionValidateOrder()
{
    /* Place your code here. */
}

if you want display a element

public function hookDisplayShoppingCart()
{
    /* Place your code here. */
}

Upvotes: 1

Related Questions