VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: chumphrey on January 22, 2015, 18:28:30 PM

Title: VM 3 - Hide "Ship To" Section on Cart page
Post by: chumphrey on January 22, 2015, 18:28:30 PM
The "Bill To" and "Ship To" addresses are always going to be the same for my site.  So I do not want the user to see the "Ship To" section of the Shopping Cart page.  Is there any way to hide that so only the "Bill To" section displays?

VM 3.0.2
Joomla 3.3.6
Title: Re: VM 3 - Hide "Ship To" Section on Cart page
Post by: AH on January 22, 2015, 19:01:02 PM
You can do a template override

Copy components/com_virtuemart/views/cart/tmpl/default_address.php

to

templates/YOURTEMPLATE/html/com_virtuemart/cart/default_address.php

Then hide the class that contains the shipping detail

<div class="width50 floatleft">

<span><span class="vmicon vm2-shipto-icon"></span>
<?php echo vmText::('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-shipto">


Hide it



<div class="width50 floatleft" style="display:none;">

<span><span class="vmicon vm2-shipto-icon"></span>
<?php echo vmText::('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-shipto">


Test and see if it works for you!
Title: Re: VM 3 - Hide "Ship To" Section on Cart page
Post by: chumphrey on January 22, 2015, 20:28:49 PM
Thanks Hutson.  It worked perfectly!!!!