[osCommerce] Different Registers Globals MOD problem

Discussions about MODs and Tips published on our web site.

[osCommerce] Different Registers Globals MOD problem

Postby KFrank » Wed Feb 27, 2008 1:57 pm

I have an oscmax cart. I put in the code for register globals and the problem I am having is when a customer logs in if they had a saved cart they can not see it yet it is still in the database. However if I change the following code in catalog/includes/functions/sessions about line 112 from the mod found here back to the original the cart shows back up. The code anywhere else does not seem to cause a problem with the cart.

Below is the mod code from here

Code: Select all
function tep_session_is_registered($variable) {
  if(isset($_SESSION[$variable])) {
    return true;
  } else {
    return false;
  }
}


Here is the original code that makes the cart for the customer show back up.

Thank you very much
Karen

Code: Select all
function tep_session_is_registered($variable) {
  return session_is_registered($variable);
}


Is it because I have customer groups. I am totally lost on this. I have someone else checking on it as well but I thought you may know since you had written the code. Do I need that part of the code since everything else seems to work. Our host is going to php5 and mysql 5 next week.
KFrank
 
Posts: 1
Joined: Wed Feb 27, 2008 6:01 am

Re: Different Registers Globals mod problem

Postby ~J~ » Wed Feb 27, 2008 2:19 pm

It looks like there is a problem with other changes you have made.
Please bear in mind, this MOD is for osCommerce, not osCMax.
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe


Return to MODs and Tips Support

Who is online

Users browsing this forum: No registered users and 1 guest