7

The documentation for adjusters is here: https://craftcommerce.com/docs/adjusters and https://craftcommerce.com/docs/order-adjustment-model Essentially your plugin creates a class that fulfils the interface at: plugins/commerce/Commerce/Adjusters/Commerce_AdjusterInterface.php - which is very simple: interface Commerce_AdjusterInterface { /** * ...


3

That field type doesn’t currently exist, but it wouldn’t be hard to create it. Here’s the relevant code you’d need if you want to take a stab at it: use Craft; use craft\base\ElementInterface; use craft\commerce\models\Discount; use craft\commerce\Plugin as Commerce; // ... public function normalizeValue($value, ElementInterface $element = null) { if ...


3

What have you tried so far? The documentation seems to be missing, but looking at /craft/plugins/commerce/models/Commerce_DiscountModel.php you can find the properties purchaseQty and perItemDiscount that you need for the calculations. {% for prod in product.variants %} {% for discount in craft.commerce.discounts %} {% set totalPrice = (discount....


1

Best way to collate this sort of feedback or request is here, Steven: http://feedback.craftcms.com/forums/285221-feature-requests Let us know where you add it, so we can back it too... Hope it helps


1

Yes, I believe this is perfectly acceptable. As long as you are not pretending to be Craft CMS or Pixel & Tonic, then you shouldn’t run into any legal issues. They even made their brand assets available for use... https://craftcms.com/brand-assets If you still have questions, send an email to support@craftcms.com.


1

I don't think avoiding an adjuster or plugin approach here really gains you anything much and it probably creates potential issues - it will likely just make the discount rules confusing as you can't really document the special conditions anywhere on those rules etc (and experience shows over time editors are likely to forget the special conditions and make ...


1

Currently at Craft Commerce 1.1 this is not possible with the current discount engine. We would need to implement features like a min qty AND a max qty for the discount rules. It is on our radar. Fee free to vote for extended discount conditions features here: http://feedback.craftcms.com/forums/295386-commerce/filters/top


1

This issue has been solved. Craft Commerce discounts now have both a "minimum order qty" as well as a "maximum order qty" field. Discounts are no longer mixed up.


1

Not really a good answer as such but at the moment (June 16) there is currently no facility to print the actual price a particular item will sell at after all discounts/sales are applied (unless you calculate it yourself). This seems to me a bit of an oversight. I have requested it as a feature, and Luke seemed amenable to the idea but I have no idea on ...


Only top voted, non community-wiki answers of a minimum length are eligible