Using the checkout extensions, can you mutate the content of the checkout components?

Using the checkout extensions, can you mutate the content of the checkout components?

haddi
Shopify Partner
17 1 2
I'm aware that we can mutate the branding using the Branding API, but can we mutate the content? For example, the cart line items attributes are being displayed in the checkout summary as "key: value". Is it or would it be possible in the future to mutate this component for example by deleting the "key" part from the UI and only show the value?
Mohamed, web developer.
Replies 2 (2)

Liam
Community Manager
3106 339 870

Hi Haddi,

 

What would be your use case for being able to mutate this content?

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

haddi
Shopify Partner
17 1 2

Hi Liam, thanks for asking!

 

The example that I mentioned is exactly what I want to do. So I have added a pre-order feature in a store, and when a product is pre-ordered, it adds this information to the line_item's properties as the following name and value pair: 

 

"Preorder": "[some information]" 

 

On the checkout, both members of the pair are displayed under the line item, so: "Preorder: [some information]". What I want to achieve is prevent the name part of the pair ("Preorder" in this case) from being displayed and only show the value ("[some information]").

 

I'm not sure if this is possible using the Branding API, so I'd appreciate any information that could help.

Mohamed, web developer.