Jump to content

Como hacer la función inversa de add to cart?, es decir, quitar una unidad al carrito..

Recommended Posts

Estimados, quisiera obtener ayuda con este tema, si es que esta funcion ya existe, o habria que crearla..

<form action="{$urls.pages.cart}" method="post">
        <input type="hidden" name="token" value="{$static_token}">
        <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id">
        <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id">
        <span data-button-action="add-to-cart" class="cart_icon_fixed"><i class="fa fa-plus" aria-hidden="true"></i></span>

supongo que en el data-button-action debe hacer algun 'remove-from-cart' o algo parecido..

Desde ya muchas gracias!

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...