News:

Looking for documentation? Take a look on our wiki

Main Menu

How to reload cart page after save payment/shipping?

Started by WebMercher, March 08, 2013, 02:21:56 AM

Previous topic - Next topic

WebMercher

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

PRO

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

WebMercher

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.

PRO

when you save shipping and payment. then it goes to the cart page.

it doesnt show then?

WebMercher

correct, it goes to the cart page but does not show unless you click on a cart link to refresh the page

PRO

what version are you using? are you using template overrides?

are you using a 3rd party sef component?


WebMercher

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

PRO



PRO

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

WebMercher

same happens with beez yes

turn sef off and it works

PRO

why dont you give me a test account, I am not going to create an account to look

WebMercher

sure, thanks,
just sent you login info via PM

one for front end testing and one admin account

PRO

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.


WebMercher

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.