CodeIgniter
Codeigniter: autofill form from database
Autocomplete Controller Autocomplete Model Autocomplete View Autocomplete Custom.js
Autocomplete Controller Autocomplete Model Autocomplete View Autocomplete Custom.js
Create a small module to save mata details automatically: 1.app/etc/modules/Sushant_Meta.xml 2. app/code/local/Sushant/Meta/etc/config.xml 3.app/code/local/Sushant/Meta/Model/Observer.php
Go to downloader/lib/Mage/Archive/Helper/File/ in your Magento directory and edit the Gz.php file. You need to replace: with and also: with
Step1 : Create a new file called cleanup.php in your magento root folder and add the following code to it: Step 2 : If you want to clean the cache just run the following url: http://localhost/magento1924/cleanup.php?clean=var Step 3 : http://localhost/magento1924/cleanup.php?clean=log
If you want your new custom layout should be appear in admin layout drop down you need to create a small custom module.this task can be done by adding some code in core files but its not a magento way so follow the steps if you want to do this Read more…
If you want to use this code at block file in Magento 2, then use below code snippet.
First You need to create a object instance: After That:
Sometime we need to check the condition if customer is logged in or not: Once you have the $isLoggedIn variable, you can check condition as per below.
For Home Page Slider you need to follow the Steps: Step 1: Download owl slider and copy and paste the slider file to the following directory as : app/design/frontend/Magento/mytheme/Magento_Theme/web/css/owl.carousel.css app/design/frontend/Magento/mytheme/Magento_Theme/web/js/owl.carousel.js app/design/frontend/Magento/mytheme/Magento_Theme/web/js/owl.carousel.min.js Step 2: Create a Page for slider in the following directory with the following code: app/design/frontend/Magento/mytheme/Magento_Theme/templates/html/home_slider.phtml home_slider.phtml Step 3: Read more…
There is no script available in magento 2 back-end you need run the command using cli: navigate to your magento folder by using the commnad for example: after that run below command to apply reindex to whole store.: But what if you want to reindex specific indexer. for that you Read more…