Jump to content

how to create a new cart for a customer?


Recommended Posts

I need to know how you create a new cart for a customer automatically or at the push of a button. I tried inserting the required information in the _cart table but when a customer adds a product to their cart prestashop creates a brand new cart and totally disregards the cart that was made by my insert query.... How do I get prestashop to recognize the cart that was made by my query and not create a brand new cart? Also how do I detect wheter a customer has finished the checkout proccess with a cart?

Link to comment
Share on other sites

I need to know how you create a new cart for a customer automatically

As soon as a new visitor arrives to the shop a new cart is automatically created (even before anything is added to the cart), you do not need to do anything.

 

when a customer adds a product to their cart prestashop creates a brand new cart

No, the cart is already there (see above). Item is added to the existing cart.

 

How do I get prestashop to recognize the cart that was made by my query and not create a brand new cart?

By overriding a lot of PrestaShop core logic

 

Also how do I detect wheter a customer has finished the checkout proccess with a cart?

The cart will have a corresponding order

 

Marty Shue

Link to comment
Share on other sites

×
×
  • Create New...