Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

shopping_cart.php help.


Recommended Posts

I use the code below to check user group in shopping_cart.php (CLASS file)



$customersid_query = tep_db_query("select customers_group_id from " . TABLE_CUSTOMERS . " where customers_id = " . (int)$customer_id . "");

$customersid = tep_db_fetch_array($customersid_query);

echo 'ID is ' . $customersid['customers_group_id'];


I see that global $customer_id is defined in shopping_cart class file but whenever I test for ID output its always blank.


I've used this code on other pages that are not classes and it works fine.


I could possibly do the check on the non class shopping_cart.php file (in catalog/) but I'm not sure where it makes the call to the class. Any help is appreciated, Ive been at this issue for 2 weeks now.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...