How to Improve Conversions with Dynamic Checkout Buttons

Shopify dynamic checkout buttons

Understanding why buyers abandon their online store purchases is key to learning how developers and designers can improve their custom themes and boost their client’s conversions. According to theBaymard Institute, 26 percent of US online shoppers have abandoned an order in the past quarter solely due to a‘too long / complicated checkout process’.

The user experience on a store’s cart and checkout pages is crucial for determining whether or not a sale will be completed. If theme developers and designers can remove complexity from these pages, and introduce familiarity, buyers will feel more at ease, which should lead to a lower cart abandonment rates for your clients.

Shopify’sdynamic checkout buttonsfacilitate a checkout experience which is tailored for a buyer’s preferred form of payment, be that Apple Pay, PayPal, or others. These buttons simplify navigation during the payment process by offering the buyer access to the most suitablecall to action button.

Now that dynamic checkout buttons are available on the cart page and product pages, you can provide themes that ensure a streamlined and expedited checkout process no matter where a buyer is on the site.

In this article, we’ll look at how to implement dynamic checkout buttons onto your custom theme’s product and cart page. We’ll also look at what role dynamic checkout buttons play in the buyer's journey and considerations that need to be taken into account when using them.

Grow your business with the Shopify Partner Program

Whether you offer marketing, customization, or web design and development services, the Shopify Partner Program will set you up for success. Join for free and access revenue share opportunities, tools to grow your business, and a passionate commerce community.

Sign up

Designing for choice and consistency

It’s critical to recognize that your client’s buyers have different preferences, and that theme developers can empower clients to service these different preferences through careful store design. The rise in popularity of digital wallets and alternative payment options means that you can give your themes the competitive edge with dynamic checkout buttons.

One of the quickest growing digital wallets is Apple Pay, which allows buyers to use their bank accounts to pay for products quickly through iPhones and Apple Watches. Many of the world’s biggest brands have adopted Apple Pay as a payment option,including 74 of the top 100 US retailers.

作为these unique payment options gain in popularity, there will be an increasing expectation from buyers to experience the specific look and feel they’re accustomed to when using a particular wallet. With Shopify’s dynamic payment buttons, merchants are now able to provide this frictionless buyer experience.

Currently dynamic payment buttons which connect with PayPal, Google Pay, and Amazon Pay can be added to a themes cart or product pages. Each of these buttons will lead to a buyer through a specialized checkout process, designed with ease of use in mind.

When dynamic checkout buttons are added to a product page, buyers skip the cart page when they click on it and are automatically brought to the Express checkout flow. When dynamic checkout buttons are added to the cart page, the buyer can simply use this checkout flow for their purchases rather than continuing to the regular Shopify checkout.

作为well as an expedited and simplified checkout experience, there’s an additional benefit of using dynamic checkout buttons. By using Liquid to generate these buttons, you can ensure a consistent user experience on each of your theme’s pages.

Since the icons for the available payment options will be the same whether on the product, cart, or checkout pages, you don’t have to worry about any visual inconsistencies. Having the same visual language across your client’s stores will contribute to the buyer’s experience and their trust in that store.

You might also like:Progressive Disclosure: Simplifying the Complexity.

Implementing with Liquid

Implementing dynamic checkout buttons on product pages involves using the Liquid{% form %}标签创建加入购物车和结帐按钮。作为welearned previously,formLiquid tag generates an HTML

element along with the necessary inputs to send submitted data to a specific endpoint.

In this case,{% form 'product' %}can be used to output the regular add to cart button, as well as the dynamic checkout buttons. Within your theme, you’ll need to find the product form by searching for, and replace it with the following:

{% form 'product', product, id: "oldID", class: "old-class" %}`

Since we’re no longer using a HTML form tags, you’ll also need to replace the closingtag with it’s Liquid equivalent:{% endform %}.

Next, you’ll need to find where the add to cart button is being generated by searching for an input or a button tag that has the attributetype="submit". If you want the dynamic checkout buttons to appear below the regular checkout button, you should find the closing

Grow your business with the Shopify Partner Program

Learn more