VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ppp on May 29, 2012, 19:51:43 PM

Title: Use for the shipto same as billto address
Post by: ppp on May 29, 2012, 19:51:43 PM
Hi all,

When I add a ship address different from bill address and then check the box "Use for the shipto same as billto address" the order gets registered with different addresses (one for bill to and one for ship to). Is this normal behaviour? Shouldn't the order be placed with bill address on both addresses?

I'm using: Joomla 2.5.4 and Virtuemart 2.0.6

Thanx.
Title: Re: Use for the shipto same as billto address
Post by: mde1954 on June 08, 2012, 11:01:40 AM
I have the same question.  This behaviour does not seem logical.  If you check "shipto same as billto", I assume it ought to override any existing shipto information.  I am also using 2.0.6.
Title: Re: Use for the shipto same as billto address
Post by: The_nino on June 08, 2012, 17:13:20 PM
I have tried to fix the problem, but without success.

I have made some tests changing the code of components/com_virtuemart/helpers/cart.php at line 775, that is where the program checks the variable cart->STsameAsBT but it is always 0, and don“t know why it is getting always the same value whatever you do with the checkbox.

It would be very appreciated some help...

Thanks a lot!
Title: Re: Use for the shipto same as billto address
Post by: leFlea on July 17, 2012, 09:10:29 AM
I can confirm that,  "shipto same as billto" does not work as intended.
* order entries shows correct (billing add as shipping)
* order confirmation emails old shipping

how do we check on STsameAsBT on email overrides? payments plugins and shipping plugins?

Using J2.5.6, VM 2.0.8d.
Title: Re: Use for the shipto same as billto address
Post by: Milbo on July 17, 2012, 10:38:25 AM
Ahh interesting theflea. So the entries in the orders are correct, but the email is using wrong ST. thx.
Title: Re: Use for the shipto same as billto address
Post by: alatak on July 17, 2012, 18:23:04 PM
Hello

QuoteI can confirm that,  "shipto same as billto" does not work as intended.
* order entries shows correct (billing add as shipping)
* order confirmation emails old shipping

I have fixed it.
The fix will be integrated in the 2.0.8.f
Title: Re: Use for the shipto same as billto address
Post by: seweryn on August 10, 2012, 13:19:14 PM
Hello,

where was the problem?

Could you give me advice how fix this issue? I have modified VM 2.0.8e now and I will not update to VM 2.0.8f

Please help.
Thank you.
Title: Re: Use for the shipto same as billto address
Post by: bob30 on August 23, 2012, 23:47:04 PM
Hi!

Just updated to 2.0.10

I see that in cart.php there is new line:

$this->STsameAsBT = JRequest::getInt('STsameAsBT', $this->STsameAsBT);

Good, but $_REQUEST has no STsameAsBT, becouse in file default_pricelist.php chceckbox is out of any form:

echo JText::_('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT'). VmHtml::checkbox('STsameAsBT',$this->cart->STsameAsBT).'<br />';

is above the :



<form action="/index.php?option=com_virtuemart&amp;view=cart&amp;task=checkout&amp;lang=pl" name="checkoutForm" id="checkoutForm" method="post">

....
</form>
Title: Re: Use for the shipto same as billto address
Post by: Milbo on August 24, 2012, 12:33:53 PM
fixed,