update order
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user