ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - AD0-E716 discussion

Report
Export

An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a 'Wholesale' customer group. Keeping best practices in mind, what is a correct to accomplish this?

A.
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.
Answers
A.
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.
B.
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.
Answers
B.
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.
C.
Create an Observer to the cataiog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so, retrieve the product from the $observer->getEventC) data and Call $product->setData('final_price', $product->getData( 'final_price') * 1.15).
Answers
C.
Create an Observer to the cataiog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so, retrieve the product from the $observer->getEventC) data and Call $product->setData('final_price', $product->getData( 'final_price') * 1.15).
Suggested answer: C

Explanation:

The possible reason why the payment method is missing in the admin is that in the module config.xml, the node can_use_internal was not set to true. This node determines whether the payment method can be used in the admin area or not. If it is set to false or omitted, the payment method will not be available for admin orders. To enable the payment method for admin use only, the node can_use_internal should be set to true and the node can_use_checkout should be set to false. Verified

Reference: [Magento 2.4 DevDocs] [Magento Stack Exchange]

asked 02/10/2024
Nomandla Asiya
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first