Thibauld V Posted July 27, 2018 Share Posted July 27, 2018 Good morning everyone ! I have Prestashop 1.6.1.18 and I would to make, in the file override classe file Cart.php, a SQL request with the id of the cart. But when I write $this->id in the override file Cart.php, the variable in empty. Had anyone know what is going wrong ? Link to comment Share on other sites More sharing options...
Thibauld V Posted July 30, 2018 Author Share Posted July 30, 2018 (edited) I did this and it still doesn't work. I have created a new cart object ($cart=new Cart();) in my Cart.php override. And when I ask for his id ($cart->id_cart or $cart->id), I have an empty result. [Edit] In fact I wasn't using doing the right call of the my new cart objet. My problem is solved, thank you ! Edited July 30, 2018 by Thibauld V (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now