I want to move some attributes, but I don’t see any settings for this.

enter image description here


I would achieve it this way:

In your theme: Theme > Magento_Catalog > layout > catalog_product_view.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceContainer name="alert.urls">
            <block class="Magento\Catalog\Block\Product\View" name="your-attribute" before="product.price.tier" template="catalog/product/view/custom-template.phtml" />

Now, in your Theme > Magento_Catalog > tempaltes > catalog/product/view/custom-template.phtml

<?php $product = $block->getProduct();?>

<div class="">
   <?php echo $product->getData('my_attribute');?>

Then, for bottom attributes, I would hide/remove them from css or from backend config.

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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