Please follow all the steps to show image in cms pages. Here i have taken custom collumn name "banner" which is created in "cms_page" table. Please change your code according to your column name.
Step 1:- Please create one block file named Image.php under path
Below code is for get image from custom ...
Hello You can Used OR Operation in collection to achieve this condition
yes, if (keep_disable = false => get all records) + (keep_disable = true, get records where sum_qty is greater than 0)
Check the below link for used of OR Operation in magento Collection
After struggling 2 days with MySql and Magento queries, I finally found the solution.
As of my findings, I found out that this not possible with direct Magento query or direct MySql query but it can be possible by creating MySql VIEW table.
I passed my mysql query with dynamic column and used that view as a normal table, then only I was able to filter with ...
This is the Magento issue and to fixed this, please follow following four steps :-
1- Define global plugin in di.xml file :-
type="Waqar\Catalog\Plugin\Product\EscaperPlugin" disabled="false" sortOrder="0" /...