Project Home
Manuals
Contact Us
Download
Demo
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
AbanteCart v
1.3.4
is released.
Home
Help
Search
Calendar
Login
Register
AbanteCart Community
»
Shopping Cart Operations
»
Support
»
How can i get the customer_id in cart.php
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can i get the customer_id in cart.php (Read 2697 times)
Claudio Garcia
Newbie
Posts: 35
Karma: +7/-0
How can i get the customer_id in cart.php
«
on:
October 21, 2019, 03:58:56 PM »
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
Logged
Sam_78
Sr. Member
Posts: 270
Karma: +42/-1
Re: How can i get the customer_id in cart.php
«
Reply #1 on:
October 21, 2019, 04:33:23 PM »
\storefront\controller\pages\checkout\cart.php
Logged
Claudio Garcia
Newbie
Posts: 35
Karma: +7/-0
Re: How can i get the customer_id in cart.php
«
Reply #2 on:
October 21, 2019, 06:54:44 PM »
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]
Logged
Claudio Garcia
Newbie
Posts: 35
Karma: +7/-0
Re: How can i get the customer_id in cart.php
«
Reply #3 on:
October 28, 2019, 04:24:17 PM »
I will answer to myself
The right instruction is:
Code:
[Select]
(int)$this->customer->getId()
«
Last Edit: October 28, 2019, 04:27:38 PM by Claudio Garcia
»
Logged
Print
Pages: [
1
]
« previous
next »
AbanteCart Community
»
Shopping Cart Operations
»
Support
»
How can i get the customer_id in cart.php
Powered by SMFPacks Social Login Mod