Documentation

Add_filter | Pi | Change Wallet Payment loctaion’s

Note

Just a heads-up: This document is a friendly guide intended for developers and designers. A bit of PHP know-how is needed to get the most out of it.

Please remember, while we love to be helpful, our support policy doesn’t extend to customisations.

Think of any sample code we provide as a starting point or inspiration for your projects!

Overview

This filter allows you to customise where the Apple Pay and Google Pay wallet payment options appear on your site.

By default, wallet buttons can be displayed:

  • At the top of the checkout page
  • At the bottom of the checkout page
  • On the cart page

But what if you’d prefer them somewhere else. For example, under the cart totals or in a custom area of your theme? This filter gives you full control.

How to Use

To change the location(s), add the following snippet to your site:

In the example above, we:

  • Remove all existing placement hooks
  • Add the wallet buttons to display after the cart table using WooCommerce’s built-in woocommerce_after_cart hook

This filter is ideal if you’re using a custom layout or want full control over where wallet options appear.

If you’re a developer or using a bespoke theme, this gives you the flexibility to position wallet buttons exactly where you want them.

Was this helpful?

Opayo

Don't already have the plugin? Get access now.

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request
All systems operational

Back End Demo

Start exploring our fully functional demo site today.
Gain exclusive admin access to see what's possible.

Create your demo now

Front End Demo

Test drive our plugin on the demo site.

View Demo