Skip to content

Update increment pad length in orders to remove leading zero’s

I’m looking for the most up to date and most recommended way to update increment_pad_length I’ve seen many posts about direct with sql statements and other with di.xml eg: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoFrameworkDBSequenceSequenceInterface”> <arguments> <argument name=”pattern” xsi:type=”string”>%s%’.02d%s</argument>… Read More »Update increment pad length in orders to remove leading zero’s

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?