Author Topic: Cart "Ship To" address radio buttons don't update cart  (Read 4401 times)

mronayne

  • Beginner
  • *
  • Posts: 45
Cart "Ship To" address radio buttons don't update cart
« 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
Send me a PM and I'll send you the login credentials for a user with 3 addresses to choose from...

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3252
  • VirtueMart Version: 3.8.4
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #1 on: February 22, 2015, 00:33:27 am »
Yes the developers are aware of this issue
regards
A

Joomla 3.9.20
php 7.3

mronayne

  • Beginner
  • *
  • Posts: 45
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #2 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

mronayne

  • Beginner
  • *
  • Posts: 45
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #3 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!

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3252
  • VirtueMart Version: 3.8.4
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #4 on: March 04, 2015, 20:41:41 pm »
This is actually a NEW feature

The devs are very good!
regards
A

Joomla 3.9.20
php 7.3

mronayne

  • Beginner
  • *
  • Posts: 45
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #5 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #6 on: March 09, 2015, 22:30:48 pm »
Thank you, found and fixed.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mronayne

  • Beginner
  • *
  • Posts: 45
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #7 on: March 09, 2015, 23:22:39 pm »
Thank you for such quick action... where can I see/get the fix?

Regards,
Mike

Adwans

  • Beginner
  • *
  • Posts: 49
  • Beginner+
  • VirtueMart Version: J! 3.9.16 / J!3.9.18 VM 3.6.10
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #8 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?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3252
  • VirtueMart Version: 3.8.4
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #9 on: March 06, 2017, 11:53:11 am »
You need to upgrade to the latest version of VM
regards
A

Joomla 3.9.20
php 7.3

Adwans

  • Beginner
  • *
  • Posts: 49
  • Beginner+
  • VirtueMart Version: J! 3.9.16 / J!3.9.18 VM 3.6.10
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #10 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...)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27799
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.19 PHP 7.3.18

Adwans

  • Beginner
  • *
  • Posts: 49
  • Beginner+
  • VirtueMart Version: J! 3.9.16 / J!3.9.18 VM 3.6.10
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #12 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:
  • addCheckRequiredJs() - missing? close to radio buttons html?
  • what about adding data-dynamic-update="1"? Could be helpful in the case?
  • How to do this, if yes? Because it is created in complicated way, a bit
  • Virtuemart.checkQuantity - is this function functioning?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3252
  • VirtueMart Version: 3.8.4
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #13 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.
regards
A

Joomla 3.9.20
php 7.3

Adwans

  • Beginner
  • *
  • Posts: 49
  • Beginner+
  • VirtueMart Version: J! 3.9.16 / J!3.9.18 VM 3.6.10
Re: Cart "Ship To" address radio buttons don't update cart
« Reply #14 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);