VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: WebMercher on March 08, 2013, 02:21:56 AM

Title: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 08, 2013, 02:21:56 AM
Where can i load this code so that after i save payment/shipping the cart will reload/refresh?

or should i be using other code?

{
// reload page
header("Location: " . $_SERVER['PHP_SELF']);
}


thanks
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 09, 2013, 05:23:26 AM
Well, it seems as though you have customized the cart already right?

are you loading the shipping/payment in separate window?

and YES header location is not the right way

You should be using js
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 10, 2013, 10:10:35 AM
thank you kindly for the reply.
no customization problems, just not able to get the shipping and payment method to show unless the page is refreshed. Have been asking for answers on this in a variety of ways for a few weeks so I am trying a different solution. Many people have had the same problem but nobody seems to have answer.

when seo is off, everything works fine.

my solution is to just add a page refresh after the save when selecting shipping or payment method, just having a hard time figuring out where and how to put it in the code.
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 10, 2013, 14:41:42 PM
when you save shipping and payment. then it goes to the cart page.

it doesnt show then?
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 10, 2013, 14:53:19 PM
correct, it goes to the cart page but does not show unless you click on a cart link to refresh the page
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 10, 2013, 15:22:03 PM
what version are you using? are you using template overrides?

are you using a 3rd party sef component?

Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 10, 2013, 15:55:49 PM
no template overrides on checkout that i know of, tried using them for shipment/payment save refresh but could not get it to work so i deleted them.

Joomla! 2.5.9
Virtuemart 2.0.18a
Apache version    1.3.42
PHP version    5.3.17
MySQL version    5.1.68-cll

no third party SEF, its pretty much a simple install, not much in extras. tried turning off modules, etc, no change unless i turn off joomla sef
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 10, 2013, 17:46:29 PM
post your url
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 10, 2013, 19:59:50 PM
http://50.22.14.181/
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 10, 2013, 23:41:15 PM
have you tried with a regular joomla template? I see there are quite a few customization n that template.

especially how the vmprices.js is not loaded
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 11, 2013, 00:15:52 AM
same happens with beez yes

turn sef off and it works
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 11, 2013, 00:40:15 AM
why dont you give me a test account, I am not going to create an account to look
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 11, 2013, 00:52:35 AM
sure, thanks,
just sent you login info via PM

one for front end testing and one admin account
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 11, 2013, 01:26:55 AM
the problem probably lies in your config

I tried to login to administrator and it redirected to something

do you have something filled out for "var_live site"    in configuration.php ??

you have all kinds of "session" problems.

I have seen the cart not updated until I move to a new page etc.

Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 11, 2013, 02:25:51 AM
had a forward slash there, just now removed it.
"var_live site" is now empty.


Odd, i tried the admin login i gave you and works, at least on firefox.
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 11, 2013, 02:36:22 AM
may i ask what browser you were using?

removing the forward slash gives the error message that type of shipping/payment can not be found...
enabling it allows you to select an option again, so pardon the changes while you examine it, i put the slash back, will remove it or put what you think should be there, just let me know.
I will avoid making changes to files until you are done examining it, my apologies.
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 11, 2013, 12:33:42 PM
firefox

it redirects to dollarseed

& 404 not found


when i type in /administrator
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 18, 2013, 08:25:19 AM
Thank you for your help.

I could not replicate your error message.
After not getting actionable help for several weeks using the IP, I gave up and fixed it by copying a working site over and importing the database.
Then after that, changed the service to domains.

Still do not know what the problem was, perhaps someday the issue will be fixed/addressed properly by the developers.

Thanks again.
Title: Re: How to reload cart page after save payment/shipping?
Post by: PRO on March 22, 2013, 01:58:33 AM
Have u  tried without the suffix. .html.
Title: Re: How to reload cart page after save payment/shipping?
Post by: WebMercher on March 26, 2013, 08:28:37 AM
yes, made no difference.

I have the site working now with seo and suffix, as stated above, thank you for the help.