VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: TAIWAR on June 06, 2012, 21:30:53 PM

Title: DELETE COMMENT ON CART
Post by: TAIWAR on June 06, 2012, 21:30:53 PM
HELLO

WHEN WE GO ON THE CART I HAVE COMMENT THAT CUSTOMER CAN WRITE, PLEASE TELL ME HOW TO DELETE THIS ?
Title: Re: DELETE COMMENT ON CART
Post by: stuart.prevos on June 07, 2012, 11:19:23 AM
comments can be usefull on the cart for things like shipping instructions etc, but if you want to get rid of it the use a HTML override to edit the file views/cart/tmpl/default.php
use HTML comments to hide it <!--    --> or just delete the lines
===================
<form method="post" id="checkoutForm" name="checkoutForm" action="<?php echo JRoute::_( 'index.php?option=com_virtuemart&view=cart'.$taskRoute,$this->useXHTML,$this->useSSL ); ?>">

      <?php // Leave A Comment Field ?>
      <!-- <div class="customer-comment marginbottom15">  -->
         <!--<span class="comment"><?php echo JText::_('COM_VIRTUEMART_COMMENT'); ?></span><br />  -->
         <!--<textarea class="customer-comment" name="customer_comment" cols="50" rows="4"><?php echo $this->cart->customer_comment; ?></textarea>  -->
      </div>
      <?php // Leave A Comment Field END ?>
===========================
Hope this helps
Title: Re: DELETE COMMENT ON CART
Post by: TAIWAR on June 07, 2012, 17:57:07 PM
Hello,
Thank you very much!
But you have just make a little mistake with the last -->

<!--<textarea class="customer-comment" name="customer_comment" cols="50" rows="4"><?php echo $this->cart->customer_comment; ?></textarea>

      </div>-->

Thank you for your help ! :)