BitBagCommerce / SyliusVueStorefrontPlugin

Sylius plugin integrating Sylius with Vue Storefront
45 stars 24 forks source link

Updating quantity #87

Closed dperkosan closed 1 year ago

dperkosan commented 4 years ago

Hello, On changing quantity in cart, when "/api/cart/update?token=&cartId=xxxxxx" API end point is called immediately on every key-down (without delay), there is coming to inconsistency in the DB and calculation for cart is not correct. On your demo page (https://vsf.bitbag.shop/) it seems that you have delay of about 1,5 sec before calling /api/cart/update?token=&cartId=xxxxxx and there is no problem. How to handle it when calls are made one after another on VSF?

dperkosan commented 4 years ago

It seems this is Sylius problem. Basically, here is described same problem, but with different approach: https://github.com/Sylius/ShopApiPlugin/issues/640

ognjenTomic commented 4 years ago

HI, same issue here, is there an override on this problem?

PiotrSzymanski2000 commented 1 year ago

The current solution is deprecated as it was created for Vue Storefront v1. For Vue Storefront 2 integration check out our GraphQL-based integration - https://github.com/BitBagCommerce/SyliusVueStorefront2Plugin