News:

Support the VirtueMart project and become a member

Main Menu

VM 3 - Hide "Ship To" Section on Cart page

Started by chumphrey, January 22, 2015, 18:28:30 PM

Previous topic - Next topic

chumphrey

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

AH

#1
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!
Regards
A

Joomla 4.4.5
php 8.1

chumphrey