Allow Only 1 Product in Cart

वर्णन

This plugin ensures that users can only purchase one product at a time.
When a logged-in user clicks the “Add to Cart” button, any existing cart content is cleared — allowing only the new product to remain.

Perfect for scenarios like bookings, appointments, or exclusive product sales where only one item should be bought per order.

Note: This plugin works only for logged-in users. Guest users are not affected.

स्थापना

  1. Upload the allow-only-1-product-in-cart folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Done! The plugin will now enforce one product per cart.

नेहमी विचारले जाणारे प्रश्न

Q: Will it work with variable or grouped products?

A: Yes, the plugin works with all product types by clearing the cart before any product is added.

Q: Does it work for guest users?

A: No, this plugin only works for logged-in users. Guest users are not affected.

समीक्षा

फेब्रुवारी 4, 2022
Amazing plugin to have just 1 product in cart
मे 24, 2021
Hello There Thanks for this plugin it was amazing and the logic is completely amazing I am using this plugin on my site Relevant and Better!!
सर्व 9 पुनरावलोकने वाचा

योगदानकर्ते आणि विकसक

“Allow Only 1 Product in Cart” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत योगदान केले आहे.

योगदानकर्ते

भाषांतर करा “Allow Only 1 Product in Cart” तुमच्या भाषेत.

विकासातील आग्रह?

कोड ब्राउझ करा, SVN संग्रहालय तपासा, किंवा विकास लॉग च्या RSS द्वारे सदस्यता घ्या.

बदलांची यादी

1.2

  • Added internationalization support (i18n).

1.1

  • Minor code changes.

1.0.0

  • Initial release.