Anes Posted August 27, 2009 Share Posted August 27, 2009 Friends I am doing a new Tax system , not use Existing one of prestashop. I will tell more abt later ... Friendnow I have a problem , I need to take "id_customer" of current logined USER ... How it can take and I need same in the calculation page of shopping cart. pls help me I look all over but don't get a good idea ..... I needsame in the calculation function getPriceStatic() in class/Product.php ... I need user_id ofcurrent sign in user. How it can Take There .... pls give an answer ASAP... With bunch of thanks Anes P.A Link to comment Share on other sites More sharing options...
CYTechnologies Posted August 27, 2009 Share Posted August 27, 2009 If you look in the authentication file it seems its saved to: $cookie->id_customer :-) Link to comment Share on other sites More sharing options...
Anes Posted August 28, 2009 Author Share Posted August 28, 2009 Hello Friend, I use ur method but don't got, i need that value in classes/Product.php file ... How take same pls help bye anes Link to comment Share on other sites More sharing options...
Anes Posted August 28, 2009 Author Share Posted August 28, 2009 Hello Friend, I got id_user on page Classes/Product.php , for same I define a variable named VALUE and give Code like this $val = $cookie->id_customer; define("VALUE", $val); in file cart.php on root folder file .... then we can Refer that value in file Classes/Product.php .... Thanks For ur reply and support ... bye Anes Link to comment Share on other sites More sharing options...
Recommended Posts