Jump to content

[SOLVED] Add to Cart: $ this->id in Cart.php is zero!


Recommended Posts

hello there,

I have an unexpected error:

When I add to the basket, it's not working. The animation in jQuery is done, but nothing more.

Debugging, I saw this:

- In the updateQt() function $this>id is set to zero. Obviously, the addition in the basket does not working.

An idea please?

Thank you
Fabrice

Link to comment
Share on other sites

It was a typing error in /classes/Cart.php:

 $ fields ['bon _cadeau'] = psql ($ this-> bon_cadeau) [/ code]
instead of

[Code] $ fields ['bon_cadeau'] = psql ($ this-> bon_cadeau) [/ code]

Hard to see;), particularly because I had no message in the logs: (


Fabrice.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...