Blog: Extra-ordinary

How many design patterns in Magento 2?

Magento has a total of 12 design patterns. These patterns are given below: Factory Pattern Singleton Pattern Model View Controller Pattern Front Controller Pattern Registry Pattern Prototype Pattern Iterator Pattern Object Pool Pattern Service Locator Pattern Lazy Loading Pattern Observer Pattern Module Pattern  

Continue Reading

Expectation find out with pyhton

The expected value of a random variable X is given by: E ( X ) =∑xi pi E(X) = 1( 1/6 ) + 2( 1/6 ) + 3( 1/6 ) + 4( 1/6 ) + 5( 1/6 ) + 6( 1/6 ) = 3.5 In python >>> import numpy as np integer = 1, 2, 3, 4, 5, 6 integer_array …

Continue Reading

Remove Advanced Search Link from header in Magento 2

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”advanced-search-link” remove=”true”/> </page>

Continue Reading

How to Edit/Change/remove Magento 2 Privacy Policy Page

Path –  Vendor_Name/Custom_Theme_Name/Magento_Theme/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”footer_links” remove=”true”/> </page>

Continue Reading

Remove “help us keep magento healthy report all bugs” from footer in Magento 2

just create the following folder & file app/design/frontend/Vendor/theme/Magento_Theme/layout/default.xml add following code in default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”../../../../../vendor/magento/framework/Module/etc/module.xsd”> <referenceBlock name=”report.bugs” remove=”true” /> </page>

Continue Reading