Shipment won't refresh when changing country

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Shipment won't refresh when changing country

Postby Candy.Yang » Wed Aug 24, 2016 6:16 am

Hello Stan,

This issue appeared after I update OPC from v2.0.300.051015 to v2.0.317.0.10082016.
(Joomla 3.5.1, VM3.0.16)

The shipment information will not refresh when I change the country.
This may cause my customers choose a shipping method which not available in their country.

Changing zip code, however, perfectly refresh shipment info.

I've notice the javascript code onchange is changing from
Code: Select all
Onepage.op_validateCountryOp2('true', 'false', this)
to
Code: Select all
Onepage.changeStateList(this)

But I don't know where that code exactly is so I cannot test it properly.

Could you please help me fix the issue?
Thank you.


Best Regards,
Candy
Candy.Yang
 
Posts: 24
Joined: Mon Nov 10, 2014 5:02 am

Re: Shipment won't refresh when changing country

Postby admin » Wed Aug 24, 2016 5:22 pm

Hello Candy, pls proceed to your Components -> Onepage -> Shopper fields -> search for virtuemart_country_id (or country) and make sure it's marked under the Ajax column. There is a tooltip which makes the navigation easier.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Shipment won't refresh when changing country

Postby Candy.Yang » Thu Aug 25, 2016 3:46 am

Yes! Thank you Stan!

OPC is a great component with so powerful function that I don't even know everyone of them after using for years.

Thank you for your kindly instruction again.

Best Regard,
Candy
Candy.Yang
 
Posts: 24
Joined: Mon Nov 10, 2014 5:02 am

Re: Shipment won't refresh when changing country

Postby smatena@.....cz » Mon Oct 17, 2016 5:18 pm

Hello Stan,
I am preparing new version of the eshop and have the same problem even with the field marked...

Second problem is that I cannot see AcyMailing checkbox on the checkout. (Tested with other OPC templates and there it is visible).

http://www.helicam.cz/shoptest

Joomla 3.6.2 Stable; VirtueMart 3.0.18, OPC 2.0.319.300916
Installed as a full package from Flatastic template/bundle.

Any ideas?

Thank you
Stepan
smatena@.....cz
 
Posts: 7
Joined: Sun Dec 02, 2012 12:51 pm

Re: Shipment won't refresh when changing country

Postby admin » Wed Oct 26, 2016 10:04 am

hello, when shipping does not reload these are possible problems and solutions:
- your OPC is not compatible with the latest VM3. in latest VM3 versions, VM changed the ID of the rendered country and state field and thus we must had adjusted the OPC core files to support this. once you update OPC to one of the latest versions, this will get fixed
- country field is not marked as "Ajax field" within OPC shopper fields. by default country/state/zip/address1 are ajax fields which trigger refresh of the shipping method.

let me know if you still get this problem and i can help you further.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron