scandipwa / wishlist-graphql
N/A
2.0.17
2023-04-12 07:24 UTC
Requires
- magento/framework: *
- magento/module-catalog: *
- magento/module-catalog-graph-ql: *
- magento/module-catalog-inventory: *
- magento/module-configurable-product: *
- magento/module-customer: *
- magento/module-store: *
- magento/module-wishlist: *
- magento/module-wishlist-graph-ql: ^100.3
- scandipwa/performance: ^1.0
This package is auto-updated.
Last update: 2024-09-12 10:27:35 UTC
README
WishlistGraphQl 提供了额外的解析器以扩展 Magento_WishlistGraphQl 的购物车。
SaveWishlistItem
此端点允许保存购物车中的项目
mutation SaveWishlistItem($wishlistItem: WishlistItemInput!) { saveWishlistItem(wishlistItem: $wishlistItem) { id sku qty description added_at product } }
{ "wishlistItem": { "sku": "n31189077-1", "quantity": 2, "description": "Description", "product_option": { "extension_attributes": {} } } }
RemoveProductFromWishlist
此端点允许从购物车中移除项目
mutation RemoveProductFromWishlist($item_id: ID!) { removeProductFromWishlist(item_id: $item_id) }
{ "item_id": 1 }
MoveWishlistToCart
此端点允许将所有购物车项目移动到购物车
mutation MoveWishlistToCart { moveWishlistToCart() }
ClearWishlist
此端点允许清空购物车
mutation ClearWishlist { clearWishlist() }