Title: Allow Only Last Item In Cart
Author: Savan Dholu
Published: <strong>13. Juli 2021</strong>
Last modified: 8. November 2021

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://ps.w.org/allow-only-last-item-in-cart/assets/icon-128x128.png?rev=2563187)

# Allow Only Last Item In Cart

 Von [Savan Dholu](https://profiles.wordpress.org/savan91/)

[Herunterladen](https://downloads.wordpress.org/plugin/allow-only-last-item-in-cart.zip)

 * [Details](https://de.wordpress.org/plugins/allow-only-last-item-in-cart/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/allow-only-last-item-in-cart/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/allow-only-last-item-in-cart/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/allow-only-last-item-in-cart/#developers)

 [Support](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/)

## Beschreibung

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.

## Installation

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.

## Rezensionen

![](https://secure.gravatar.com/avatar/7c6d7e0f3bed3a1bbba3734561ae27ae35026d67a36a05a3c83e43c758a99a8b?
s=60&d=retro&r=g)

### 󠀁[An Amazing Plugin](https://wordpress.org/support/topic/an-amazing-plugin-33/)󠁿

 [Savan Dholu](https://profiles.wordpress.org/savan91/) 1. September 2021

Just added working automatically Relevant and Better!!

 [ Alle 4 Rezensionen lesen ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/)

## Mitwirkende und Entwickler

„Allow Only Last Item In Cart“ ist Open-Source-Software. Folgende Menschen haben
an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ Savan Dholu ](https://profiles.wordpress.org/savan91/)

[Übersetze „Allow Only Last Item In Cart“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/allow-only-last-item-in-cart)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/allow-only-last-item-in-cart/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/allow-only-last-item-in-cart/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/allow-only-last-item-in-cart/)
per [RSS](https://plugins.trac.wordpress.org/log/allow-only-last-item-in-cart/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.0

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

#### 0.5

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

## Meta

 *  Version **1.0.0**
 *  Zuletzt aktualisiert **vor 5 Jahren**
 *  Aktive Installationen **weniger als 10**
 *  WordPress-Version ** 5.7 oder höher **
 *  Getestet bis **5.7.20**
 *  PHP-Version ** 7.0 oder höher **
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/allow-only-last-item-in-cart/)
 * Schlagwörter
 * [comments](https://de.wordpress.org/plugins/tags/comments/)[spam](https://de.wordpress.org/plugins/tags/spam/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/allow-only-last-item-in-cart/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/reviews/)

## Mitwirkende

 *   [ Savan Dholu ](https://profiles.wordpress.org/savan91/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/allow-only-last-item-in-cart/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](https://www.virtualheight.com/)