Commerce Promo
https://michalak.world/
enDrupal 8 Commerce Promotions - Buy X or more of the same product and get % off that order item
https://michalak.world/article/drupal-8-commerce-promotions-buy-x-or-more-same-product-and-get-order-item
<span>Drupal 8 Commerce Promotions - Buy X or more of the same product and get % off that order item</span>
<span><span>useradmin</span></span>
<span>Wed, 07/31/2019 - 05:21</span>
<div class="primary-image field field--name-field-image field--type-image field--label-above">
<div class="field__label">Image</div>
<div class="field__item"> <img loading="lazy" src="/sites/default/files/2019-07/promotions.jpg" width="4053" height="2697" alt="Drupal coupon Drupal promotions" title="Girl with phone and coupon" />
</div>
</div>
<div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above">
<div class="field__label">Body</div>
<div class="field__item"><p>Currently "Buy X and Get Y" discount is only related to the whole order and not at the order item level. </p>
<p>I needed order item level discounts. e.g. buy 10 or more of the same product and get 10% off that order item. </p>
<p>The new promotion will only discount at the order item level for order items with a quantity of 10 or more.</p>
<p>Example - Buy 10 or more and get a 10% discount.<br />
Order Item 1 - Quantity of 5 - No Discount<br />
Order Item 2 - Quantity of 11 - 10% off discount<br />
Order item 3 - Quantity of 10 - 10% off discount<br />
Order Item 4 - Quantity of 1 - No Discount</p>
<p>I have created a patch for this type of discount. The discount is labeled: "Buy X per order item get a percentage off." The new promotion only allows only for a percentage off discount and does not include a fixed amount discount. </p>
<p>Drupal Commerce Issue Queue: https://www.drupal.org/project/commerce/issues/3066724</p></div>
</div>
<section data-drupal-selector="comments" class="comments">
<h2 class="comments__title">Comments</h2>
<div class="add-comment">
<div class="add-comment__form">
<drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&1=73&2=comment&3=comment" token="7FycrUQswYBd0O_Ooie4CmmRDBiCYg9EsoCa7NQwC44"></drupal-render-placeholder>
</div>
</div>
</section>
<div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags">
<h3 class="field__label field--tags__label">Tags</h3>
<ul class="links field__items field--tags__items">
<li class="field--tags__item"><div>
<h2><a href="/tag/commerce-promo">
<div class="field field--name-name field--type-string field--label-hidden field__item">Commerce Promo</div>
</a></h2>
</div>
</li>
<li class="field--tags__item"><div>
<h2><a href="/tag/drupal-8">
<div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div>
</a></h2>
</div>
</li>
<li class="field--tags__item"><div>
<h2><a href="/tag/drupal-commerce">
<div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div>
</a></h2>
</div>
</li>
<li class="field--tags__item"><div>
<h2><a href="/tag/drupal-development">
<div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div>
</a></h2>
</div>
</li>
</ul>
</div>
Wed, 31 Jul 2019 10:21:21 +0000useradmin73 at https://michalak.worldhttps://michalak.world/article/drupal-8-commerce-promotions-buy-x-or-more-same-product-and-get-order-item#comments