All things Shopify and commerce
Dear Guys, my standard theme buy button says BUY NOW. But its being replaced by Shop Pay button and some additional unwanted text. Can someone please help me out. The thing that is unwanted is shown below..........
I just want to remove this More Payment Options, and replace the words........ BUY WITH SHOP PAY with the words....... BUY NOW. The color can remain the since purple looks good. And by clicking on the button, it should straight take it to the checkout page, just like it does when we click on More Payment Options.
Please help guys.
Solved! Go to the solution
This is an accepted solution.
Hi @GymCat
Go to your Online store > Themes > Edit code > open product-button.liquid, find this line of code
{%- if show_dynamic_checkout -%}
Add those code right above
<button type="button" class="like-ShopPay-button shopify-payment-button__button--shoppay">BUY NOW</button>
<style>
.like-ShopPay-button {
margin-top: 13px;
color: #fff !important;
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
border-width: 1px !important;
border-style: solid !important;
-webkit-box-sizing: border-box !important;
box-sizing: border-box !important;
-webkit-box-shadow: 0 0 0 0 transparent !important;
box-shadow: 0 0 0 0 transparent !important;
font-weight: 700 !important;
line-height: 16px !important;
padding: 0 !important;
text-align: center !important;
-webkit-transition: all 0.2s ease-out !important;
transition: all 0.2s ease-out !important;
width: 100% !important;
font-size: 16px !important;
-webkit-box-flex: 1 !important;
-ms-flex: 1 !important;
flex: 1 !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
padding: 4px !important;
min-height: 44px !important;
max-height: 60px !important;
padding-top: 16px!important;
padding-bottom: 16px!important;
font-family: 'Jost';
background: #5a31f4 !important;
border-color: #5a31f4 !important;
}
.like-ShopPay-button:hover {
background: #3c0def !important;
border-color: #3c0def !important;
}
.productView-groupBottom { display: none !important; }
</style>
<script>
$(".shopify-payment-button__button--shoppay").on('click', function (event) {
event.preventDefault();
$( ".shopify-payment-button__more-options").trigger( "click");
});
</script>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Hi @GymCat
Go to your Online store > Themes > Edit code > open product-button.liquid, find this line of code
{%- if show_dynamic_checkout -%}
Add those code right above
<button type="button" class="like-ShopPay-button shopify-payment-button__button--shoppay">BUY NOW</button>
<style>
.like-ShopPay-button {
margin-top: 13px;
color: #fff !important;
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
border-width: 1px !important;
border-style: solid !important;
-webkit-box-sizing: border-box !important;
box-sizing: border-box !important;
-webkit-box-shadow: 0 0 0 0 transparent !important;
box-shadow: 0 0 0 0 transparent !important;
font-weight: 700 !important;
line-height: 16px !important;
padding: 0 !important;
text-align: center !important;
-webkit-transition: all 0.2s ease-out !important;
transition: all 0.2s ease-out !important;
width: 100% !important;
font-size: 16px !important;
-webkit-box-flex: 1 !important;
-ms-flex: 1 !important;
flex: 1 !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
padding: 4px !important;
min-height: 44px !important;
max-height: 60px !important;
padding-top: 16px!important;
padding-bottom: 16px!important;
font-family: 'Jost';
background: #5a31f4 !important;
border-color: #5a31f4 !important;
}
.like-ShopPay-button:hover {
background: #3c0def !important;
border-color: #3c0def !important;
}
.productView-groupBottom { display: none !important; }
</style>
<script>
$(".shopify-payment-button__button--shoppay").on('click', function (event) {
event.preventDefault();
$( ".shopify-payment-button__more-options").trigger( "click");
});
</script>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
It worked brilliantly. Thank you Dan. You are amazing as always.
You are very welcome, @GymCat
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
I am al;so having this problem but I cant find the product-button.liquid file in the edit code. i am on the Ride theme fyi.
thank you in advance
hey dan i tried the same code that you gave him and it didn't work what should i do
Is their a way to change the dynamic checkout button and "more payment options" to just the custom "Buy it now" we see on our store editor? If I deselect the "show dynamic checkout buttons" it just deletes the entire buy button. Can this be done without deactivating other payment methods (Shop Pay, PayPal, etc.)? Maybe through deleting a section of the buy button's code?
I got the same problem and can't find the product-button.liquid either
Hi Dan, I can't find the product-button.liquid.
Has it changed? Thank you 🙂
Hi @ValueEffzeh
Could you share your store URL?
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi Dan,
Just to add on to this - I'm attempting to do the same thing, but the button seems non-interactable in attempting to use the above code. I would hugely appreciate it if you could modify it to fit my site, linked below:
Thank you so much - I really appreciate the help.
Alex
Please try to update code to this and check again
<button type="button" class="like-ShopPay-button shopify-payment-button__button--shoppay">BUY NOW</button>
<style>
.like-ShopPay-button {
margin-top: 13px;
color: #fff !important;
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
border-width: 1px !important;
border-style: solid !important;
-webkit-box-sizing: border-box !important;
box-sizing: border-box !important;
-webkit-box-shadow: 0 0 0 0 transparent !important;
box-shadow: 0 0 0 0 transparent !important;
font-weight: 700 !important;
line-height: 16px !important;
padding: 0 !important;
text-align: center !important;
-webkit-transition: all 0.2s ease-out !important;
transition: all 0.2s ease-out !important;
width: 100% !important;
font-size: 16px !important;
-webkit-box-flex: 1 !important;
-ms-flex: 1 !important;
flex: 1 !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
padding: 4px !important;
min-height: 44px !important;
max-height: 60px !important;
padding-top: 16px!important;
padding-bottom: 16px!important;
font-family: 'Jost';
background: #5a31f4 !important;
border-color: #5a31f4 !important;
}
.like-ShopPay-button:hover {
background: #3c0def !important;
border-color: #3c0def !important;
}
.productView-groupBottom { display: none !important; }
</style>
<script>
document.querySelector(".shopify-payment-button__button--shoppay").addEventListener('click', function(event) {
event.preventDefault();
document.querySelector(".shopify-payment-button__more-options").click();
});
</script>
- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024