2

I changed location product tabs. In first tab I added "Custom tab (oferty)". But when I open product then first is displayed szczegóły (en: details).

Any one know how to display first after open product page first tab "oferty" ?

enter image description here

1 Answer 1

0

Edit or create your custom

app/design/frontend/<Vendor>/<Theme>/Magento_Catalog/layout/catalog_product_view.xml

And add order priority attribute to blocks

<arguments> <argument name="priority" xsi:type="string">2</argument> </arguments>

If this not work try with this outside product.info.details

Use reference container

<referenceBlock name="szczegoly" template="product/view/custom_template.phtml" > <arguments><argument name="priority" xsi:type="string">1</argument></arguments> </referenceBlock>  <referenceBlock name="oferty" template="product/view/attribute.phtml" > <arguments><argument name="priority" xsi:type="string">2</argument></arguments> </referenceBlock>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.