VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: CreativeProStudio on March 07, 2013, 15:29:08 PM

Title: How to delete the "Additional Instructions" box from the Shopping Cart?
Post by: CreativeProStudio on March 07, 2013, 15:29:08 PM
Virtuemart Version: 2.0.18a
Joomla Version: 2.5.8

I want to delete the "Additional Instructions" comment box from the bottom of the Shopping Cart (and Checkout) page. I have edited the components/com_virtuemart/views/cart/tmpl/default.php file to remove this bit of code:

<?php // Leave A Comment Field ?>
<div class="customer-comment marginbottom15">
<span class="comment"><?php echo JText::('COM_VIRTUEMART_COMMENT_CART'); ?></span><br/>
<textarea class="customer-comment" name="customer_comment" cols="60" rows="1"><?php echo $this->cart->customer_comment?></textarea>
</div>
<?php // Leave A Comment Field END ?>


But the comment box is still there. So I'm obviously not editing the correct code. Where is it hidden so I can remove that box?
Title: Re: How to delete the "Additional Instructions" box from the Shopping Cart?
Post by: PRO on March 07, 2013, 16:46:28 PM
why not try changing your template override file instead?

Title: Re: How to delete the "Additional Instructions" box from the Shopping Cart?
Post by: CreativeProStudio on March 07, 2013, 17:39:41 PM
Brilliant! Worked like a charm. 8)

Thanks!