update order

This commit is contained in:
2026-06-28 11:35:13 +03:30
parent 9e8a1d4c93
commit 937c829e48
15 changed files with 164 additions and 40 deletions
@@ -153,6 +153,15 @@ export class CartService {
return cart;
}
/**
* Increment item quantity in cart by product purchase step
*/
async incrementItemByStep(userId: string, shopId: string, variantId: string): Promise<Cart> {
const cart = await this.getOrCreateCart(userId, shopId);
await this.itemService.incrementByStep(cart, variantId, shopId);
return this.recalculateAndSaveCart(cart);
}
/**
* Increment item quantity in cart
*/