- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
PrestaShop 1.6.x. How to display prices in Catalog mode
January 22, 2015
Good news for all on-line store keepers! In our new tutorial we will teach you how to make products prices appear on your site even when Catalog mode is enabled.
PrestaShop 1.6.x. How to display prices in Catalog mode
As you know, Catalog mode is used when merchants want to show their products online but not allow online purchases. This means that all the products are displayed on the site but prices. The Shopping cart feature is also disabled in this mode:
Let us show you the trick how to make product price appear at the front-end even if Catalog mode is enabled and there is no Shopping cart button:
-
On your FTP or using the hosting cpanel File Manager tool, go to themes\themeXXX\ (where themeXXX is the name of your theme).
-
Open product-list.tpl file:
-
Look for the following code (in our case it is on line 63, that depends on a template you have):
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
-
Now delete text !$PS_CATALOG_MODE AND from this part of the code. Your new code will look like this:
{if ( ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
-
Save the changes:
-
Now open product.tpl file in the same themes\themeXXX\ folder:
-
Look for the following code (in our case it is on line 254):
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE }
-
Now delete text && !$PS_CATALOG_MODE from this part of the code. Your new code will look like this:
{if $product->show_price && !isset($restricted_country_mode) }
-
Save the changes:
-
Refresh the front-end of your site to see the changes:
That’s it! Now prices are shown at the front-end despite of the enabled Catalog mode.
Feel free to check the detailed video tutorial below: