News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

How can i get the customer_id in cart.php

Started by Claudio Garcia, October 21, 2019, 03:58:56 PM

Previous topic - Next topic

Claudio Garcia

I need to do a validation and want to know how can i get the customer_id from user who is in the cart processing an order.

Thanks

Sam_78

\storefront\controller\pages\checkout\cart.php

Claudio Garcia

Hi Sam

I am in: \storefront\controller\pages\checkout\cart.php

But i dont know how to call customer_id, how to assign the value to a variable, for example:

$customerid = $this.order[customer_id]

Claudio Garcia

#3
I will answer to myself

The right instruction is:

(int)$this->customer->getId()

Forum Rules Code of conduct
AbanteCart.com 2010 -