VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: wouterhelm on December 03, 2015, 11:29:41 AM

Title: "Use for the ship to same as bill to address" not overruling
Post by: wouterhelm on December 03, 2015, 11:29:41 AM
Hi,

I have an issue with the "Use for the ship to same as bill to address" option.

Site details:
URL: http://shop.thecus-eu.com
Joomla: 2.5.28
VM: 2.6.22
PHP: 5.5.30

I have various countries I ship to within Europe, all with their own shipping costs. This has been working fine for quite some time. But recently I did get an issue (even though I did not change anything). The option "Use for the shipto same as billto address" is enabled by default, but this not overrule the the ship to details. When I click on "select shipment" I will get the German shipment option only, no matter what country is set for the customer.

When I want to add a ship to address I can see that "Germany" is pre-selected already (I don't know why?). When I modify the ship to address manually and change the country, the correct "ship to" option will be available. So for some reason it looks like that the "bill to address" is not overruling the "ship to address" in case the option "Use for the shipto same as billto address" is enabled.

Any thoughts what might be wrong?
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: GJC Web Design on December 03, 2015, 17:01:38 PM
this is handles in the shipping plugins .. what are u using?

if the std weight-country is it up to date (i.e. is your AIO 2.6.22?)
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: wouterhelm on December 04, 2015, 09:03:28 AM
We use "By weight, ZIP and countries" as plugin, I think that is the standard one.

Just checked the Extension Manager and the AIO is 2.6.22.

As a temporary solution I would like to remove/disable the "Use for the ship to same as bill to address" text and checkbox, so that customers are forced to add a shipping address manually. But I'm not able to find where this can be disabled/removed (which php file). Anyone that can help?

Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: GJC Web Design on December 04, 2015, 22:19:19 PM
echo VmHtml::checkbox ('STsameAsBTjs', $this->cart->STsameAsBT) . '<br />';

components\com_virtuemart\views\cart\tmpl\default_pricelist.php
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: wouterhelm on December 07, 2015, 10:24:46 AM
Great, thanks a lot, found it and I did a "comment out" for that part.

Only issue I still have is that the shipto address has "Germany" as country by default (as country). Because of this customers still have "Germany" as shipping method and they can proceed with the check out without adding a ship to address. I wonder how I can rid of that. If there is no country in the ship to address you cannot check out and you are forced to add a ship to address, which will fix this. But I wasn't able to found out why Germany is selected as country by default (same for creating a new user account btw).
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: GJC Web Design on December 07, 2015, 12:19:29 PM
default in the shopper country field?
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: wouterhelm on December 07, 2015, 13:34:22 PM
As far as I know this should be "virtuemart_country_id" at [configuration -> shopper fields] right? I did check this before, but the "default" value is empty here.
Title: Re: "Use for the ship to same as bill to address" not overruling
Post by: GJC Web Design on December 08, 2015, 10:12:10 AM
yes..  I know of no other setting .. cookie somewhere?  template?