新Magento开发者最容易出现的3个错误

piaoling  2011-07-18 11:53:41

首先,Rikku 要告诉您,这是写给刚刚开始接触 Magento 的开发者的一篇涂鸦。这里面列举了三个典型的错误例子,即使您现在是一位 Magento 的专家,那么在您还是菜鸟的时候也有可能犯过。所以,请仔细阅读,那么你在起步学习 Magento 的时候可以回避这些错误。 第一个错误时下载 Magento full release,然后尝试通过 FTP 上传至服务器。其实有一种更容易的方式就是使用 Magento downloader method ,它不仅可以保证你的 Magento 版本最新,最重要的是这么做不会使你的 ......

类别 :  magento(258)  |  浏览(4156)  |  评论(0)

display message

piaoling  2011-07-18 11:01:54

$this->_initLayoutMessages('catalog/session'); $this->_initLayoutMessages('checkout/session'); protected function _initLayoutMessages($messagesStorage)     {         if (!is_array($messagesStorage)) {             $messagesStorage = array($messagesStorage);         }         foreach ($messagesStorage as $storageName) {             $stor......

类别 :  magento(258)  |  浏览(4344)  |  评论(0)

get current category

piaoling  2011-07-18 10:55:21

public function getCategoryId()     {         if ($category = Mage::registry('current_category')) {             return $category->getId();         }         return false;     } ......

类别 :  magento(258)  |  浏览(3137)  |  评论(0)

通过产品属性和目录获取产品

piaoling  2011-07-18 10:37:38

public function getProducts()     {         $categories = $this->helper('specific')->getAllCategories();         $hightlightProducts = array();         if($categories)             foreach($categories as $category_id)             {                 $collection = Mage::getMod......

类别 :  magento(258)  |  浏览(3816)  |  评论(0)

conncetion

piaoling  2011-07-15 16:36:32

备案核验号:0884472 ......

类别 :  日志(47)  |  浏览(4282)  |  评论(0)

google 绑定

piaoling  2011-07-15 16:08:12

66.249.89.104 google.com [PM 4:18:59] Louis Li says: C:\WINDOWS\system32\drivers\etc ......

类别 :  默认(748)  |  浏览(3663)  |  评论(0)

Magento Set Session value and Get Session value

piaoling  2011-07-14 19:05:32

Magento Set Session value and Get Session value   Set a Session value into a session Id in magento is little bit different. If you want to follow the Magento process than you must have to write the code given below to set a value and get a value of a particular Session Id. To set Session write <?php Mage::getSingleton('core/session')->setData('session_Id'); ?> To get that session value write <?php Mage::getSingleton('core/session')->getData('session_Id'); ?>   from:https://aniscartujo.com/webproxy/default.aspx?prx=http......

类别 :  magento(258)  |  浏览(3318)  |  评论(0)

get Special price or Regular Price in magento

piaoling  2011-07-14 19:03:44

get Special price or Regular Price in magento   To get Special Price or Regular Price of a product you need to Know the product Id. Then write the code Below to fetch the All Price of a procduct <?php  $product= Mage::getModel('catalog/product')->load(product_id);  $price = $product->getPrice(); $webprice = $product->getwebprice(); $specialprice = $product->getFinalPrice(); if($specialprice==$price) {?> <span class="price">$<?php echo number_format($price,2);?></span> <?php } else { ?> <div class=&qu......

类别 :  magento(258)  |  浏览(3351)  |  评论(0)

How to show add Success message and add Error message in Magento

piaoling  2011-07-14 18:59:26

How to show add Success message and add Error message in Magento   This is one of the easiest way to show Either Error message or Success message in magento for one time.If you are thinking to show an error message or success message one time when a page load then it is the best method to use in mganeto. Show Error Message in frontend $message = $this->__('Email Id Already Exist.'); Mage::getSingleton('core/session')->addError($message); Show Success message in frontend $message = $this->__('You have Register Successfully'); Mage::getSingl......

类别 :  magento(258)  |  浏览(3455)  |  评论(0)

How to Create Custom login Session in magento

piaoling  2011-07-14 18:57:54

How to Create Custom login Session in magento   If you are trying to make a custom login module in magento then Magento have a default functionality to make a Custom login session,Which destroy automattically after some time, if you will be Inactive for a moment. Here I am showing you How to set login session value and How to get login session value. $username=$this->getRequest()->getParam('username'); $password=$this->getRequest()->getParam('password'); $sql='select * from `tablename` where `username`= "'.$username.'" and `pass......

类别 :  magento(258)  |  浏览(3326)  |  评论(0)
  • Page:46/145  1448 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类