How to hide the price from displaying in the shipping options

   —   
You will need to customize the Shipping selector controls which is used to display shipping options and related price. This control is located in:
~\CMSModules\Ecommerce\FormControls\ShippingSelector.ascx.cs

Around line 417 you can find the following code:
if (shipping > 0) { detailInfo = "(" + CurrencyInfoProvider.GetFormattedPrice(shipping, ShoppingCart.CurrencyInfoObj) + ")"; }

which is simply adding the price at the end of shipping option, so if you will comment these few lines, the shipping price won't be displayed anymore.

/** if (shipping > 0) { detailInfo = "(" + CurrencyInfoProvider.GetFormattedPrice(shipping, ShoppingCart.CurrencyInfoObj) + ")"; } **/

That's all you need to hide the price of shipping.
Share this article on   LinkedIn

Martin Danko

Let me guide you on your journey of success. I will show you how to optimize your content production with Kentico Draft. Check out www.kenticocloud.com