QuestionQ26

VerifiedCustomize Commerce features

An Adobe Commerce Architect must create a new customer-segment condition so that administrators can specify an “Average sales amount” condition for certain segments.

The Architect develops the custom condition under Vendor\Module\Model\Segment\Condition\AverageSalesAmount with all required elements:

Question Image

During testing, the following error occurs:

Question Image

What should the Architect do to resolve the issue?

Explanation

The condition option’s value must be the fully qualified class name of the custom condition Magento should create. Referencing Vendor\Module\Model\Segment\Condition\AverageSalesAmount matches the implemented class and prevents Magento from attempting to load the nonexistent Magento\CustomerSegment\Model\Segment\Condition\AverageSalesAmount class.

Community Discussion

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