Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Allow Only Last Item In Cart

Описание

This Plugin gives you the functionality when the user clicks on Add to Cart button it will clear all previous cart data entirely and add new cart data, only allow one product purchase at a time.

Установка

Upload the allow_only_last_item_in_cart plugin to your plugin directory, activate it

For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.

e.g.

  1. Upload allow_only_last_item_in_cart.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php do_action('allow_only_last_item_in_cart'); ?> in your templates

A few notes about the sections above:

  • «Contributors» is a comma separated list of wordpress.org usernames
  • «Tags» is a comma separated list of tags that apply to the plugin
  • «Requires at least» is the lowest version that the plugin will work on
  • «Tested up to» is the highest version that you’ve successfully used to test the plugin. Note that it might work on
    higher versions… this is just the highest one you’ve verified.
  • Stable tag should indicate the Subversion «tag» of the latest stable version, or «trunk,» if you use /trunk/ for
    stable.

    Note that the readme.txt of the stable tag is the one that is considered the defining one for the plugin, so
    if the /trunk/readme.txt file says that the stable tag is 4.3, then it is /tags/4.3/readme.txt that’ll be used
    for displaying information about the plugin. In this situation, the only thing considered from the trunk readme.txt
    is the stable tag pointer. Thus, if you develop in trunk, you can update the trunk readme.txt to reflect changes in
    your in-development version, without having that information incorrectly disclosed about the current stable version
    that lacks those changes — as long as the trunk’s readme.txt points to the correct stable tag.

    If no stable tag is provided, it is assumed that trunk is stable, but you should specify «trunk» if that’s where
    you put the stable version, in order to eliminate any doubt.

Отзывы

Посмотреть все 4 отзыва

Участники и разработчики

«Allow Only Last Item In Cart» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Allow Only Last Item In Cart» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0

  • A change since the previous version.
  • Another change.

0.5

  • List versions from most recent at top to oldest at bottom.