Categories

Featured templates

VirtueMart 3.x. How to remove comments form from product page

Ammy Brown December 15, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial is going to show you how to remove comments form product page in VirtueMart 3.x. templates.

VirtueMart 3.x. How to remove comments form from product page

On the products pages you can see comment form:

VirtueMart_3.x._How_to_remove_comments_form_from_product_page_1

To remove comments form from the products pages, follow the steps listed below:

  1. Connect to your server using FTP or hosting Cpanel.

  2. Open temlates/themeXXX/html/com_virtuemart/productdetails folder (where XXX is your theme number).

  3. Edit default.php file in any code editor on your computer.

  4. Remove / comment lines 306-315:

    <?php ?><div class="product-jc product-section">
    			<?php
    			defined('_JEXEC') or die('Restricted access');
    			$comments = JPATH_SITE.'/components/com_jcomments/jcomments.php';				
    			if (file_exists($comments)){
    			require_once($comments);
    			echo JComments::show($this->product->virtuemart_product_id,'com_virtuemart', $this->product->product_name);				}
    			?>
    		</div><?php ?>
  5. Save the file, upload it back to your server and check your site.

Feel free to check the detailed video tutorial below:

VirtueMart 3.x. How to remove comments form from product page
This entry was posted in VirtueMart Tutorials and tagged comment, page, product, VirtueMart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket