Re: Trying to find the button "buy now" on the source code

Solved

Trying to find the button "buy now" on the source code

jeffbbarbosa
New Member
4 0 0

When I click that button, it redirects to the native Shopify checkout. I would like it to redirect to an external checkout

 

jeffbbarbosa_0-1698155408223.png

 

I was able to find the source code for the button that actually redirects to my external checkout.

 

jeffbbarbosa_1-1698155676800.png

 

This button: "FAZER CHECKOUT" is going to the right checkout

 

jeffbbarbosa_2-1698155757404.png

 

But the other one, needs to go for this checkout too (product page).

 

Can you guys help me?

 

I appreciate 

 

 

Accepted Solution (1)
Shay
Shopify Staff
3110 473 652

This is an accepted solution.

Hey there @jeffbbarbosa 

 

I did some more investigating into this and I wanted to apologize, as I was incorrect in this case! If your business is located in Brazil then you do have the ability to use external gateways, like the one you are setting up. This is a unique consideration for merchants in Brazil, and I wasn't overly familiar with that process before. Merchants located in other countries do not have the same access to these kind of gateways. So again, my apologies!

 

I recommend reposting this question on our Portuguese forums for more tailored assistance:  Comunidade da Shopify (PT-BR)  

 

You can also check out this list of approved hijack checkouts for merchants located in Brazil here: Checkout transparente: um guia da Shopify (2023) Brasil 

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 6 (6)

Dan-From-Ryviu
Shopify Partner
9562 1923 1959

It is show_dynamic_checkout button function. You cannot edit it in the source code, just find those codes in your theme file only 

{%- if show_dynamic_checkout -%}
    {{ form | payment_button }}
{%- endif -%}

 

- Helpful? Like and Accept solution! or 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.

jeffbbarbosa
New Member
4 0 0

Hi Dan!

 

Fine? 

 

I can't allow the person to be redirected to an external checkout when clicking the button?

 

I appreciate

Shay
Shopify Staff
3110 473 652

Hi @jeffbbarbosa 

 

As per our merchant terms, section 1-8, you agree not to circumvent the Shopify checkout experience. Directing customers to a payment gateway that is not supported by Shopify is not allowed on the platform. This is to ensure the security of the checkout experience is always maintained. 

 

  1. You agree not to work around, bypass, or circumvent any of the technical limitations of the Services, including to process orders outside Shopify’s Checkout, use any tool to enable features or functionalities that are otherwise disabled in the Services, or decompile, disassemble or otherwise reverse engineer the Services.

I recommend disabling that checkout redirect right away. Is this gateway not on our supported gateways list?

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

jeffbbarbosa
New Member
4 0 0

Hi Shay,

 

It is not prohibited to use another checkout. The platform is a Shopify partner, including. I just want help with the codes and the way to make installing this checkout easier.

 

Can you help me?

Shay
Shopify Staff
3110 473 652

If the gateway is connected to your Shopify store through your Settings > Payments then you do not need to alter the buy now buttons as they would all redirect to the Shopify Checkout flow and the connected gateway(s). If the gateway is not connected to your store through your store settings then this does go against our merchant terms of service. You will need to connect the gateway through your store admin to stay adherent to these policies. 

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Shay
Shopify Staff
3110 473 652

This is an accepted solution.

Hey there @jeffbbarbosa 

 

I did some more investigating into this and I wanted to apologize, as I was incorrect in this case! If your business is located in Brazil then you do have the ability to use external gateways, like the one you are setting up. This is a unique consideration for merchants in Brazil, and I wasn't overly familiar with that process before. Merchants located in other countries do not have the same access to these kind of gateways. So again, my apologies!

 

I recommend reposting this question on our Portuguese forums for more tailored assistance:  Comunidade da Shopify (PT-BR)  

 

You can also check out this list of approved hijack checkouts for merchants located in Brazil here: Checkout transparente: um guia da Shopify (2023) Brasil 

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog