Implementation
To enable express checkout buttons in your cart, you’ll need to add a small code snippet to your theme.1
Access theme code
From your Shopify admin, go to Online Store → Themes → Actions → Edit code
2
Open theme.liquid
In the Layout folder, click on
theme.liquid
to open it3
Add the code
Find the
</head>
closing tag and add the following code as a new line just before it:4
Save changes
Click Save to apply the changes to your theme
How It Works
This code snippet:- Checks if express checkout buttons are available (
{% if additional_checkout_buttons %}
) - Renders the checkout button content in a hidden div
- Allows Assortion’s cart to control when and how these buttons are displayed
The div is set to
display: none !important
so that Assortion can manage the visibility and positioning of express checkout buttons within your custom cart.Benefits
Faster Checkout
Customers can complete purchases in seconds
Mobile Optimized
Perfect for mobile shoppers using digital wallets
Higher Conversion
Reduce cart abandonment with one-click purchasing
Secure Payments
Leverage trusted payment providers
Supported Payment Methods
Express checkout typically supports:- Apple Pay - For Safari and iOS users
- Google Pay - For Chrome and Android users
- Shop Pay - Shopify’s accelerated checkout
- PayPal - Express checkout option
- Amazon Pay - If enabled in your store
Available express checkout options depend on your payment gateway settings and customer’s browser/device.
Troubleshooting
Issue | Solution |
---|---|
Buttons not appearing | Ensure payment providers are properly configured in Shopify |
Wrong positioning | Check that the code is placed before </head> |
Duplicate buttons | Remove any other express checkout code from your theme |