A quick guide to Magento 2 basic customisation – Part 1

Get your Ecommerce flexibility using Magento 2

Magento 2 is the newest member of the Magento family, an open-source platform to accelerate your e-commerce goals. It has new and improved features that helps to increase user interaction and perform all business functions smoothly.

It basically integrates object-oriented programming with Relational DataBase Management System, while providing a Zend Framework in the background.

Just follow some simple steps described below to get site URL’s and all the category, products, and customers data right on your screen.

1. Programmatically Get URLs in Magento

Step 1:

The initial step is to Create scripts/magentoUrl.php file.
Now place this file in the Magento root directory and just enter the code displayed below.

2. Programmatically Get Category, Products and Customer data in Magento 2

With Magento 2 you can organise and administer your business data. Moreover its scalability feature allows you to make changes effortlessly.

Follow these simple steps given below to get data related to category, products and customers.

Step 1: First Create the scripts/abstract.php file in magento root directory. Place the following code in the file.

Step 2: To avail the category Data

Follow these subsequent steps

Step 2.1: Create scripts/categoryData.php file in magento root directory and place the code below to get category data.

Step 2.2: Run the command http://www.yourdomian.com/scripts/categoryData.php in your browser. This will provide you all the data related to category right on your screen.

Step 3: For Product Data

Follow the display of all information related to products follow these easy steps.

Step 3.1: Create scripts/productData.php file in Magento root directory and place the code shown below in that file.

Step 3.2: Run productData.php command in your browser. Your screen will be displayed with All products related data.

Step 4: For Customer Data:

Step 4.1: Create scripts/customerData.php file in magento root directory and put below code to  get all the Customer data.

Step 4.2: Run http://www.yourdomian.com/scripts/customerData.php command in your browser..All the customer data will be presented on your screen.

Hope this will help you!
Thank you.

Gordhan Chauhan

Gordhan Chauhan | Sr. Magento Developer

I work as Sr. Magento Developer in Yudiz Solutions Pvt. Ltd. -
a leading mobile apps, mobile games and web development company. I write blogs to share my knowledge and ideas to my audience. I am passionate about exploring and develop new stuff in magento and web development.
mm

Gordhan Chauhan Sr. Magento Developer

I work as Sr. Magento Developer in Yudiz Solutions Pvt. Ltd. - a leading mobile apps, mobile games and web development company. I write blogs to share my knowledge and ideas to my audience. I am passionate about exploring and develop new stuff in magento and web development.

Comments are closed.

Top