addtowallet.co
Create PassFeaturesFree ToolsPricingAPIBlog
Sign InGet Started Free
All guides▾
  • Guide10 reasons why incorporating Mobile Wallet Passes into your mobile strategy is essential
  • Guide5 Reasons why your store needs a wallet pass
  • GuideAdvantages of using Google and Apple wallet pass in businesses
  • GuideBest practices to design an amazing wallet pass
  • GuideBoost Engagement with Interactive Wallet Passes in Magazines
  • GuideConvert Pdf To Pass Using AddToWallet
  • GuideCreate Apple wallet pass for free
  • GuideCreate Apple Wallet passes for Your Business
  • GuideCreate Google wallet pass for free
  • GuideCreating Apple and Google Wallet Passes
  • GuideCreate Wallet Passes with the AddToWallet Zapier Integration
  • GuideDifferences between Apple and Google wallet
  • GuideEnhance audience interaction with wallet passes in Newspapers
  • GuideHidden Form Fields: Dynamic Expiry for Wallet Passes
  • GuideHow Google and Apple Wallet Pass Works
  • How-toHow to Add Amelia Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add an Add to Wallet Button to Your Website
  • How-toHow to Add an Apple Wallet Button Easily
  • How-toHow to Add Bookly Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add Location to Wallet Passes
  • How-toHow to Add Team Members to Your Account
  • How-toHow to Add Simply Schedule Appointments Bookings to Apple Wallet & Google Wallet
  • How-toHow to Add The Events Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to Add LatePoint Appointments to Apple Wallet & Google Wallet
  • How-toHow to Add Sugar Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to configure notifications for Apple & Google wallet passes
  • How-toHow to create a business pass for Apple and Google wallet
  • How-toHow to Create a wallet pass?
  • How-toHow to create a wallet pass using Zapier Integration?
  • How-toHow to create digital Concert Tickets with AddToWallet.co
  • How-toHow to create dynamic passes and manage users in AddToWallet
  • How-toHow To Create Gift Cards in Bulk
  • How-toHow to Create Hair Salon Gift Cards in Minutes
  • How-toCreate Loyalty Wallet Pass Using AddToWallet
  • How-toHow to Create Mobile Wallet Passes Using Google Sheets
  • How-toHow to Create & Scan Dynamic Wallet Passes Using AddToWallet
  • How-toHow To Distribute Google or Apple Wallet Pass
  • How-toHow to duplicate a wallet pass?
  • How-toHow to embed Google Wallet or Apple Wallet button on Shopify
  • How-toHow to embed Google wallet or Apple wallet button on Squarespace
  • How-toHow to embed Google Wallet or Apple Wallet button on Weebly
  • How-toHow to embed Google Wallet or Apple wallet button on Wix
  • How-toHow to embed Google Wallet or Apple Wallet button on WordPress
  • How-toHow to Generate JSON for Apple & Google Wallet Passes
  • How-toHow to generate leads with a Google or Apple Wallet coupon
  • How-toHow to Use AddToWallet Node on N8N
  • How-toHow to integrate make.com with AddToWallet.co?
  • How-toHow to Secure Wallet Passes with Access Code Protection
  • How-toHow to Send Notifications Using Wallet Pass
  • How-toHow to Set Up Custom Domains with AddToWallet
  • How-toHow to Share Wallet Passes Using Flyers
  • How-toHow to test Apple Wallet beacons
  • How-toAddToWallet Order Pass App on Shopify
  • How-toHow to create dynamic wallet pass
  • How-toHow to Use Webhooks with AddToWallet
  • GuideOur Audience Asked for Wallet Tickets AddToWallet.co Delivered
  • GuideCreate Wallet Passes from Form Responses
  • GuideWallet Pass Generator for Google Sheets
  • GuideWallet Passes for Wedding Invitations

How-to

How to embed Google Wallet or Apple Wallet button on Shopify

By AddToWallet Team·Published May 13, 2024·Updated November 25, 2026·3 min read

This page adds one wallet button to a Shopify Online Store page. The button opens a pass link you already created. It does not issue a pass per order.

That is a different product from AddToWallet Order Pass, which puts an order-tracking block on the Thank you page and the Order status page. Installing Order Pass does not place this storefront button, and this Custom Liquid block does not track an order.

Storefront button or order block

You want Where it goes What to install
One public pass on a page, such as a coupon anyone may add Online Store theme, Custom Liquid, on a page template The snippet below. No Shopify app is required for that button.
A pass for each paid order, updated when you fulfill or cancel Checkout editor: Thank you, and Order status The AddToWallet Order Pass app, then the Order Wallet Pass block. Not this snippet.

The general button pattern for other sites is add a wallet button on a website.

Custom Liquid on an Online Store 2.0 theme

Use a theme that has sections in the theme editor. Vintage themes without Custom Liquid need a different edit, and this guide does not cover that file.

  1. Shopify admin, Online Store, Themes. Work on the theme you will publish, or copy your notes onto that theme before you finish. An unpublished draft can look done and never reach the storefront.
  2. Customize.
  3. Open the page template, Add section, Custom Liquid.
  4. Paste the snippet. Replace the buttonUrl value with the pass link you copied from AddToWallet. The placeholder in the snippet is not a live pass.
  5. Save, then open the published page in a private browser, not only the editor preview.
Shopify admin Themes list
Customize on the theme you will publish
Add section, then Custom Liquid, in the theme editor
<script>
window.onload = function() {

  // Paste the pass link here in the button url string
   const buttonUrl="https://app.addtowallet.co/card/........";

  var button = document.getElementById("addToWalletButton");
  var userAgent = window.navigator.userAgent;
  var img = document.getElementById("walletImage");
  if (userAgent.indexOf("Chrome") != -1 && userAgent.indexOf("Safari") != -1 && userAgent.indexOf("Edg") == -1) {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/Add_to_Google_Wallet_badge.svg.png";
  } else if (userAgent.indexOf("Safari") != -1 && userAgent.indexOf("Chrome") == -1) {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/add_to_apple_wallet.png";
  } else {
    img.src = "https://s3.amazonaws.com/i.addtowallet.co/assets/Add_to_Google_Wallet_badge.svg.png";
  }
  button.style.background = 'none';
  button.style.border='none';
  button.style.width = '250px';
  button.style.height = '72px';
  img.style.width = '100%';
  img.style.height = '100%';
  button.style.cursor = 'pointer';
  button.onmousedown = function() {
    button.style.transform = 'scale(0.9)';
  }
  button.onmouseup = function() {
    button.style.transform = 'scale(1)';
  }
  button.onclick = function() {
    window.open(buttonUrl, '_blank');
  }
}
</script>
<button id="addToWalletButton">
<img id="walletImage" src="" alt="addToWalletButton"/>
</button>
Pass link copied into buttonUrl
Wallet button preview after the theme is saved

What the button shows

The snippet picks a badge from the browser. Safari on an iPhone is the Apple Wallet badge. Chrome is the Google Wallet badge. Other browsers get the Google Wallet badge. The click opens buttonUrl.

Add to Google Wallet badge used for Chrome
Add to Apple Wallet badge used for Safari

Check both phones

  • Published theme, logged-out visit, button visible.
  • iPhone Safari opens the pass link and can add it to Apple Wallet.
  • Android Chrome opens the pass link and can save it to Google Wallet.
  • Thank you and Order status are unchanged unless you also installed Order Pass on purpose.
Create Wallet Pass Now

All guides

  • Guide10 reasons why incorporating Mobile Wallet Passes into your mobile strategy is essential
  • Guide5 Reasons why your store needs a wallet pass
  • GuideAdvantages of using Google and Apple wallet pass in businesses
  • GuideBest practices to design an amazing wallet pass
  • GuideBoost Engagement with Interactive Wallet Passes in Magazines
  • GuideConvert Pdf To Pass Using AddToWallet
  • GuideCreate Apple wallet pass for free
  • GuideCreate Apple Wallet passes for Your Business
  • GuideCreate Google wallet pass for free
  • GuideCreating Apple and Google Wallet Passes
  • GuideCreate Wallet Passes with the AddToWallet Zapier Integration
  • GuideDifferences between Apple and Google wallet
  • GuideEnhance audience interaction with wallet passes in Newspapers
  • GuideHidden Form Fields: Dynamic Expiry for Wallet Passes
  • GuideHow Google and Apple Wallet Pass Works
  • How-toHow to Add Amelia Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add an Add to Wallet Button to Your Website
  • How-toHow to Add an Apple Wallet Button Easily
  • How-toHow to Add Bookly Booking Passes to Apple Wallet & Google Wallet
  • How-toHow to Add Location to Wallet Passes
  • How-toHow to Add Team Members to Your Account
  • How-toHow to Add Simply Schedule Appointments Bookings to Apple Wallet & Google Wallet
  • How-toHow to Add The Events Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to Add LatePoint Appointments to Apple Wallet & Google Wallet
  • How-toHow to Add Sugar Calendar Tickets to Apple Wallet & Google Wallet
  • How-toHow to configure notifications for Apple & Google wallet passes
  • How-toHow to create a business pass for Apple and Google wallet
  • How-toHow to Create a wallet pass?
  • How-toHow to create a wallet pass using Zapier Integration?
  • How-toHow to create digital Concert Tickets with AddToWallet.co
  • How-toHow to create dynamic passes and manage users in AddToWallet
  • How-toHow To Create Gift Cards in Bulk
  • How-toHow to Create Hair Salon Gift Cards in Minutes
  • How-toCreate Loyalty Wallet Pass Using AddToWallet
  • How-toHow to Create Mobile Wallet Passes Using Google Sheets
  • How-toHow to Create & Scan Dynamic Wallet Passes Using AddToWallet
  • How-toHow To Distribute Google or Apple Wallet Pass
  • How-toHow to duplicate a wallet pass?
  • How-toHow to embed Google Wallet or Apple Wallet button on Shopify
  • How-toHow to embed Google wallet or Apple wallet button on Squarespace
  • How-toHow to embed Google Wallet or Apple Wallet button on Weebly
  • How-toHow to embed Google Wallet or Apple wallet button on Wix
  • How-toHow to embed Google Wallet or Apple Wallet button on WordPress
  • How-toHow to Generate JSON for Apple & Google Wallet Passes
  • How-toHow to generate leads with a Google or Apple Wallet coupon
  • How-toHow to Use AddToWallet Node on N8N
  • How-toHow to integrate make.com with AddToWallet.co?
  • How-toHow to Secure Wallet Passes with Access Code Protection
  • How-toHow to Send Notifications Using Wallet Pass
  • How-toHow to Set Up Custom Domains with AddToWallet
  • How-toHow to Share Wallet Passes Using Flyers
  • How-toHow to test Apple Wallet beacons
  • How-toAddToWallet Order Pass App on Shopify
  • How-toHow to create dynamic wallet pass
  • How-toHow to Use Webhooks with AddToWallet
  • GuideOur Audience Asked for Wallet Tickets AddToWallet.co Delivered
  • GuideCreate Wallet Passes from Form Responses
  • GuideWallet Pass Generator for Google Sheets
  • GuideWallet Passes for Wedding Invitations
addtowallet.co

AddToWallet is a Mobile Wallet Pass creator to design custom Apple & Google Wallet passes for coupons, deals, gift cards, and loyalty cards.

Use Cases

  • Insurance
  • Fund raising
  • Fan-clubs
  • Restaurant
  • Higher Education

Solutions

  • Loyalty Pass
  • Coupons
  • Gift Cards
  • Event Tickets
  • Google Wallet
  • WalletPassBuilder

Company

  • FAQs
  • Blog
  • Product Updates
  • Privacy policy
  • Terms & conditions
  • Code of conduct
  • ESG statement
  • Trust Center

Free Tools

  • All free tools
  • CSV to Pass Preflight
  • Image to Pass
  • PDF to Pass
  • QR Code Generator
  • Barcode Generator
  • PK Pass Viewer
  • Free membership pass
  • Event check-in rehearsal
© 2026 Hazelnut Ventures LLC