QuestionQ16

Catalog and Products

An Adobe Commerce Architect is preparing a sales campaign to introduce a new product on the site that enables customers to purchase a predefined set of products at a discount. Each product in the set must retain its own stock and tax class.

A requirement is to use a third-party reporting system with the REST API to retrieve the following data:

  • SKU
  • Qty
  • Original price
  • Sales price
  • Tax amount

Which solution should the Architect use to satisfy these requirements?

  • A Create Fixed Bundle Product for gathering simple products;Manage price for every selected option;Add extension attribute original_simple_price for \Magento\Sales\Api\Data\OrderItemExtensionInterface and populate value with price of simple product;
  • B Create Dynamic Bundle Product for gathering simple products;Utilize Content Staging to manage special prices for bundle products on time for the campaign;Expose required data via Adobe Commerce Order API;
  • C Create Grouped Product and create after plugin on \Magento\GroupedProduct\Model\Product\Type\Grouped::prepareForCartAdvanced for bunch products ordering;Utilize Content Staging to manage special prices on time for the campaign for simple products;Expose required data via Adobe Commerce Order API;
Explanation

A dynamically priced bundle uses the prices of its component products, determines tax for each bundle item, and retains inventory at the individual product level. Bundle special pricing is percentage-based and can be scheduled for a campaign with Content Staging. The Adobe Commerce order REST response includes order-item fields for sku, qty_ordered, original_price, price, and tax_amount, so the required reporting data is available without a custom extension attribute or checkout customization.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!