Here we will learn how to call custom phtml file on any cms page or add phtml in your custom cms page.
First, go to the admin section and open CMS page in which you want to add phtml file.
Go to the ...
Forusefully deploy
php bin/magento setup:static-content:deploy -f -s standard
Setup Upgrade Using Command Line
php bin/magento setup:upgrade
If you don’t want to remove pub/static files while in...
PHP Warning: Cannot open './extras/browscap.ini' for reading in Unknown on line 0 to fixed this issue check your php.ini for a line like this:
[browscap]
browscap = extra/browscap.ini
If you do...
We know as a matter of fact that having your site hacked is not fun. That is the reason, here at Universal WebTech, we consider security important.
In accordance with our genuine way to deal with s...
How to load Magento product by SKU or by product id to get product name, Image, and other useful information.
Load product by SKU
$product = Mage::getModel('catalog/product')->loadByAttribute('sku...
Warning: simplexml_load_string() in Magento
This error comes when there is any unwanted white space in any file or in the URL path.
To fix this error you need to connect to the database and op...
Let's assume we need to fetch data from direct database and we don't want to use model in magento. At that time we can also access data direct from database using magento database connection and simpl...
Magento basically has 3 different types of product image which are as followed.
Base Image
Small Image
Thumbnail image
Now let's see how we can get product images using product id.
$products...
Below is the code by using we can get product collection filter by category id in Magento
$category = Mage::getModel('catalog/category')->load('category_id');
$productCollection = $category->getPr...
FOREIGN KEY - Ensure the referential integrity of the data in one table to match values in another table
CHECK - Ensures that the value in a column meets a specific condition
NOT NULL - It will not ...
To insincere sales it is important that your store must be user friendly where user easily find his/ her needed product and easily navigate in store.
one of important page in magento is to display s...
Suppose, you need product information of more than one product using SKU at that time we can get all information using "array in" with filter.
Below is code for the same. you just need to change SK...
Getting error Class Magento\Authorization\Model\Acl\Role\GroupFactory does not exist
Magento 2 is quite complex to understand. We frequently get this error while developing the store. Here is the s...
Changing database password frequently is always good practice to make your store secure and it will protract your store with malware and other hacking attacks.
Below are the steps on how to chang...
By default, we can access Magento admin by simple using /admin after Magento store URL. To secure your store it's preferable that you change the default URL of Magento store.
Below are the steps t...
By using below code you can connect the database with PHP application. After database connection we can access all database and also we can CRUD operation by using PHP application.
$servername =...
Magento is an ecommerce platform built on open source technology and which use MVC system. It is managing all request response using Model, View and Controller. So, all view file call base on controll...
Suppose we want to get all information of login User like Full Name, First Name, Middle Name, Last Name etc. We can also check user registration date, Date of Birth and many more information. Below is...
Suppose we have the customer email id and we want to fetch all details of that customer in Magento, its very easy and you can use below code it will give you all information with the email address whi...
Below is script to convert svg image from img tag to SVG tag. After converting image in svg tag you can able to fill color in that image.
jQuery('img.svg').each(function(){
var $i...
Model-View-Controller MVC
=> Model
Model is the classes providing data, service related to data and business logic. This class works directly with data and provides data for other elements. In a modu...
Magento have different session. You can check customer is login or not using customer/session.
You can check it using this piece of code:
if(!Mage::getSingleton('customer/session')->isLoggedIn()){...
1) Magento: call phtml file in CMS page.
When you want to display dynamic content on home page or any other CMS page. You just need to create block of specific module which create an object of that...
Static block is use to allow store Admin to update content or any block without changing code. Admin can update content from admin-panel easily. We can call static block in different location in Magen...
using below steps you can enable logs in magento
1) Login in magento back-end
2) Go to System -> Configuration
3) from left section click on Advanced -> Developer
4) you can able to see Log Set...
MySQL Group By Clause - The MySQL GROUP BY statement is used along with the SQL aggregate functions like SUM to provide means of grouping the result dataset by certain database table column(s).
MySQL...
Below is the script which display all magento product
create new file in root of the magento source and add below code in that file
require_once('app/Mage.php');
umask(0);
Mage::app();
$_productColl...
To add Jquery in magento we need to add below code in layout file.
/app/design/frontend/package/your theme/layout/page.xml
<reference name="head">
<block type="page/html_head" name="he...
External script to Display All category which are created in magento.
Below is the code to display all category.
create new file in root of the magento source and add below code in that file
requi...
External script to check which payment method is Active in Magento.
Below is the code to display all payment method.
create new file in root of the magento source and add below code in that file...
External script to check which shipping method is Active in magento.
Below is the code to display all shipping method.
create new file in root of the magento source and add below code in that fi...
When you work in your local system you may face problem while uploading large database.
When you face such problem you can apply below the solution for it.
By default, Xampp has database import ...
Magento have main 3 session which are listed below :
1) Customer Session
2) Checkout Session
3) Core Session
- Customer sessions stores data related to customer.
- Checkout session stores data rela...
To change admin password need to follow below steps:
1) Login to Cpanel or access Database
2) Go to phpmyadmin
3) click on sql section
4) Run below query
(Note: please update NEWPASSWORD with your...
To set custom theme for login user use following code:
if(Mage::getSingleton('customer/session')->isLoggedIn()):
Mage::getDesign()->setPackageName('package_name')->setTheme('themename');
end...
Basic features of Magento includes
Reporting and Analytics
Product and Catalog Browsing
Customer Accounts
Order Management
Payment
Site Management
Shipping
Search engine opti...
To improve magento store performance we can TRUNCATE following tables in Magento database :
Login to your cpanel then goto phpmyadmin using SQL run below query to clear logs
TRUNCATE dataflow_batc...
If you’ve ever added a new product to Magento, you know that you’ve had to add some title, description and price to it (there are more attributes but we are using 3 for this example). When you sav...
[vc_row][vc_column width="1/1"][vc_column_text]
By Following Tutorial links you will surely upgrade yourself.
http://admin-page-framework.michaeluno.jp/
http://admin-page-framework.michaeluno.jp/...
[vc_row][vc_column width="1/1"][vc_column_text]Simply add this scrap to the functions.php of your wordpress subject and the majority of the width and tallness characteristics will be expelled from you...
We are one of India's driving IT Company situated in Ahmedabad with wide abilities and a significant notoriety constructed over last few years.
We provide Website designing, Website Development, Searc...
Websites play an important role in the success of every business. Hence, it is important to hire the right web design company for designing a beautiful and visually appealing website for your business...