Magento 2: Search Repository using SearchCriteriaBuilder, Filter & FilterGroup

This article shows how we can search Magento Repositories using SearchCriteriaBuilder that implements SearchCriteriaInterface. An example is provided of how we can perform search on Product repository in Magento. Similarly, we can search for other entities like Category, Customer, Order, Invoice, CMS Page, CMS Block, etc. We can add different conditions to build custom search … Read more

Magento 2: How to call CMS Static Block from template (phtml) file?

In Magento 1.x, you could call/print the CMS Static Block in template file with the following code: echo $this->getLayout() ->createBlock('cms/block') ->setBlockId('your_block_identifier') ->toHTML(); In Magento 2.x, it’s quite similar. Below are the sample codes to show/call template (.phtml) files in Magento 2. Call CMS Static Block in any template (.phtml) file echo $this->getLayout() ->createBlock('Magento\Cms\Block\Block') ->setBlockId('your_block_identifier') ->toHtml(); … Read more

JoomlaPack – Simply the best backup component for Joomla!

I used JoomlaPack for backing up my Joomla! CMS site and I cannot stop writing about it. It’s simple, easy to use, quick, efficient and moreover it’s FREE. It creates a full backup of your site in a single archive. The archive contains all the files, a sql file with database script and a restoration … Read more

Displaying all products and new products listing in column/grid layout – Zen-cart

Exactly before one year, I was doing a shopping cart project in Zen-cart. I had to display ‘All Products’ and ‘New Products’ listing in column/grid layout. The default layout was row layout. Then I searched if there was any addon which could help in my problem. But I couldn’t find any. The response that I … Read more