1) Mention what is Magento?
Magento is an e-commerce platform created on open source technology, which provides online merchants with an exceptional flexibility and control over the content, look and functionality of their e-commerce store.
2) Mention what is the architecture of Magento? What are the different versions of Magento?
Magento architecture is a typical PHP MVC (Model-View-Controller) application, where all the Controllers will be in one folder and all the Models in another, etc. Based on their functionality files are grouped together, which are referred as modules in Magento.
Different version of Magento includes
Magento use PHP as a web server scripting language and MySQL for database.
4) Mention what is the difference between Mage::getModel() and Mage::getSingletone() in Magento?
Basic features of Magento includes
To enhance the Magento performance
In the toolbar block you will see
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php
there is a method:
Public function setCollection($collection);
Inside there is a piece of code:
$limit= (int)$this->get Limit();
If ($limit) {
$this ->_collection->setPageSize($limit);
}
You have to change variable $limit; you should override that block in the local pool, not change directly in the core. In order to see whether the customer is a guest, you can use this code
Mage:: getSingleton(‘customer/session’) -> isLoggedIn()
9) Mention what all billing information can be managed through Magento?
From the client Magento account, you can do following things
To change Magento Core API settings, you have to
Best practices for Magento includes
In Magento, applying connect patch
To move Magento to other Directory you have to follow the following steps.
Update the Secure and Unsecure URL for your store and then link to your site via SSH and then go to the directory, where you will be shifting Magento
cd public_html/
Now Magento is moved to another directory.
14) Explain how you can reset Magento file & Directory permissions?
You can reset Magento file & Directory to their default and secure permissions, by following commands from the directory where Magento is installed
find . –type f –exec chmod 644 {} \;
find . –type d –exec chmod 755 {} \;
chmod +x mage
15) Explain how you can configure Magento to work with another domain?
To do that, in the admin area, you have to change the Magento Base URL option. To do this, visit to your Magento admin area> System > Configuration and click Web on the left menu. Select the Unsecure option after that edit the base URL field to change the URL that will be used for normal (HTTP) connections.
Magento is an e-commerce platform created on open source technology, which provides online merchants with an exceptional flexibility and control over the content, look and functionality of their e-commerce store.
2) Mention what is the architecture of Magento? What are the different versions of Magento?
Magento architecture is a typical PHP MVC (Model-View-Controller) application, where all the Controllers will be in one folder and all the Models in another, etc. Based on their functionality files are grouped together, which are referred as modules in Magento.
Different version of Magento includes
- Magento Enterprise
- Magento .go
- Magento Community
Magento use PHP as a web server scripting language and MySQL for database.
4) Mention what is the difference between Mage::getModel() and Mage::getSingletone() in Magento?
- Mage::getModel(): It always creates a new object
- Mage: :getSingleton(): It always look for an existing object and if not then creates a new object
Basic features of Magento includes
- Reporting and Analytics
- Product and Catalog Browsing
- Customer Accounts
- Order Management
- Payment
- Site Management
- Shipping
- Search engine optimization
- Marketing promotions and tools
- Checkout
- International Support
- Magento is supported by PHP, comparatively to other e-commerce solutions, Magento might be slow in performance
- It becomes a complex system if it is not using object-oriented programming
- Magento requires much space and memory
To enhance the Magento performance
- Disable the Magento log
- Combine external CSS/JS into one file
- Disable any used modules
- MySQL Query Caching
- Enable Magento caching
- Enable Gzip compression
- Optimize your image
In the toolbar block you will see
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php
there is a method:
Public function setCollection($collection);
Inside there is a piece of code:
$limit= (int)$this->get Limit();
If ($limit) {
$this ->_collection->setPageSize($limit);
}
You have to change variable $limit; you should override that block in the local pool, not change directly in the core. In order to see whether the customer is a guest, you can use this code
Mage:: getSingleton(‘customer/session’) -> isLoggedIn()
9) Mention what all billing information can be managed through Magento?
From the client Magento account, you can do following things
- Update your billing address
- Add a credit card
- View your billing history
- Add a PayPal account
- Produce a print ready receipt
To change Magento Core API settings, you have to
- Go to Admin menu, choose System -> Configuration
- Select Magento Core API on the left side of the Configuration Panel, under Services
- Tap on to expand the General Settings section and you can
- Type the name of the Default Response Charset that you want to use
- Determine the Client Session Timeout in seconds
- Click the Save Config button when complete
Best practices for Magento includes
- Using a strong password and changing them at regular interval
- Disable remote access to Magento Connect Manager
- Disable Downloader on production sites
- Restrict access to safe IP addresses
In Magento, applying connect patch
- It enables easy installation of packages with installation; it overwrites any existing translations for the same time
- For enhancing security, by default Magento Connect uses HTTP to download extensions instead of FTP
- With a dash character in the name, extension developers can now create extensions
- Magento administrators will be informed now who tries to install an extension with insufficient file system privileges
To move Magento to other Directory you have to follow the following steps.
- Suppose you have Magento installed in the location
- Let assume you have a directory structure like this
- Which means Magento would be installed here
- Login to the backend of the Magento first and go to
Update the Secure and Unsecure URL for your store and then link to your site via SSH and then go to the directory, where you will be shifting Magento
cd public_html/
- Now, transfer all the files from the store directory to the directory you are in
- Delete the cache data
Now Magento is moved to another directory.
14) Explain how you can reset Magento file & Directory permissions?
You can reset Magento file & Directory to their default and secure permissions, by following commands from the directory where Magento is installed
find . –type f –exec chmod 644 {} \;
find . –type d –exec chmod 755 {} \;
chmod +x mage
15) Explain how you can configure Magento to work with another domain?
To do that, in the admin area, you have to change the Magento Base URL option. To do this, visit to your Magento admin area> System > Configuration and click Web on the left menu. Select the Unsecure option after that edit the base URL field to change the URL that will be used for normal (HTTP) connections.
No comments:
Post a Comment