This tutorial shows how to resolve the Magento admin panel login issue.
It’s a common issue: you are trying to login to the Magento admin panel, typed your username and password, clicked Login button and nothing happens. The page refreshes and that’s all. No error or any other messages.
This is caused by the cookies issue. In
Perfect differece with example for getsingleton and getmodel.
Mage::getSingleton()
Mage::getSingleton() will first check if the same class instance exists or not in the memory. If the instance exists then it will return the same object from the memory. So Mage::getSingleton() is faster than Mage::getModel().
Example
$product1 = Mage::getSingleto… Read More
1. 获取已登录客户信息
// Check if any customer is logged in or not
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
// Load the customer's data
$customer = Mage::getSingleton('customer/session')->getCustomer();
$customer->getPrefix();
$customer->getName(); // Full Name
$customer->getFirstname(); // First Name
$cu… Read More
Magento uses MD5 and salt algorithems to store password for customer as well admin user.
How magento create encrypted password
Magento create encrypted password with,
Mage::getModel('core/encryption')->decrypt($password);
Here is the logic of decrypt($password) function,
$password = "12345678";
$salt = "at";
$encyPasswod = md5($salt.$pa… Read More
In your theme directory
In your /app/design/frontend/yourthemepackage/default/template/checkout/cart.phtml file OR /app/design/frontend/default/yourtheme/template/checkout/cart.phtml file
<form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
<?php echo $this->getBlo… Read More
Magento is nowadays the most known CMS if we are talking about eCommerce. We all know that a magento store have at its base blocks. Category blocks, Subcategories blocks, polls block, manufacturers blocks and more. Todays question for Stanley is: How to remove a default magento block like: Mangento poll block?
In a Magento webstore you
Product reviews helps in boosting customer’s confidence in your product. No points for guessing why they are one of the primary driving force behind conversion. Amazon is a great example of product reviews where a majority of the products are sold due to efficient reviews posted by their consumers.
To show the review form and product
This tutorial will show you how to remove Tags block from Magento product pageЖ
There are 2 ways of removing the tagging feature from product pages:
Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Tag’ to ‘Disable’Ж
Open the tag.xml under app/design/frontend/default/themeXXX/layout/ folder.Locate this line: ‘catalog_product… Read More
I’ve updated one of my stores to the new version 1.8.0 of Magento and all was great until I try the checkout. On the customer onepage checkout I just stuck on step Shipping Method, I could not get the payment information working.
After look in everywhere I found out it was just an update on the
It’s a common practice to use ratings for the products in the shopping website. This way visitors can rate the products according to their quality. By collecting rating results, website owners are able to summarize which products are best rated and therefore, provide more selling products. Also, it tends to attract more visitors for the