You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a customer tries to add an out of stock product, application just stays still.
When you check in network calls the addToCart method return 400 error.
Ideally add to cart button should be disabled with "Out of Stock" label.
Could you pls help me with API that returns quantity of inventory on Product-Details page.
error: Variant with id: variant_01HHZ6GWTHB4BS58R3CDWPVDJ5 does not have the required inventory Error: Variant with id: variant_01HHZ6GWTHB4BS58R3CDWPVDJ5 does not have the required inventory at CartService.<anonymous> (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:865:55) at step (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:59:23) at Object.next (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:40:53) at fulfilled (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:31:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'not_allowed', code: 'insufficient_inventory', date: 2023-12-19T19:32:49.599Z }
The text was updated successfully, but these errors were encountered:
When a customer tries to add an out of stock product, application just stays still.
When you check in network calls the addToCart method return 400 error.
Ideally add to cart button should be disabled with "Out of Stock" label.
Could you pls help me with API that returns quantity of inventory on Product-Details page.
error: Variant with id: variant_01HHZ6GWTHB4BS58R3CDWPVDJ5 does not have the required inventory Error: Variant with id: variant_01HHZ6GWTHB4BS58R3CDWPVDJ5 does not have the required inventory at CartService.<anonymous> (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:865:55) at step (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:59:23) at Object.next (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:40:53) at fulfilled (/Users/tech/admin/node_modules/@medusajs/medusa/dist/services/cart.js:31:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'not_allowed', code: 'insufficient_inventory', date: 2023-12-19T19:32:49.599Z }
The text was updated successfully, but these errors were encountered: