Render Cutome price on checkout page

Hy I want to render cutome price on checkout page in place of subtotal price . I have take it on checkout page using custom_properties but dont able to replace it with sub total. But dont have to acces of checkout page code. Is there a way to replace the custom price with subtotal or any other suggestion like to hide the subtotal prices

1 Like

Hey @Irfan_Ali_Developer :waving_hand: right now, we don’t let folks specifically overwrite the “Subtotal” value in the hosted checkout since that does have to be changed within the cart’s underlying prices.

The way most folks change this is to apply a programmatic discount—created by changing the actual Cart Lines or an Order Discount Function—so the real subtotal automatically collapses to your custom amount (more info on this here).

If you need to swap line items instead of showing a discount, a Cart Transform Function might be the best option, since it can remove the original items and insert one line at the desired price.

There’s a great post here on Shopify Academy that might help: https://www.shopifyacademy.com/adjust-prices-with-shopify-functions-and-checkout-ui-extensions/2143852

Hope this helps, let me know if I can clarify anything :slight_smile: