Описание
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.
Установка
- Upload the
allow-only-1-product-in-cartfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- 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.
Отзывы
Участники и разработчики
«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.
