magento product price

piaoling  2011-07-25 11:41:41

Normally in magento Price shown including Tax.But if you want to show Price Excluding Tax then you need to call the following helper class. <?php echo $this->helper('checkout')->formatPrice($_product->getPrice()) // For Special Price write this echo $this->helper('checkout')->formatPrice($_product->getSpecialPrice()) ?>   from:https://aniscartujo.com/webproxy/default.aspx?prx=http://xhtmlandcsshelp.blogspot.com/2010/11/magento-get-product-price-excluding-tax.html&rct=j&q=magento get price with tax&ei=POgsTp-6MsfkmAX75oW6Dw&am......

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

magento eav sql

piaoling  2011-07-25 11:01:13

SELECT `e`. * , `_table_color`.`value` AS `color` FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_product_entity_int` AS `_table_color` ON ( _table_color.entity_id = e.entity_id ) AND ( _table_color.attribute_id = '272' ) AND ( _table_color.store_id =0 ) WHERE ( ( _table_color.value IN ( '24,11' ) ) ) LIMIT 0 , 30 ......

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

get product stock qty

piaoling  2011-07-22 11:56:30

<?php (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>   ......

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

How to get currency symbol?

piaoling  2011-07-22 10:52:18

How to get currency symbol? Code is useful for get currency symbol           Mage::app()->getLocale()->currency(Mage::app()->getStore()->      getCurrentCurrencyCode())->getSymbol() or if you want to pass a certain currency code simply specify it:      Mage::app()->getLocale()->currency('EUR')->getSymbol()     Source  : http://www.activecodewar.com/ ......

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

magento category

piaoling  2011-07-21 13:34:47

$store = Mage::getModel('catalog/category')->setStoreId(3)->load(10); ......

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

get a list of all categories about target store

piaoling  2011-07-21 13:23:50

require_once $_SERVER[’DOCUMENT_ROOT’]."/app/Mage.php"; Mage::app(’1’); function nodeToArray(Varien_Data_Tree_Node $node) { $result = array(); $result[’category_id’] = $node->getId(); $result[’parent_id’] = $node->getParentId(); $result[’name’] = $node->getName(); $result[’is_active’] = $node->getIsActive(); $result[’position’] = $node->getPosition(); $result[’level’] = $node->getLevel(); $result[’children’] = array(); foreach ($node->getChil......

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

load store by code

piaoling  2011-07-21 10:17:54

$store = Mage::getModel("core/store")->load("french","code"); ......

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

Read Timed Out after 10 seconds magento

piaoling  2011-07-20 18:47:41

TheGingerOne - 06 October 2010 05:34 AM Hi, I had a similar problem recently with only being able to submit a few records at a time before the timeout message. I found out that you can increase the timeout limit in the Zend directories and thus give yourself a better chance of your items going through. Edit the following file on your server:  /lib/Zend/Http/Client.php Locate the following line: ‘timeout’ => 10 Increase it to what you need it to be. I set it to 30 which did the job for me. I’m very new to Magento and haven’t got......

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

xdebug 配置及使用详细

piaoling  2011-07-20 17:24:14

xdebug是PHP的一个扩展应用,有了xdebug就可以轻松的调试PHP程序,有了它,我们就不用使用var_dump(),print_r()之类的傻瓜调试函数了。 Xdebug则提供了更多的功能,能全方位的对PHP脚本进行调试。Xdebug主要的功能如下: 堆栈追踪和函数追踪; 错误信息; 内存分配; 剖析php脚本的信息; 代码覆盖率分析; 远程调试分析; 1、Ubuntu搭建xdebug调试环境 安装Xdebug模块 在终端中使用apt-get安装xdebug,命令如下 sudo apt-get install php5-dev php-pear sudo ......

类别 :  web(2)  |  浏览(5013)  |  评论(0)

HP大中华区总裁孙振耀退休感言

piaoling  2011-07-20 13:00:14

HP大中华区总裁孙振耀退休感言 : 如果这篇文章没有分享给你,那是我的错。 如果这篇文章分享给你了,你却没有读,继续走弯路的你不要怪我。 如果你看了这篇文章,只读了一半你就说没时间了,说明你已经是个“茫”人了。 如果你看完了,你觉得这篇文章只是讲讲大道理,说明你的人生阅历还不够,需要你把这篇文章珍藏,走出去碰几年壁,头破血流后再回来,再读,你就会感叹自己的年少无知。 如果你看完了,觉得很有道理,然后束之高阁......

类别 :  感悟(15)  |  浏览(4284)  |  评论(0)
  • Page:45/146  1451 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类