Hi,
I have only one item for all products and set the dropdown to show only available stock, but when a product is added to the cart, then readd it again, it will modify its price in the cart as you
can see on the attachment in subtotal.
This topic has 7 replies, 3 voices, and was last updated 2 days, 21 hours ago ago by Tony Rodriguez
Hi,
I have only one item for all products and set the dropdown to show only available stock, but when a product is added to the cart, then readd it again, it will modify its price in the cart as you
can see on the attachment in subtotal.
Hello @islam,
Please check it now. You have set only one value for the select option range, but it should be a range: https://gyazo.com/18c0065fd02e6211a90b0d30ee85e2d7. If you would like to use it as an input field, please set the type to “Input”: https://prnt.sc/ENPenNWZDMHh.
Best regards,
Jack Richardson
The 8Theme’s Team
Hi Jack,
Thanks for your support, the problem with the dropdown (default implementation) is that it doesn’t consider the available stock quantity!
I have only one item on the stock, and I expect when adding an item to the cart, its subtotal will not be updated if the customer re add it again.
Hello @islam,
You can perform a test using the default theme, such as Storefront, since the functionality for calculating stock items is provided by the WooCommerce plugin. Our theme scripts do not increase or decrease item quantities.
If you would like to allow certain items to be sold only once (https://prnt.sc/emKOxc3Qx5sn), please refer to the official WooCommerce documentation: https://wordpress.org/support/topic/i-need-to-strict-purchasing-a-product-to-one-per-order/.
Alternatively, you can set a specific stock quantity for your products: https://gyazo.com/34cd4db10a5a241cba8b393ee0a989a2/.
Best regards,
Jack Richardson
The 8Theme’s Team
Great thanks @Jack
Thanks for the support! My topic “Despite having one item for a product, it is allowed to add it multiple times!” has been successfully resolved.
Dear islam,
We really appreciate your time and engagement within the WordPress & WooCommerce community
Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.
Leave Feedback →
(takes less than a minute)
Your input makes a real difference.
Topic closed.
The 8Theme Team
The issue related to '‘Despite having one item for a product, it is allowed to add it multiple times!’' has been successfully resolved, and the topic is now closed for further responses