News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Changing customer address in cart not saved.

Started by WebStuff, June 17, 2015, 20:01:18 PM

Previous topic - Next topic

WebStuff

Joomla 3.4.1
VirtueMart 3.0.8

This may be more of a feature request but I consider it a bug as it stops my store working as I'd like.
I've found a problem with the cart on checkout if the customer logs in and has a couple of addresses stored for shipping and chooses one then decides to go back to default or use one of the other ones there is no way to update the cart at the moment.
Unless you go to the Add/Edit address page and you still can't choose the default same as billing from there so the ship to address isn't updated.

I've added a quick fix to my page but thought I'd share in case it is any use to anyone.

In default_address.php change line 82 to 84:
} else if(!empty($this->cart->lists['shipTo'])){
echo $this->cart->lists['shipTo'];
}

to read:
} else if(!empty($this->cart->lists['shipTo'])){
echo $this->cart->lists['shipTo'];?>
<button name="updatecart" class="btn" type="submit"><?php echo vmText::_('CHANGE TO THIS ADDRESS'); ?></button>
<?php }


This adds a button to update the cart with the new choice of address so that shipment plugins can pick it up.
As per the attached picture.

Hope this helps someone or can be incorporated into VM.

AH

Try latest version 3.0.9.4

The page will refresh when the shipto address selection is changed
Regards
A

Joomla 4.4.5
php 8.1

WebStuff

Quote from: Hutson on June 17, 2015, 22:21:40 PM
Try latest version 3.0.9.4

The page will refresh when the shipto address selection is changed
Thanks Hutson I will try it on my test system.