Page 1 of 1

[osCommerce] Different Registers Globals MOD problem

Posted: Wed Feb 27, 2008 2:57 pm
by KFrank
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.

Re: Different Registers Globals mod problem

Posted: Wed Feb 27, 2008 3:19 pm
by inveo
It looks like there is a problem with other changes you have made.
Please bear in mind, this MOD is for osCommerce, not osCMax.

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
Join our support forum » Pre-Sales Questions »
Featured Testimonials

AWESOME! Worked like a charm. I now understand why you used the word Magic in its name. Quick, easy, painless, gets the job done, and beautiful. Thanks a Million for creating this fantastic tool and for the quick excellent support.

Mohammad, the owner of TradersCity

Skeptical at first as I am with all new purchases that can dramatically effect traffic, but this one comes highly recommended. And not just for the product, the support is second to none and all issues are dealt with politely and efficiently. Top Marks!

Phillip, the owner of Sexy Ladies Fancy Dress Costumes

More Testimonials »