Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AD0-E720 All Questions

View all questions & answers for the AD0-E720 exam

Exam AD0-E720 topic 1 question 11 discussion

Actual exam question from Adobe's AD0-E720
Question #: 11
Topic #: 1
[All AD0-E720 Questions]

An Adobe Commerce developer wants to override the template assigned to a block named existing.product.block. This relationship is defined in the catalog_product_view.xml layout in the Magento_Catalog module. They cannot simply override the file in their theme, as this change is part of a feature that is being released to the marketplace as a module called "Orange_CustomProduct".
The developer has already created the desired template at app/code/Orange/CustomProduct/view/frontend/templates/custom-product-block.phtml.
What can they add to app/code/Orange/CustomProduct/view/frontend/layout/catalog_product_view.xml in their module to accomplish this?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
DevTeat
5 months, 3 weeks ago
This XML code instructs Magento to set the template for the block named existing.product.block to the template file located at app/code/Orange/CustomProduct/view/frontend/templates/custom-product-block.phtml.
upvoted 1 times
...
DevTeat
5 months, 3 weeks ago
Selected Answer: C
To override the template assigned to the block named existing.product.block in the catalog_product_view.xml layout of the Magento_Catalog module within the Orange_CustomProduct module, the developer can add the following code to the catalog_product_view.xml file located in the module's layout directory:
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...