Jump to content

Express Checkout button does not work in another hook


srondelli

Recommended Posts

Hello everyone I have a little problem with the module paypal

In its original configuration expresscheckout there is a button that allows you to make the payment without registration directly with paypal. This button is also located in the product page in the Product Footer hook.

For the sake of Template I needed to move this button under the button buy it right away, then I replaced the "public function hookProductFooter ()" with "public function hookProductActions ()" made exactly the same way. I then plugged the module into the respective hook from the Modules tab-> panel positions of prestashop.

The button appears correctly in the new location, but is clickable at the click does not match the redirect action on paypal.

Thank you all in advance for availability.

Link to comment
Share on other sites

in paypal.php i have changed only

 

    public function hookProductFooter()
    {
        $content = (!$this->useMobile()) ? $this->renderExpressCheckoutButton('product') : null;
        return $content.$this->renderExpressCheckoutForm('product');
    }

 

TO

 

    public function hookProductActions()
    {
        $content = (!$this->useMobile()) ? $this->renderExpressCheckoutButton('product') : null;
        return $content.$this->renderExpressCheckoutForm('product');
    }

Link to comment
Share on other sites

  • 1 year later...

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