Solved

Checkout Extensibility Upgrade: Cannot Setting Default Check in Checkout Page

JH11
Shopify Partner
4 0 0

I upgraded the checkout page to a Checkout Extensibility.

 

Is there a way to default check the "Save this information for next time" checkbox? In the checkout.liquid before upgrading to Checkout Extensibility, I could write JavaScript code to achieve this. However, it seems that with the Checkout Extensibility, it's not possible to manipulate the checkout UI from external.

 

 
スクリーンショット 2024-02-21 14.20.46.png
Accepted Solution (1)

Liam
Shopify Staff
2731 298 769

This is an accepted solution.

Hi JH11,

 

Currently, there is no way to have the "Save this information for next time" option checked by default using Checkout Extensibility. This is a built-in feature of Shopify's checkout and cannot be modified through the extensibility API. 

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 5 (5)

Liam
Shopify Staff
2731 298 769

This is an accepted solution.

Hi JH11,

 

Currently, there is no way to have the "Save this information for next time" option checked by default using Checkout Extensibility. This is a built-in feature of Shopify's checkout and cannot be modified through the extensibility API. 

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

JH11
Shopify Partner
4 0 0

Thank you, @Liam.

 

I understand the expected behavior.

 

The issue I'm currently facing is that when upgrading to the Checkout Extensibility, there is a problem where the email and address are not consistently retained with dynamic checkout.

 

Previously, when "Save this information for next time" was checked, visiting the checkout page through dynamic checkout would pre-fill the email and address. However, "Save this information for next time" is not checked by default. If I leave the checkout page and try to proceed with dynamic checkout for another item, the email and address are not pre-filled in checkout page.

 

I would like to resolve this issue. Do you have any good ideas, or is there any development planned to address this problem?

 

Thank you.

Liam
Shopify Staff
2731 298 769

I see what you mean, if you move from a checkout to a dynamic checkout, the info entered in the first checkout is not being retained. Is this happening even if the "Save this information for next time" box is checked by the customer?

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog

JH11
Shopify Partner
4 0 0

No, if the "Save this information for next time" box is checked, this doesn't happen. Therefore, I thought that if the "Save this information for next time" could be checked by default, it might potentially resolve this problem.

Liam
Shopify Staff
2731 298 769

There is however no way currently to have the box ticked by default - so unfortunately that's not an option.

Liam | Developer Advocate @ 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 Shopify.dev or the Shopify Web Design and Development Blog