Commerce Promo https://michalak.world/ en Drupal 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 property="schema:name" class="field field--name-title field--type-string field--label-hidden">Drupal 8 Commerce Promotions - Buy X or more of the same product and get % off that order item</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/u/1" typeof="schema:Person" property="schema:name" datatype="">useradmin</span></span> <span property="schema:dateCreated" content="2019-07-31T10:21:21+00:00" class="field field--name-created field--type-created field--label-hidden">Wed, 07/31/2019 - 05:21</span> <div class="field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img property="schema:image" src="/sites/default/files/2019-07/promotions.jpg" width="4053" height="2697" alt="Drupal coupon Drupal promotions" title="Girl with phone and coupon" typeof="foaf:Image" /> </div> </div> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div property="schema:text" 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 rel="schema:comment" class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=73&amp;2=comment&amp;3=comment" token="7FycrUQswYBd0O_Ooie4CmmRDBiCYg9EsoCa7NQwC44"></drupal-render-placeholder> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li property="schema:about" resource="/tag/commerce-promo"><div about="/tag/commerce-promo" typeof="schema:Thing" id="taxonomy-term-24" class="taxonomy-term vocabulary-tags"> <h2><a href="/tag/commerce-promo"> <div property="schema:name" class="field field--name-name field--type-string field--label-hidden field__item">Commerce Promo</div> </a></h2> <span property="schema:name" content="Commerce Promo" class="rdf-meta hidden"></span> <div class="content"> </div> </div> </li> <li property="schema:about" resource="/tag/drupal-8"><div about="/tag/drupal-8" typeof="schema:Thing" id="taxonomy-term-11" class="taxonomy-term vocabulary-tags"> <h2><a href="/tag/drupal-8"> <div property="schema:name" class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> <span property="schema:name" content="Drupal 8" class="rdf-meta hidden"></span> <div class="content"> </div> </div> </li> <li property="schema:about" resource="/tag/drupal-commerce"><div about="/tag/drupal-commerce" typeof="schema:Thing" id="taxonomy-term-4" class="taxonomy-term vocabulary-tags"> <h2><a href="/tag/drupal-commerce"> <div property="schema:name" class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> <span property="schema:name" content="Drupal Commerce" class="rdf-meta hidden"></span> <div class="content"> </div> </div> </li> <li property="schema:about" resource="/tag/drupal-development"><div about="/tag/drupal-development" typeof="schema:Thing" id="taxonomy-term-3" class="taxonomy-term vocabulary-tags"> <h2><a href="/tag/drupal-development"> <div property="schema:name" class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> <span property="schema:name" content="Drupal Development" class="rdf-meta hidden"></span> <div class="content"> </div> </div> </li> </ul> </div> Wed, 31 Jul 2019 10:21:21 +0000 useradmin 73 at https://michalak.world