Remove the 'use for the shipto same as billto address' checkbox in the form

Started by Whitewolf2, February 08, 2013, 18:36:00 PM

Previous topic - Next topic

Whitewolf2

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?


jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Whitewolf2

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!