Jump to content

How To take "id_customer" value of current login user


Recommended Posts

Friends I am doing a new Tax system , not

use Existing one of prestashop. I will tell more abt later ... Friend
now 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 need
same in the calculation
function getPriceStatic() in class/Product.php ... I need user_id of
current 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

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

×
×
  • Create New...