Skip to content

magento man

How to make checkbox toggle in product edit form

I add attribute to special product like this $eavSetup->addAttribute( Product::ENTITY, ‘dynamic_price’, [ ‘group’ => ‘Gift Card Information’, ‘label’ => ‘Dynamic Price’, ‘type’ => ‘boolean’, ‘input’ => ‘checkbox’, ‘prefer’ => ‘toggle’, ‘frontend’ => ”, ‘backend’ => ‘MagentoEavModelEntityAttributeBackendArrayBackend’, ‘class’ => ”, ‘source’… Read More »How to make checkbox toggle in product edit form

How do I hide images and compare button in category view List mode?

Using Codazon Fastest theme, I have created ~/fastest/fastest_child/Magento_Catalog/web/css/source/_extend.less which contains the following CSS extensions: .catalog-category-view.product-item-photo { display: none } .action.tocompare.show-tooltip { display: none } I have also tried defining class more specifically, like this: .products-list.product-item-photo { display: none } Images… Read More »How do I hide images and compare button in category view List mode?

How to change swatch image

How to change the image of swatches for disabled options. By default, Magento put a vertical red line if the option is not available for all options. I want to change the image to my custom image.