E-commerce

Doing this for a particular order is pretty straightforward. All you need to have is the ID of the coupon code: // This is the ID of the coupon code you want to add to the order. $coupon_id = 1; /** @var \Drupal\commerce_order\Entity\OrderInterface $order */ $order = \Drupal\commerce_order\Entity\Order::load(1); $order->get('coupons')->appendItem($coupon_id); $order->save()...
Most e-commerce platforms support offering multiple product variations on a single product display page. These variations are often differentiated by named attributes, e.g. size, colour, etc. In Drupal Commerce, we support all of this through Product and ProductVariation entities paired with ProductAttribute and ProductAttributeValue entities that define those differentiating attributes...

Before it was a ticket. Now it's a prompt.

Does your Drupal leak?

Tell me what you are working on and what worries you. I'll reply personally and, if I'm not the right person, I'll tell you too.