Posted in Magento, Open Source, PHP / Python

How To Create Downloadable Product in Magento 2


Click here to see video

Login in to Magento Admin

Go to Products -> Catalog From Navigation

Magento Catalog From Navigation
Magento Catalog From Navigation

Click on “Add Product” drop-box and select “Downloadable Product

Create Downloadable Product
Create Downloadable Product

Fill out details of product that is required (* Required Fields). Don’t forget to assign category of product

Fill out Required details of Downloadable product
Fill out Required details of Downloadable product

Go to Downloadable Information section and checked on Is this downloadable Product? And Add Downloadable Product URL or files by clicking  on “Add Link” button.

Fill out downloadable information and upload data
Fill out downloadable information and upload data

You can upload Sample of that downloadable product on Sample Section

Sample Section of Downloadable product
Sample Section of Downloadable product

After that Save Product

You can see your Downloadable Product on front side.

Downloadable product on Front side
Downloadable product on Front side

Advertisements
Posted in Magento, Open Source, PHP / Python

How to create configuration product in Magento 2


click here to see video

Login in to Magento Admin

Go to Product – Catalog – Add Configurable product

 

Catalog Products Magento Admin
Catalog Products Magento Admin

Fill up required details and go to “Configurations” section and click on create configurations

 

New Configurable Product fields

New Product Create Configurable option
Create Configurable option

Select attribute that you want to use for configurable product and press on Next button

Select Attribute for configurable product
Attribute for configurable product

Select attribute values for configurable product and if not available create new value of attribute. and press on Next Button

Select Attribute values for configurable product
Attribute values for configurable product

Select images price quantity for configurable product and press on Next button

Select images price quantity for configurable product
Select images price quantity for configurable product

Check summary of your configurable product and press on Next button

Summary of your configurable product
Summary of your configurable product

You can see your product on your selected category where options are available that you configurable for your products

Product show on front side
Product show on front side
Posted in Magento, Open Source, PHP / Python

How to create custom attribute for configurable product in Magento 2


Click here to see the video

Login in to Magento Admin

Go to StoresAttributesProduct

custom attributes for product
custom attributes for product

Click on “Add New Attribute

Add new product attribute
Add new product attribute

Fill up attribute details choose attribute types and add values of attribute

attribute details and values
attribute details and values

Don’t forget to select proper attribute scope

Select attribute scope
Select attribute scope

In the storefront properties select properties according your needs. There are have many options.

For creating configurable product please visit our post How to create configurable product.

Note : Select this created attribute for configurable product.

After following all steps finally you find your product on assigned category page.

Custom Attribute Configurable Product Front side view
Custom Attribute Configurable Product Front side view

Posted in Magento

How To Create Simple Product in Magento 2


Click here to see the video

Login in to Magento Admin

Go to Product – Catalog From Navigation

Magento Catalog From Navigation
Magento Catalog From Navigation

Click on “Add Product” OR in “Add Product” dropbox select “Simple Product”

Magento Add Simple product
Magento Add Simple product

Fill up details of product that is required and save product. (* Requierd Fields). Don’t forget to assign category of product.

Magento Sample Product Fields
Magento Sample Product Fields

You can show your product in selected category

Magento Home page output
Magento Home page output
Posted in Magento, PHP / Python

How To Create Category in Magento 2


 

Click here to see the video

Login in to Magento Admin.

Go to Products – Categories From Navigation

Magento Categories From Navigation
Magento Categories From Navigation

Click on “Add Subcategory” So it will create sub category of “Default Category”. You can create root category by click on “Add Root Category”.

Magento Add Root Category
Magento Add Root Category

Configure category data.

“Category Name” field is for category name.
“Include in menu field is for If you want to show category in fronted menu than enable “YES” or if not than disable “YES”.
“Enable Category” field for enable and disable category for magento.

Magento Enable Category
Magento Enable Category

You can see your category at front side home page Menu.

Magento Home Page
Magento Home Page
Posted in Magento, PHP / Python

How To Create Simple Product Custom Option in Magento 2


 

Login in to Magento Admin.

Go to Product – Catalog – Select simple product OR Create new one. Fill up Basic details if you created new one.

Magento Catalog Product
Magento Catalog Product

After that open “Customizable Options” Toggle” > Click on “Add Option”. Fill up details like “Option Title” and select “Option Type”. After that below “Add Value” Button available click on that for add option values. Fill up Title, Price etc. that you need.

Magent Product Customizable Options
Magent Product Customizable Options

You can show your product front end side with option you selected.

Magento Product Output
Magento Product Output
Posted in Open Source, PHP / Python, Ubuntu

How to install Magento in Ubuntu ?


Now it’s turn to install another eCommerceMagento‘ which is feature-rich eCommerce platform built on open-source technology. Magento is available in two editions: Community and Enterprise.

Installing and Configuring Apache

$ sudo apt-get install apache2

You may see following message during installation:

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type

$ sudo gedit /etc/apache2/httpd.conf

By default httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost

Save the file and exit from gEdit.

Finally restart the server.
$ sudo /etc/init.d/apache2 restart

* Restarting web server apache2
…. waiting             [ OK ]

sudo a2enmod rewrite

Installing PHP

sudo apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql

Installing MySQL

sudo apt-get install mysql-server

To know more system requirements click on following link :

http://www.magentocommerce.com/system-requirements

Now create directory for magento

mkdir /home/magento
chgrp www-data /home/magento
mkdir -p /home/magento/{public,log}

Configuring Apache Virtual Host

Now we are going to create simple virtual host configuration file that will help Apache to display the data of directory /home/ubuntu/magento for any HTTP request to localhost.magento.com

Create “magento.com” file in this location “/etc/apache2/sites-available/” with following content.

<VirtualHost *:80>

ServerName localhost.magento.com
ServerAlias http://www.localhost.magento.com

DocumentRoot /home/ubuntu/magento/public

LogLevel warn
ErrorLog /home/ubuntu/magento/log/error.log
CustomLog /home/ubuntu/magento/log/access.log combined

</VirtualHost>

Use a2ensite command and restart Apache to load the new configuration file.

sudo a2ensite magento.com
sudo service apache2 restart

To ensure that the domain localhost.magento.com resolves locally to the computer require entries to /etc/hosts file.

# For magento

127.0.0.1 localhost.magento.com
127.0.0.1 http://www.localhost.magento.com

Now hit localhost.magento.com in your browser to check working status after completion of above entries.

Now we will execute installation steps of main topic.

Type following command on prompt. It will ask for root user password.

mysql -u root -p

Now lets create database for Magento.

CREATE DATABASE magento;
INSERT INTO mysql.user (User,Host,Password) VALUES(‘magento’,’localhost’,PASSWORD(‘magento’));
GRANT ALL PRIVILEGES ON magento.* TO magento@localhost;

Now download latest stable Magento from
http://www.magentocommerce.com/download
and put zip file into /home/ubuntu/magento/public

If error: ERROR 1133 (42000): Can’t find any matching row in the user table
FLUSH PRIVILEGES;

For testing Magento, you can download it from
http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz

mv magento-sample-data-1.6.1.0/media/* media/
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql sample_data.sql

Now we have to insert sample data into database that we earlier created for Magento.

mysql -u magento -p
USE magento;
SOURCE sample_data.sql;

Now everything is setup so open your browser and type localhost.magento.com and follow installation steps. You will find following screen.

Here is your Magento is working.