aneesahmadweb@gmail.com

    Factories are service classes that instantiate non-injectable classes Name of the Model class which append word factory becomes factory class. Remember: There are three types of classes that are generated in magento2 automatically on Code generation, these classes are found under var/generation in magento2 root folder Factory classes Interceptor classes Proxy Classes Lets have a […]

    Read More

    Some method usefull for Invoice,   hasinvoice() to check whether invoice exist or not   $order->hasInvoices() // for Invoice $order->hasShipments() // for shipment Usefull Website https://hotexamples.com/examples/magento.sales.model/Order/prepareInvoice/php-order-prepareinvoice-method-examples.html

    Read More

      To call a CMS block in a page or in another blockĀ all we have to write the below code {{widget type=”Magento\\Cms\\Block\\Widget\\Block” template=”widget/static_block/default.phtml” block_id=”identifier”}} We can also pass the value of block in block_id. Here we Manually add a block.Before this you have to Learn How to make CMS block Through Frontend. What we have […]

    Read More