Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3222 by andreas.allacher
19 Aug 2016, 20:32
Hi,

I have special limits to my basket that I can only order in increments of 6 (however, not per product but over all products).
From what I can see the default BasketLimits is not able to solve this.
However, am I correct that I only have to create a own Plugin like BasketLimits - probably easiest by copying BasketLimits - and modify it accordingly and then configure it in the backend according to my settings?

In that regard, my delivery costs also depend upon, how many items have been ordered, I guess there is a similar plugin I can create or use?
I guess it would be one similar to the "Free shipping above threshold" plugin?
#3234 by aimeos
20 Aug 2016, 15:34
Yes, basket plugins allow you to enforce every limitation you can implement or change the basket content to whatever you need.

You can extend the "Costs" service decorator and add the price per item as configuration:
https://github.com/aimeos/aimeos-core/blob/master/lib/mshoplib/src/MShop/Service/Provider/Decorator/Costs.php
If you are able to open a pull request for this change, we will happily merge it into the core :-)