Hide all pricing?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
aharris43
Ensign (ENS)
Ensign (ENS)
Posts: 1
Joined: Thu Oct 23, 2008 2:08 pm

Hide all pricing?

Post by aharris43 » Thu Oct 23, 2008 2:10 pm

I just got this 7.0 store up and running and now they want to change their business model.
Long story short, I need to hide all pricing. I put it in catalog mode, but that doesn't remove pricing.

is there one switch for this? The category pages and the home page seem to give me the hardest time. product pages are done.

Anyone??

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Hide all pricing?

Post by mazhar » Fri Oct 24, 2008 5:22 am

Change the ProductPrice control so that it hides itself if the catalog mode is enabled. You can do this by editing the ConLib/Utility/ProductPrice.ascx file. Place the following code at the very end of the Page_InIt method of this control.

Code: Select all

this.Visible = !Token.Instance.Store.Settings.ProductPurchasingDisabled;
There may be some places where you may need to disable or hide the products yourself but i think on a great part this workaround will work.

Post Reply