VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Whitewolf2 on February 08, 2013, 18:36:00 PM

Title: Remove the 'use for the shipto same as billto address' checkbox in the form
Post by: Whitewolf2 on February 08, 2013, 18:36:00 PM
Hi All!

Thank you for your help in advance.

We are using 2.0.12f.

Joomla version: 2.5.9

We would like to remove the 'use for the shipto same as billto address' checkbox in the form?

Any ideas?

Title: Re: Remove the 'use for the shipto same as billto address' checkbox in the form
Post by: jenkinhill on February 09, 2013, 11:55:27 AM
If you mean the checkout page use some css to hide the output-shipto div. Or edit components/com_virtuemart/views/cart/tmpl/default.php to remove the shipto element, and use the edited template as an override.

Use Firebug to check the css. http://forum.virtuemart.net/index.php?topic=102850.0
Title: Re: Remove the 'use for the shipto same as billto address' checkbox in the form
Post by: Whitewolf2 on February 09, 2013, 16:00:47 PM
Hi jenkinhill,

Thank you for your help.

I have looked at the components/com_virtuemart/views/cart/tmpl/default.php but cannot seem to find the code.

With Firebug, I can see the following:

<div class="output-shipto">
Use for the shipto same as billto address
<input type="hidden" name="STsameAsBT" value="0">
<input id="STsameAsBT" type="checkbox" name="STsameAsBT" value="1">

Which is exactly what I need to remove, but I don't know where to find it!