- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
VirtueMart 3.x. How to remove comments form from product page
December 15, 2015
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 pageOn the products pages you can see comment form:

To remove comments form from the products pages, follow the steps listed below:
Connect to your server using FTP or hosting Cpanel.
-
Open temlates/themeXXX/html/com_virtuemart/productdetails folder (where XXX is your theme number).
-
Edit default.php file in any code editor on your computer.
-
Remove / comment lines 306-315:
123456789<!--?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 ?-->
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