VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: d0ublezer0 on February 29, 2016, 19:59:48 PM

Title: How to set STsameAsBT checked by default?
Post by: d0ublezer0 on February 29, 2016, 19:59:48 PM
how to do this without hack?
i found only one solution:
in helpers\cart.php
function getCartDataToStore
change
$sessionCart->STsameAsBT = $this->STsameAsBT;
to
$sessionCart->STsameAsBT                    = 1;

but in next update it will be overwritten.

it is simply option, how about to add this in admin panel?
Title: Re: How to set STsameAsBT checked by default?
Post by: jenkinhill on February 29, 2016, 23:48:31 PM
It is checked by default in current VM versions with default VM templates.