VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: mronayne on February 21, 2015, 18:01:53 pm

Title: Cart "Ship To" address radio buttons don't update cart
Post by: mronayne on February 21, 2015, 18:01:53 pm
Joomla 3.4.0 - This failure happens in both VM 3.0.4 and 3.0.6

In case where a shopper/user has more than one Ship To address - when you select a radio button it does not update the cart to alter the selection of Shipping methods that are available.

In my case a user might have both a valid US address and a Military APO/FPO/DPO address. I have specific shipping and rates to any Military address. In other cases a customer might have addresses in different countries and in this case you would want to select the shipping methods for those specific countries.

The problem is that when I enter the shopping cart the default address is displayed and the available shipping methods for that address are available. However, if I select another Ship To address for this order the Shipping methods for the old address show and the valid Shipping methods for the newly selected address do not show.

The only way I can get the proper Shipping methods to show for an alternate address is to select the hyperlink associated with the address and "edit" it by "Saving" it.

You can test this for yourselves here
http://cejay2014.cejayengineering.com

Send me a PM and I'll send you the login credentials for a user with 3 addresses to choose from...
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: AH on February 22, 2015, 00:33:27 am
Yes the developers are aware of this issue
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: mronayne on February 22, 2015, 16:00:39 pm
I am happy to know that this is a known issue.

Any ideas as to when it might be fixed and when a patch or work-around might be available?

Regards,
Mike
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: mronayne on March 04, 2015, 18:29:22 pm
I just downloaded and installed V 3.0.6.2 and it has fixed this problem.

Thank You! Thank You! Thank You!
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: AH on March 04, 2015, 20:41:41 pm
This is actually a NEW feature

The devs are very good!
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: mronayne on March 09, 2015, 20:11:05 pm
Unfortunately, I just discovered another problem with handling alternate "ship to" addresses.

If you have "One Page Checkout enabled" handling of alternate addresses seems to work just fine.

If you uncheck "One Page Checkout enabled" and select any alternate address, then select  "change shipment" and when on the Select a Shipment Method page you click on "Save" when you are returned to the cart the ship to address has been reset to the default.

The same thing happens when you select and save a Payment method.

Obviously, this is a major issue.
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Milbo on March 09, 2015, 22:30:48 pm
Thank you, found and fixed.
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: mronayne on March 09, 2015, 23:22:39 pm
Thank you for such quick action... where can I see/get the fix?

Regards,
Mike
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Adwans on March 06, 2017, 11:05:20 am
Hello everyone,
is it possible having this issue:
Quote
In case where a shopper/user has more than one Ship To address - when you select a radio button it does not update the cart to alter the selection of Shipping methods that are available.
In my Virtuemart 3.0.16?
Switching Radio buttons - between different Ship-to addresses - does not affect cart . Not triggering "Virtuemart.checkQuantity" javascript...
Any idea?
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: AH on March 06, 2017, 11:53:11 am
You need to upgrade to the latest version of VM
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Adwans on March 06, 2017, 20:17:05 pm
Hello everyone,
is it possible having this issue:
Quote
In case where a shopper/user has more than one Ship To address - when you select a radio button it does not update the cart to alter the selection of Shipping methods that are available.
In my Virtuemart 3.0.18 stable?
Switching Radio buttons - between different Ship-to addresses - does not affect cart . Not triggering "Virtuemart.checkQuantity" javascript...
Any idea?
(except upgrade, which is done, no effect on the issue...)
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: jenkinhill on March 06, 2017, 21:41:16 pm
See http://forum.virtuemart.net/index.php?topic=136826.0
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Adwans on March 07, 2017, 10:41:04 am
Respectfully, I would like to say, that above mentioned link doesn't cover my issue. Thank You for your input.
It seems to be so easy, but - radiobuttons in Address section don't work properly , still.
Ideas:
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: AH on March 07, 2017, 11:48:25 am
Unfortunately they work in my version that I am using and the previous few versions

So something is clearly wrong with your installation.

I have multiple shipping addresses for an account
I have shipping configured to be valid for only specific regions
When I change the shipping selection - the cart updates to show the selected address and the shipping options reflect the region for the new shipping address.
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Adwans on March 07, 2017, 13:30:49 pm
You are right.. Sth screwed.

Interesting, that it is not a Template issue. To many jquery functions ? Don't know.

I solved this somehow, hacking VM core a bit (although don't like it!) , in file: views\cart\view.html.php (function renderCompleteAddressList ) :
changed:
Code: [Select]
$this->cart->lists['shipTo'] = JHtml::_('select.radiolist', $addressList, 'shipto', null, 'virtuemart_userinfo_id', 'address_type_name',  $_selectedAddress);into:
Code: [Select]
$this->cart->lists['shipTo'] = JHtml::_('select.radiolist', $addressList, 'shipto','onchange="document.checkoutForm.submit();"', 'virtuemart_userinfo_id', 'address_type_name',  $_selectedAddress);
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Milbo on March 07, 2017, 20:21:44 pm
I think that is a js issue with your template, or maybe some 3rd party plugin which uses js.
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Metabern1 on April 03, 2019, 19:58:40 pm
I am having similar issues with the multiple shipping address function.

1- In VM backend I am able to view additional shipping addresses, when I add a new one it doesn't save. Likewise edits to existing addresses do not save

2 - In VM Cart Frontend, If I click "add/edit shipment address" it doesn't show me a blank shipment, only if I change Postal/Zip does it create a new shipping address with this warning:

"Table userinfos check failed: address_type ST without name, autogenerated Delivery Address 8"

There is no way for me to delete an incorrect or old shipping address

In account maintenance, I cannot see shipping address at all and cannot edit it there.

Any suggestions?

J3.9.4 -VM 3.4.2
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Jörgen on April 03, 2019, 22:51:06 pm
Custom template issue ? Try with protostar.

Jörgen @ Kreativ Fotografi
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: jenkinhill on April 03, 2019, 23:10:39 pm
Maybe try updating to VM3.4.5 on a test copy of the site.  http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Metabern1 on April 04, 2019, 20:23:02 pm
In other forum threads they mention a shipto nickname. Would this be a VM Shopperfield I inadvertently deleted? If so, how could it be brought back?
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: jenkinhill on April 05, 2019, 10:25:54 am
Best to unpublish fields rather than delete them and then find you have problems. You could re-enter the shopper field, but probably quicker would be to simply re-install the VirtueMart component.
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Jörgen on April 05, 2019, 11:35:26 am
Try to add:

Shopper field:
Type: Text Field
Field Name: addr_type_name
Field title: COM_VIRTUEMART_USER_FORM_ADDRESS_LABEL

Jörgen @ Kreativ Fotografi
Title: Re: Cart "Ship To" address radio buttons don't update cart
Post by: Metabern1 on April 07, 2019, 15:07:29 pm
Thanks for the feedback and help. On further checking I disabled the "Nickname" field instead of deleting it. Republished and everything is working great. I can create/edit/delete additional address in backend.

I cannot delete addresses in frontend cart and cannot do anything with additional address in VM account maintenance page. Is there a way to have add/edit delete address functions available in frontend in both the cart and the accounts maintenance page?

Thanks again, cheers!