Keeping best practi...
 
Notifications
Clear all

Keeping best practices in mind, what is a correct way to accomplish this?

1 Posts
1 Users
0 Likes
88 Views
(@rickielewis)
Posts: 713
Noble Member
Topic starter
 

An Adobe Commerce architect is asked to implement a 15% surcharge for all users from a Wholesale' customer group.

Keeping best practices in mind, what is a correct way to accomplish this?

  • A . Create a Cart Price Rule that applies only to the "Wholesale’ group. Specify no conditions for the rule, and in the Actions section, specify for the rule to apply a "Percent of product price discount", with the Discount Amount' field set to -15.
    B. Create an Observer to the catalog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so. retrieve the product from the $product->setEvent() data and call
    4product->set0ata('final_price',   $product->getData('final_price") ‘’ 1.15) .
    C. Declare a new total collector class to calculate the modified total if the current user is in the group, register it in the module's etc/sales.xml file, modify the checkout_cart_index.xml and checkout_index_index.xml layouts to include a new child in the totals block.

Show Answer Hide Answer

Suggested Answer: C
 
Posted : 01/02/2023 3:39 am
Topic Tags

Latest Adobe AD0-E704 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: