0

Searched around, but found no true answer. I wish to add a PayPal Express Button, similar to the Cart page, under the "Your Checkout Progress" review steps. Is this possible please?

Thank you.

1

you can do this by overriding the base phtml file.

this is located at: app/design/frontend/base/default/template/checkout/onepage/progress.phtml

copy this to: app/design/frontend/{your package}/{your theme}/template/checkout/onepage/progress.phtml

and add the code for the Paypal Express Button - template for this is at:

app/design/frontend/base/default/template/paypal/express/shortcut.phtml

which demonstrates the html and various calls to implement. I dont have a specific coded suggestion but this should give you the right pointers.

  • Thank you, I'll check on that. Is there a 'short-code' for the PayPal button? – Barton Mar 21 '16 at 18:50
  • <ul class="checkout-types"> <?php foreach ($this->getMethods('top_methods') as $method): ?> <?php if ($methodHtml = $this->getMethodHtml($method)): ?> <li><?php echo $methodHtml; ?></li> <?php endif; ?> <?php endforeach; ?> </ul> – Barton Mar 21 '16 at 20:13
  • "Warning: Invalid argument supplied for foreach()" – Barton Mar 21 '16 at 20:13
  • have amended my answer with the base location of the Paypal Express button which is the standard implementation - this should give enough I guess to customise/copy for your needs :) – marmalade47 Mar 22 '16 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.