Question 6

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?
Response:
  • Question 7

    An Adobe Commerce Developer needs to move the block "BLOCK-NAME" to the bottom of the homepage. Which XML snippet should be used?
    Response:
  • Question 8

    An Adobe Commerce Developer needs to embed inline script in a .phtml template for a project where Content Security Policy (CSP) strict mode is enabled on all pages. Which snippet should the Developer use to execute inline JavaScript without console errors?
    Response:
  • Question 9

    After a search engine optimization (SEO) audit, the agency requests to change all anchor links from the following format:
    <a href="sample-link">Sample Link</a>
    to a JavaScript-based solution which would allow to use <span> attributes instead <a> Which snippet will achieve this goal?
    Response:
  • Question 10

    A developer is working on a custom theme and wants to compile LESS files on-the-fly during development. Which Grunt command should they run to watch for changes and automatically compile the LESS files?
    Response: