what should you do to hide product price in the frontend in Magento

There are some reasons why you want to remove product prices that are displayed in the frontend of your Magento store such as changing prices, fluctuating in prices, market needs… You can hide price of a product, or certain products, in Magento. It seems a simple topic, in reality it can relate to a few modifications basing on the extract request and the extract needs of the customers. First of all, the store owner has to decide where they want the product form, it can be page or category page or both after that using a minor CSS modification they can do that.

Firstly, you must modify the style style.css file of your theme. For instaince, if you use the default theme that comes prepackaged with Magento and your store is installed directly in the public_html folder on your Magento hosting account, making the frontend accessible at yourdomain.com, then the path to the file will be public_html/skin/frontend/default/default/css/styles.css. Edit the file by adding the following on a new line:

.price-box {display:none;}

This will hide the price on category pages (both grid and list view) and on product details pages. You can edit the file from the Files section of the Pixie control panel. Another way to do it is to download it on your local computer with an FTP client (e.g. FileZilla), edit it with a text editor (e.g. Notepad) and upload it back overwriting the old file.

After that clear your browser cache and refresh the frontend of your site to see the result.

Related Posts
Leave a reply