/
ProductHighlights (optional)
optional
ProductHighlights (optional)
https://github.com/magesuite/product-highlights
This module displays highlights (usually the short_description attribute) on PDP’s buybox.
Installation
This module is optional.
composer require "creativestyle/magesuite-product-highlights" ^1.0.0
Admin settings
There are no admin settings for the module, the functionality is enabled by default when installed.
Backend
In progress
Frontend
On the frontend a new template is added to product.info.main.highlights
container, which is located in the buybox, on product pages:
<referenceContainer name="product.info.main.highlights">
<block class="MageSuite\ProductHighlights\Block\Highlights" name="product.info.highlights"/>
</referenceContainer>
By default, the block uses the product's short_description
attribute to display its content.
It is possible to change the default attribute which will be used, you can add an additional argument:
<block class="MageSuite\ProductHighlights\Block\Highlights" name="product.info.highlights">
<arguments>
<argument name="attributes_list" xsi:type="string">description</argument>
</arguments>
</block>
or set of attributes:
<block class="MageSuite\ProductHighlights\Block\Highlights" name="product.info.highlights">
<arguments>
<argument name="attributes_list" xsi:type="array">
<item name="short_description" xsi:type="string">short_description</item>
<item name="description" xsi:type="string">description</item>
</argument>
</arguments>
</block>
Usually projects use standard Magento attribute template to display shortDescription in buybox.
<block class="Magento\Catalog\Block\Product\View\Description" name="product.custom.highlights" template="Magento_Catalog::product/view/attribute.phtml">
<arguments>
<argument name="at_call" xsi:type="string">getShortDescription</argument>
<argument name="at_code" xsi:type="string">short_description</argument>
<argument name="css_class" xsi:type="string">overview</argument>
<argument name="at_label" xsi:type="string">none</argument>
<argument name="title" translate="true" xsi:type="string">Overview</argument>
<argument name="add_attribute" xsi:type="string">itemprop="description"</argument>
</arguments>
</block>
or move existing block:
<move element="product.info.overview" destination="product.info.main.section.essentials" after="page.main.title" />
, multiple selections available,
Related content
ProductSymbols (optional)
ProductSymbols (optional)
Read with this
ProductVariants (optional)
ProductVariants (optional)
Read with this
ProductNavigation (optional)
ProductNavigation (optional)
Read with this
Buybox related products (optional)
Buybox related products (optional)
Read with this
Product details
Product details
More like this
CatalogRuleRestApi (optional)
CatalogRuleRestApi (optional)
Read with this