News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to set STsameAsBT unchecked by default?

Started by mclernons, November 01, 2016, 06:14:08 AM

Previous topic - Next topic

mclernons

Hi Guys,

Joomla! 3.6.4
VirtueMart 3.0.18

Is there a way to uncheck (or untick) the shipping address by default?

Thanks

Jumbo!

Override and customize this layout file in your template - components/com_virtuemart/views/cart/tmpl/default_address.php

Find the following codes in line 81:

echo VmHtml::checkbox ('STsameAsBT', $this->cart->STsameAsBT,1,0,'id="STsameAsBTjs" data-dynamic-update=1') . '<br />';

Replace above by:

echo VmHtml::checkbox ('STsameAsBT', $this->cart->STsameAsBT, 0, 0, 'id="STsameAsBTjs" data-dynamic-update=1') . '<br />';