Skip to content

magento man

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