Community > Discussions
65 views
6 replies

Suppress Pricing When Hide Shopping Cart is Selected

This is a request for a future feature in Live Storefront. Please suppress pricing (product price equals $0.00) when Hide Shopping Cart is selected in the Live Storefront console. 

Will Will
Published 08/23/2019 19:04
Add Comment
Mandeep Singh

Hide Shopping Cart? 

If you're trying to use Live StoreFront as a Product Catalog there there is an option to show "Call For Price"

See: https://www.mandeeps.com/support/knowledgebase/live-storefront-manage-products-pricing-call-for-price

replied 08/23/2019 20:21
Will

The Catalog or store I'm featuring on my site lists only so-called "freemium" based IT products and services. That is, the base price for any of the products and services is always free or zero cost. Your suggestion for "Call for Pricing" would not work. Moreover, showing zeroes on all products and services looks like an error is occurring in the virtual storefront. It's largely an aesthetic issue than anything else.

That's why I think it would be perfect logic within Live Storefront to suppress $0.00 for prices if you configure it for Disable Buy Button.  

replied 08/23/2019 20:34
Mandeep Singh

Simply modify the theme/template and remove the price. 

replied 08/23/2019 20:36
Will

I did that per your assistant's recommendations. However, every time I go to update the Live Storefront module won't it override the template modifications?

replied 08/25/2019 17:52
Ashish Pachori

Please create your own theme by following https://www.mandeeps.com/support/knowledgebase/live-storefront-themes1-how-do-i-create-a-new-theme-for-my-store

After creating the theme you should change in template which is at /Portals/_default/LiveStoreFront/Store/Themes/YourCustomTheme\Templates\Common\productlist.cshtml

and remove/comment following code from Line no: 72 to 86

else {
 if (p.IsOnSale) {
  if (p.SpecialPrice >= 0) {
   <
   span > < del > @(Model.Store.Catalog.TaxDisplayType == (int) TaxDisplayType.Includingtax ? p.FormattedOldPriceIncludeTax : p.FormattedPrice) < /del></span >
    <
    span class = "amount" > < ins > @(Model.Store.Catalog.TaxDisplayType == (int) TaxDisplayType.Includingtax ? p.FormattedSalePriceIncludeTax : p.FormattedSalePrice) < /ins></span >
  }
 } else {
  <
  span class = "amount" > < ins > @(Model.Store.Catalog.TaxDisplayType == (int) TaxDisplayType.Includingtax ? p.FormattedPriceIncludeTax : p.FormattedPrice) < /ins></span >
 }
}

replied 08/27/2019 13:57
Will

OK, thanks. That's seems to work. I'll know for sure after the next update to Live StoreFront.

replied 09/05/2019 17:25

Last Activity 09/05/2019 17:25