Hide Price
-
- Lieutenant Commander (LCDR)
- Posts: 92
- Joined: Thu Jul 10, 2008 11:43 am
- Location: Lancaster PA
- Contact:
Hide Price
If a product is hidden, is there a way to hide also price?
Re: Hide Price
You can add a check for the product visibility inside the Conlib\BuyProductDialog.ascx.cs code-behind file. Change the ShowAddToBasket function to:
You'll also need to add this reference at the top of the file:
You can also turn off the AddToBasket and quantity fields here if you need to.
Code: Select all
private void ShowAddToBasket()
{
AddToBasketButton.Visible = true;
rowQuantity.Visible = true;
if (_Product.Visibility == CatalogVisibility.Hidden)
{
trRegPrice.Visible = false;
trOurPrice.Visible = false;
trVariablePrice.Visible = false;
}
}
Code: Select all
using CommerceBuilder.Catalog;
-
- Lieutenant Commander (LCDR)
- Posts: 92
- Joined: Thu Jul 10, 2008 11:43 am
- Location: Lancaster PA
- Contact:
Re: Hide Price
Thank you!