Magento 移除标签 How to remove “Tags” block from a product page

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

Magento 购物车不能加载付款栏 Magento 1.8 and 1.9 Payment not loading on Checkout

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

Magento 开启星级评价 How to add the yellow star rating system

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

Magento 自定义分页代码 How to change pagination design in product listing page in magento

I have worked in the template\catalog\product\list\toolbar.phtml where you can change the total toolbar design. But there have a function <?php echo $this->getPagerHtml() ?> it’s for the pagination. if you want to change pagination html then go to the template\page\html\pager.phtml and you can change it from here.   本文:Magent… Read More

Magento 获取系统设置 How to get data from Magento System Configuration

I just wandering on how I can get the configuration data for my custom module. The configuration can be set from the admin system->configuration and how to pull it in frontend? 解决: $configValue = Mage::getStoreConfig('sectionName/groupName/fieldName'); sectionName, groupName and fieldName are present in etc/system.xml file of your module. The… Read More

Magento: 解决 Bootstrap 3 与prototype并用的时候, 下拉菜单消失的问题 Bootstrap 3 dropdown menu disappears when used with prototype.js

方法一 :  使用友善的文件 EASY FIX: Just replace Magento’s prototype.js file with this bootstrap friendly one: https://raw.github.com/zikula/core/079df47e7c1f536a0d9eea2993ae19768e1f0554/src/javascript/ajax/original_uncompressed/prototype.js You can see the changes made in the prototype.js file to fix the bootstrap issue here: https://… Read More

Magento 创建用户代码 Creating a new customer in Magento(RESTful,PHP)

$customer = Mage::getModel('customer/customer'); //$customer = new Mage_Customer_Model_Customer(); $password = 'iks123456'; $email = 'gotodiscuss@ikeepstudying.com'; $customer->setWebsiteId(Mage::app()->getWebsite()->getId()); $customer->loadByEmail($email); //Zend_Debug::dump($customer->debug()); ex… Read More

magento 1.9 用户无法登录 magento 1.9 customer can not login

Looks like an issue with form-key Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under Find: <ul class=”form-list”> And paste this right after the code above the following: <input name="form_key" type="hidden" value="<?ph… Read More

Magento 获取已登录用户的信息– Get Logged In Customer’s Full Name, First Name, Last Name and Email Address

// 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 $customer->g… Read More

Magento 主题结构 The structure of a Magento theme

The structure of a Magento theme The files in a Magento theme are divided into two main directories: app and skin, as shown in the following screenshot: The following is the description of the two directories: app: The app/design/frontend/base/default/ directory contains the layout, translation, and template files skin: The skin/frontend/base/defa… Read More

Magento教程 77:在Magento中整合CSS及Javascript

为了提升网站效能、减少HTTP requests,将众多的javascript及css整合在一起,是一件必要的工作。 关于这一方面,magento提供一个简便的方法,请参考下列教学步骤。 Step 1: 登入magento后台 依System > Configuration > ADVANCED > Developer > 找到JavaScript Settings 及CSS Settings。 Step 2: 将Merge JavaScript Files及Merge CSS Files设成Yes 。 Step 3: 记得清除cache。 让我们来看看整合前后的比较: 整合前: 整合后: 我们再利用Pingdom Website Sp… Read More