VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: WebMercher on February 25, 2013, 06:27:29 AM

Title: Select shipping & payment does not update on cart until refresh.
Post by: WebMercher on February 25, 2013, 06:27:29 AM
Hello all, have a checkout problem with saving payment and shipping. If anyone can help, please advise.

Joomla! 2.5.9
VM 2.0.18a

Customer view: Customer has to save settings twice before they can see the changes.

The customer chooses shipping or payment method and saves but sees "No shipment selected"  or "No payment selected", which makes them think the data is not saved so they do it again and see that it now shows up.  Simply clicking on the View cart link to refresh the page does the same thing; it shows the updated shipping or payment without saving it twice.

So, When saving "Change Shipment" or  "Change Payment", the data is updated in the database but not updated on the cart page until you refresh it (click on cart button again.). 

Is there a refresh code I can use to fix this or is this a configuration/menu conflict?

Thank you
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: Peter Pillen on February 25, 2013, 10:29:27 AM
do you have cache enabled?
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: WebMercher on February 25, 2013, 14:22:02 PM
P2 Peter,
Thank you for the response, no, i have it set like another site i have, no cache.
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: Peter Pillen on February 26, 2013, 22:38:14 PM
maybe check your backend configuration of the virtuemart shop.

virtuemart > configuration > tab "template" has a checkbox to use the page scripts to update your cart automatically. Maybe this one is disabled. It could be another script that is missing.
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: WebMercher on February 26, 2013, 22:56:05 PM
Thanks for the reply, i have tried most combinations of enabled scripts.

Nothing seems to be conflicting, was working before with all defaults enabled.

If i could just find code to refresh the page after saving, then all would be wonderful.
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: Peter Pillen on February 27, 2013, 18:23:46 PM
just put a piece of javascript in your template for example (http://www.quackit.com/javascript/javascript_refresh_page.cfm)

but it would be better to find the root cause of course
Title: Re: Select shipping & payment does not update on cart until refresh.
Post by: WebMercher on March 07, 2013, 08:14:21 AM
Thank you for the response, yes, trying to figure out how, either one.

Anyone have any ideas on how to fix this?