AD0-E704 Adobe Certified Master - Magento Commerce Architect

Loading demo links...

Showing 4–6 of 10 questions

Question 4

You have a task to modify the grand total on the checkout page with a negative price adjustment which depends on the shipping address postcode. What are two approaches to be used in this case?

Select all that apply, then click Submit answer.

  • Create a new shopping cart price rule with a condition based on the shipping address postcode

  • Create a JavaScript mixin for the Magento_Checkout/ js /view /summary/,subtotal, change total there and Magento will submit the modified total when placing an order

  • Create a new total collector which adds a negative price adjustment based on the postcode

  • Create an observer on the event sales_quote_collect_totals_after, get the quote object, check the postcode and set the modified grand total into it

Question 5

While reviewing a module you found an upgrade script with the code:

What two actions will be done by the SalesSetup: :addAttribute method?

Select all that apply, then click Submit answer.

  • The custom_attribute added to the eav_attribute table

  • The custom_attribute IS added to the order_eav_attribute table

  • The sales_order_grid table is altered with a new field custom_attribute

  • The sales_ordor table is altered with a new field custom_attribute

Question 6

You are creating a module lo enable customers to attach an image file to the quote items while adding a product to the cart. To save development time, you want to build on top of functionality provided by the class \Magento\Catalog\Model\ImageUploader as much as possible.

The class constructor signature is:

What do you do to process the uploaded file?

Select an option, then click Submit answer.

  • Configure a plugin for the method \Magento\Catalog\Model\ImageUploader: moveFileFromTmp() in di. xml

  • Create a custom implementation because the catalog imageUploader can not be used to for files associated with quote items

  • Create a custom Class implementing \Magento\Catalog\Model\ImageUploaderInterface and add it to the $uploaders argument of the UploaderPoolinterface via di.xml

  • Configure a Virtual type based on \Magento\Catalog\Model\ImageUploader Specifying $baseTmpPath. $basePath and SallowedExtensions