Skip to main content
added 3 characters in body
Source Link
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137

you can position the with before="account" or after="account"

<referenceBlock name="topname="header.links">           
      <block class="Magento\Framework\View\Element\Html\Link\Current" name="cart" before="account">
                <arguments>
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          
                </arguments>            
      </block> 
</referenceBlock>

you can position the with before="account" or after="account"

<referenceBlock name="top.links">           
      <block class="Magento\Framework\View\Element\Html\Link\Current" name="cart" before="account">
                <arguments>
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          
                </arguments>            
      </block> 
</referenceBlock>

you can position the with before="account" or after="account"

<referenceBlock name="header.links">           
      <block class="Magento\Framework\View\Element\Html\Link\Current" name="cart" before="account">
                <arguments>
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          
                </arguments>            
      </block> 
</referenceBlock>
Source Link
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137

you can position the with before="account" or after="account"

<referenceBlock name="top.links">           
      <block class="Magento\Framework\View\Element\Html\Link\Current" name="cart" before="account">
                <arguments>
                 <argument name="label" xsi:type="string">Cart</argument>
                <argument name="path" xsi:type="string">checkout/cart</argument>          
                </arguments>            
      </block> 
</referenceBlock>