Showing posts with label magento. Show all posts
Showing posts with label magento. Show all posts

Monday, April 6, 2020

Magento 2 Interview Questions and Answers

1. What is MVC Architecture?

The Model-View-Controller (MVC) framework is an architectural pattern that separates an application into three main logical components Model, View, and Controller. ... MVC separates the business logic and presentation layer from each other. It was traditionally used for desktop graphical user interfaces (GUIs).


2. Which command is used to enable or disable a Magento 2 module?


php bin/magento module:enable module_name

php bin/magento module:disable module_name


3. What technology does Magento 2 use?


Magento uses MySQL for database and PHP as a web server language.

Magento 2 uses PHP 7.0.2 up to 7.0.10
  • 5.6.x;
  • 5.5.x, for x>=22;
  • 7.0.2 to 7.1.0, except for 7.0.5.
  • 7.1.3+ 7.2.x (for Magento 2.3.0)
  • 7.3 (for Magento 2.3.3)

For MySQL, it uses version 5.6 or 5.7.

  1. Magento 2.0.x = MySQL 5.6 
  2. Magento 2.1.x = MySQL 5.6 (For Magento 2.1.2 and higher, use MySQL 5.7) 
  3. Magento 2.2.x  = MySQL 5.6, 5.7 
  4. Magento 2.3.x  = MySQL 5.6, 5.7 

4. What is EAV?

The Entry, Attribute, Value model, also known as object-attribute-value or Open Schema, is a database or catalog management system that is used in Magento.

Entity–attribute–value model (EAV) is a data model to encode, in a space-efficient manner, entities where the number of attributes (properties, parameters) that can be used to describe them is potentially vast, but the number that will actually apply to a given entity is relatively modest.


5. How can you write a custom module in Magento 2?


Say you the model name is ‘hosting’. You have to define it in app/code folder

It should be: app/code/VendorName/moduleName.

For example: app/code/MageHost/Hosting

Steps:

  1. Create the folder of ‘hosting’ module
  2. Create etc/module.xml file
  3. Create etc/registration.php file
  4. Enable the module


There are two possible locations for modules in Magento 2: the app/code folder and the vendor folder depends on your Magento installation.



Thursday, January 31, 2013

Use Magento to Build E-Stores / Shopping Carts of All Sizes And Shapes

Use Magento to Build E-Stores / Shopping Carts of All Sizes And Shapes



Applications are developed in a variety of different languages.

With more than 350 million users on the net across the world, the potential market for your products is huge.


Some more Features of Magento (and they are only getting started):


* Relevant RSS Feeds

* Filtering to Display only Specific Item Types

* Customizable Wish list

* Popular Products Cloud

* Tagging Items

* Compare Products

* Send to a Friend

The payment methods are highly secure yet simple and quick.
I need to develop a site in Magento. What should I do? Not very tech savvy? Programming sounds so much like gobbledygook? And want to establish a web presence for yourself or your company?
There are two kinds of Magento: Community Edition and Enterprise Edition – this genrally used by large stores with thousands of products than can confuse buyers, Magento provides shoppers with the following features as they browse for items.


Our Magento Service Offerings:


1. Online Store Development using Magento Open source platform

2. Magento Customization

3. Magento Themes Design

4. Magento Themes Development and Integration

5. Magento Module Installation

6. Custom Designed Landing Page

7. Shopping Cart

8. Payment Gateway Integration

9. Magento eCommerce with Search Engine Optimization

10. Magento Template Design and Integration


There are three major categories of Magento modules:


* Core Modules

* Community Modules

* Commercial Modules

Core and Community modules can be installed via the administration area. Commercial module pages provide price information and a link to an external website.

Some of the advantages of using Magento for an e-commerce store:


* Versatility and freedom – easily add new products to your store using the Magento CMS.

* SEO optimized to help attract visitors helping your business grow.

* Expand your market – reach out to a wider range of potential customers.

* From your mom and pop outfits, to department stores and large malls, Magento can be used to design and develop them all for the web.




Magento Development provides its own customized payment gateway that you can set as per your merchant account. Optionally, you easily integrate Magento with any of the major payment gateways like PayPal, or Google Checkout.

With its large stack of prepared graphics for web pages called Website Themes and Page Templates, you can create an online store with simple points and clicks and Magento's uses don't end there. After all, you are conducting a business on the net and there are credit transactions involved!


i love to work with Magento. :D

Hope you have enjoyed the post !
any more idea about the same ? let me know by comments !

Know More About :
PHP Freelancing India

Monday, January 21, 2013

Hire Magento Developer / Freelancer For Complete E-Commerce Solution

Hire Magento Developer / Freelancer For Complete E-Commerce Solution



  • Hiring a Magento developer / Freelancer from an outsourcing company becomes the most ideal choice as this is what most of the companies and businesses are doing round the world. These outsourcing companies have plenty of experienced developers to offer from which you can select as per your requirement. Whether you want the developer to work for you on daily, weekly or monthly basis, the modes of payment and many such options are there for you to avail. The Magento developer works dedicatedly for your project and you are the person in charge to see through the project and its progress.
  • When you hire Magento Developer / Freelancer they give various services dedicatedly just to you. These services include Magento themes and template customization, Module development, Module installation, Custom designed page, Magento template and theme development, Unified payment gateway integration, Magento backend and store management training and Extension development. This is all you need to have a perfectly functional website which will be set to expand your online business to every corner of the globe.
  • The trend of hiring a dedicated Magento Developer / Freelancer has become a norm in the recent times as people have finally realized the worth of these professionals and Magento as the platform. Magento is being regarded as one of the better options for online solutions as it gives the business owners a lot of options to create user-friendly websites that are very easy to navigate and give a happy shopping experience. So when you use Magento, your website will have all the useful options that make the process of shopping and payment really a delight. And when this is coupled with the experience and expertise of a Magento developer, what you get is a complete online shopping solution.
  • Having said that, it's not easy to create that perfect combination of all three. It requires a great deal of knowledge about the current trends in the market, the importance of design and the experience of the person, who develops the site. This is only possible if you hire a dedicated Magento Developer / Freelancer as not only they have all the required skills, but Magento as a platform is itself a great option for a complete online shopping portal.
  • If you have an online business or an online shopping portal then in that case hiring a Magento Developer / Freelancer becomes very important for you. Online business or shopping portals are very volatile yet productive options for business. As much as they are capable of bringing a lot of business to you, as much capable they are of losing your hard spent money. The success mainly depends upon how well the website has been designed, its user-friendliness and its usability. If all these things are in shape then you have the recipe to success.

Hope you have enjoyed the post !
any more idea about the same ? let me know by comments !

Know More About :
PHP Freelancing India

Wednesday, December 26, 2012

Outsource PHP Development work to India based Web Development Company For WordPress, Joomla, Magento, Drupal, Android, iPhone, CakePHP, Codeigniter

Outsource PHP Development work to India based Web Development Company For WordPress, Joomla, Magento, Drupal, Android, iPhone, CakePHP, Codeigniter



1 PHP-Programming-India and our professional clearly understand that the technologies are changing continuously and therefore have a well maintained in-house team to look over the latest advancements so as to run the continuous activities accordingly. For this we provide project based programmer team to understand the need of a particular project. For the smooth operation for your business activities we offer maintenance procedures irrespective of the location of the application development.


2 Every project is always completed within the allotted time given by our customers. Our staffs are very sincere to their work and could help you to become a leader in the business you are involved keeping your competitors behind with their high knowledge and innovative ideas for developing web sites. With the use of PHP MySQL our professional are enthusiastic to take all types of challenges and create new and innovative things. Here at PHP-Programming-India we ensure your business growth and increased sales and fame by using latest features in the business and best coding practices.

PHP-Programming-India caters its professional PHP development services to almost the whole ecommerce in the world and has its offshore Development Center in India e in PHP-Programming-India have a vast number of professional, and experienced PHP developers who are fanatical to their work and ensures total lucidity with the client's staff.


PHP and MySQL software are very helpful in Content Management System that has become a must for every website to progress properly. It can be said PHP is a fine combination of some features of C and Perl in a simple format. When compared to other scripting languages PHP MySQL is preferred by programmers as it is easier to maintain and update. It is accepted as a boon for easy-to program superb web pages.
Consumers across the world prefer India as the center point when it comes to PHP programmers as they are efficient enough to provide rising platforms to the owners, with the creation of booster web sites which increases their site traffic and eventually increases their sales. PHP programmers with the use of open source codes benefit from the elasticity of editing, modifying and updating the source code when there is requisite. Such programmers with strong basic knowledge and experience accept all sorts of difficulties and aims at benefiting the consumers at the most. Open source as proved itself a boon for these programmers as resources could be utilized at the max with minimum cost. In India the pay scale for these programmers are a fraction when compared to other developed countries, which is another reason why India has become the first choice at global market.



Hope you have enjoyed the post !
any more idea about the same ? let me know by comments !

Know More About :
PHP Freelancing India

Wednesday, December 7, 2011

Choosing An Effective Web Design Company / Freelancer

Choosing An Effective Web Design Company / Freelancer

Web Design Company

As much as the web designing process is itself a complicated one, choosing the right web design company is also very challenging. You need to take a few things into account before you can start off with the search for the right Web Design Company.


In choosing the web Design Company the first step is to look for the most reputable companies through sources and authentic information. 


It is recommended to inquire in your network of contacts related to this business that have had the exposure and experience with a web developer which was worth repeating when in need. A personal experience matters a lot. For the search of potential web designer companies, even the internet, and the news papers can shortlist the worthy ones.



Any more ideas ? let me know via comments ! 



Know more about  :
Information Technology Jobs



Monday, October 3, 2011

Using regular expressions to extract content - php extract texts from html content


Hello PHP Googler,

PHP provides a number of really neat regular expression functions. You can find the list of the regex function at the PHP site.

But the one that I’ve had most fun with is the preg_match_all() function which I’ve been using to do content extraction from an HTML page.

I’m not going to explain what Regular Expression (regex) is in this post. There are whole books on just this one topic along; I would be crazy to think I can explain it all in just a few paragraphs. But in order for you to understand how to use the regex functions you need to have a basic understanding of regular expressions.

If you think back to your childhood days, you would remember a toy that you can match holes with shapes with the corresponding blocks – like the picture here. Well, regular expressions is very much like that toy, but instead you have define your own ’shape’ (or pattern as it’s known) and apply your content to it. Any text that matches the pattern will ‘fall’ through it.

Let’s say you have a block of text like below and you want to extract out the all links from, you can use preg_match_all to do just that.

 
$content = "He's goin' everywhere, <a href=\"http://www.bjmckay.com\">B.J. McKay</a> and his best friend Bear. Rollin' down to <a href=\"http://www.dallas.net\">Dallas</a>, who's providin' my palace, off to New Orleans or who knows where." 
The pattern you want to look for would be the link anchor pattern, like <a href=”(something)”>(something)</a>. 
The actual regular expression might look something like Once you have your pattern you apply the $content and $regex_pattern to preg_match_all() like this
$regex_pattern = "/<a href=\"(.*)\">(.*)<\/a>/";


Once you have your pattern you apply the $content and $regex_pattern to preg_match_all() like this
preg_match_all($regex_pattern,$content,$matches); print_r($matches);
preg_match_all will store all the matches into the array $matches, so if you output the array,
you’ll see something like this.

Array ( [0] => Array ( [0] => <a href="http://www.bjmckay.com">B.J. McKay</a> [1] => <a href="http://www.dallas.net">Dallas</a> ) [1] => Array ( [0] => http://www.bjmckay.com [1] => http://www.dallas.net ) [2] => Array ( [0] => B.J. McKay [1] => Dallas ) )



From this array, $matches, you should be able to loop through and get the information you need.

I hope this has been useful to you. I know it doesn’t cover all the things this function can do, but for first-timers, it should be a simple look at a very powerful PHP function.

Incidently, PHP also provides the function preg_match(). The difference is preg_match() only matches a single instance of the pattern, whereas preg_match_all() tries to find all matching instances within the content.

Contact:
bhavinrana07[@]gmail.com

Sunday, October 2, 2011

Hardening Your Web Application Against SQL Injections




Hi All,


Before digging what actually SQL Injection is, let me explain you what is SQL it self.
What is SQL?


Structured Query Language (SQL) is a specialized programming language for sending queries to databases. Most small and industrial- strength database applications can be accessed using SQL statements. SQL is both an ANSI and an ISO standard. However, many database products supporting SQL do so with proprietary extensions to the standard language. Web applications may use user-supplied input to create custom SQL statements for dynamic web page requests.


What is SQL Injection?


SQL injection is a technique that exploits a security vulnerability occurring in the database layer of a web application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.
“SQL Injection” is subset of the unverified/unsanitized user input vulnerability (“buffer overflows” are a different subset), and the idea is to convince the application to run SQL code that was not intended. If the application is creating SQL strings naively on the fly and then running them, it’s straightforward to create some real surprises.


Many organization’s web servers has been compromised just because of SQL Injections, including big names which I would not like to mention here, you can search it easily on Internet.


What is Blind SQL Injection?
This particular type of attack is called a blind SQL injection attack, because the attacker cannot take advantage of detailed error messages from the server or other sources of information about the application. Getting the SQL syntax right is usually the trickiest part of the blind SQL injection process and may require a lot of trial and error. But, by adding more conditions to the SQL statement and evaluating the Web application’s output, an attacker will eventually determine whether the application is vulnerable to SQL injection.


Blind SQL injection a special case that plays on the web developers or website owners sense of security. While they may think that everything on the server is tightly guarded a Blind SQL injection attack will silently be playing truth or consequences with the web server. This type of attack though very time consuming is one that provides the most potentially damaging security hole. This is because an attacker gets not only access but is provided with an enormous amount of knowledge about the database and can potentially gain access to a servers file system. This type of attack is one that is automated and requires good amount of setup to succeed. But once it is done it does not require a great deal of effort to repeat.
What is Error message SQL Injection?


Web applications commonly use SQL queries with client-supplied input in the WHERE clause to retrieve data from a database. When a Web application executes such queries without validating or scanning the user-supplied data to ensure it’s not harmful, a SQL injection attack can occur. By sending unexpected data, an attacker can generate and submit SQL queries to a web applications database. A test for SQL injection vulnerabilities takes place by sending the application data that generates an invalid SQL query. If the server returns an error message, that information can be used to try to gain uncontrolled access to the database. This is the basis of one of the most popular SQL injection attacks.
Hiding error messages does not stop the SQL injection attack. What typically happens is the attacker will use the knowledge gained from the failure of this attack to change tactics. What they turn to is blind SQL injection.


What is SQL Injection?
When a web application fails to properly sanitize user-supplied input, it is possible for an attacker to alter the construction of backend SQL statements. When an attacker is able to modify a SQL statement, the process will run with the same permissions as the component that executed the command. (E.g. Database server, Web application server, Web server, etc.). The impact of this attack can allow attackers to gain total control of the database or even execute commands on the system.



Contact : 
bhavinrana07[@]gmail.com

Wednesday, September 28, 2011

Google new chart API

Google new chart API


A new API from Google that generates information charts in a dynamic way. its usage is quite straightforward: you link to an image in the form of a parameterized URL, such as 

http://chart.apis.google.com/chart?cht=p3&chd=t:90,49&chs=400×200&chl=data|bling.





“cht=p3? is the chart type, in this case, a pie chart.





“chd=t:90,49? are the chart values, text-encoded, and separated by a comma.

“chs=400×200? is the custom chart size, 400 by 200 pixels.

“chl=Data|Bling” are the different labels for the pie chart sections, separated via the pipe character.

chart types include: line charts, bar charts, pie charts, Venn diagrams & scatterplots.


View Demo


Any Questions let me know via comments ! 
:D

PHP Development India – Best Language for Web Development

In today’s advanced technological world, the popularity of the internet has been increasing and we see millions of websites running on the internet to fulfill the requirement of user and the figure keeps increasing each day. Therefore, the merchants are getting cut-throat competition on the internet. Strong representation of a website is thus necessary for its online success. Hence, merchants have been diverted to web development industry to build the strong online presence.



There are many options available for web development like php, asp.net, java, wordpress, etc., from them php becomes a first choice for company websites. Because PHP is an open source server side scripting language, which allows effective web development at affordable rates. PHP support multiple platforms and databases such as Linux kernel, MS Windows, MySQL, MS Access, SQL server & Oracle. It also offers an array of other features which can be used to make a website flexible and user-friendly.




Benefits of PHP Development:
  • Create a dynamic website that has a professional look
  • Its support various OS (operating system) like Windows, Linux and Unix
  • The coding is easily understandable
  • Web development at very affordable rates
  • Increase your ROI (Return of Investment)
Many countries provide php development services, from them India has taken first place in this field because Indian php developers offer excellent designing and development services and take new challenges with open arms and most important thing, you get your application at one-quarter of cost at your current rate.




About

Professional & Experienced Freelance Developer From India, Technologist, Software Engineer, internet marketer and Open Sources Developer with experience in Finance, Telecoms and the Media. Contact Me for freelancing projects.

Enter your email address:

Delivered by FeedBurner