Jump to content

Se puede eliminar productos del carrito a través del api webservice ?


Recommended Posts

Hola @Freddy Castillo

No he usado nunca el API de Prestashop pero si te puedo decir que para alterar el contenido de un carro ya sea añadiendo, modificando productos o cantidades de estos siempre he tenido que usar update. En particular uso el método updateQty de Cart:

 // Añadimos el producto al carrito
            $updateQuantity = $cart->updateQty((int)($qtyToAdd), (int)$productToAdd, (int)$attrToAdd, false);

Supongo que se hará igual por webService, eliminando las unidades del producto que deseas sacar del carro.

Espero te sirva.

  • Like 1
  • Thanks 1
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...