Personalized checkout and custom promotions with Shopify Scripts
hi I need to change
{ form | payment_button }}
this dynamic buy button in my product.liquid to redirect to the checkout as usual but with this added to the link "/checkout?force_checkout=redesign", so the checkout is the new one-page checkout. I manage to change it in the cart using
<form action="/checkout?force_checkout=redesign" method="post" novalidate class="cart">
but can't do it on the dynamic button in the product page
I could add a custom button:
<form action="/checkout?force_checkout=redesign" method="post" novalidate class="cart">
<input type="hidden" name="checkout">
<button type="submit" is="loader-button" class="cart__checkout-button checkout-button button button--primary button--full" name="checkout">
<span class="checkout-button__lock">{%- render 'icon' with 'lock' -%}
</span>
{{- 'cart.general.checkout' | t -}}
</button>
</form>
but this would not add the item to the cart so it is an empty checkout
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024