Page 1 of 1

Shipment won't refresh when changing country

PostPosted: Wed Aug 24, 2016 6:16 am
by Candy.Yang
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

Re: Shipment won't refresh when changing country

PostPosted: Wed Aug 24, 2016 5:22 pm
by admin
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

Re: Shipment won't refresh when changing country

PostPosted: Thu Aug 25, 2016 3:46 am
by Candy.Yang
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

Re: Shipment won't refresh when changing country

PostPosted: Mon Oct 17, 2016 5:18 pm
by smatena@.....cz
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

Re: Shipment won't refresh when changing country

PostPosted: Wed Oct 26, 2016 10:04 am
by admin
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