Configure a custom template

To use your own template, configure the following layout:

  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
          <referenceContainer name="product.info.price">
              <block class="Magento\Framework\View\Element\Template"
                    name="blackbird.dynamicPrice.product.view.dynamicPrice"
                    template="Blackbird_DynamicPrice::product/view/dynamic-price.phtml"
                    after="product.price.final">
                  <arguments>
                      <argument name="viewModel" xsi:type="object">
                      Blackbird\DynamicPrice\ViewModel\ConfigDataProvider
                        argument>
                  arguments>
              block>
          referenceContainer>
      body>
  page>
loader
Loading...