magento教程 Magento运费设置CSV方法及简单说明 Magento 默认启用的是固定运费(Flat Rate),但是有时候我们需要按照重量来计算 快递费 ,所以,我们可以用 表运费 (Table Rate)来实现这个功能。 作为我们国内 Magento 网站来说,如果我们需... 2016-03-08 阅读全文
magento教程 magento订单信息中包含产品链接 对于magento后台订单处理的时候来讲,有时候需要在前台去看一下这个产品的某些具体的信息,MAGENTO后台订单信息中无法直接查看前台中的产品信息,给使用过程中造成诸多不便, 现在... 2016-03-07 阅读全文
magento教程 Magento购物车Checkout Onepage页面的SaveBilling处理过程 在Magento Checkout Onepage 中SaveBilling处理大致可分以下几步 1、通过Ajax提交到OnePageController.php的saveBillingAction方法 //在billing.phtml中利用Javascript对Billing类进行创建,并在该页面中通过billing... 2016-03-07 阅读全文
magento教程 magento更新购物车产品数量 1、向购物车中添加产品 $params = array(); $product = Mage::getModel(catalog/product)-load($productid); $params[qty] = 1; $cart = Mage::getSingleton(checkout/cart); $cart-addProduct($product, $params); $cart-save(); $success = DIY定制... 2016-03-07 阅读全文
magento教程 如何对Magento产品进行分目录的产品搜索 Magento: 如何对产品进行分目录的产品搜索 In advanced search feature, searching product by category is not the default setting. But we can do this by modifying the foloowing files: app/code/core/Mage/CatalogSearch/Block/Advance... 2016-03-06 阅读全文
magento教程 给Magento常用的Block添加缓存 1、产品页面 修改文件:app\code\local\Mage\Catalog\Block\Product\View.php 在_prepareLayout方法前面添加方法: [php] view plaincopy在CODE上查看代码片派生到我的代码片 protected function _construct() { $this-ad... 2016-03-06 阅读全文
magento教程 magento自定义的payment method是否可用的判断 magento自定义的payment method是否可用的判断 /app/code/core/Mage/Payment/Model/Method/Abstract.phpisApplicableToQuote() payment method类会继承Mage_Payment_Model_Method_Abstract 在模板里会判断payment method是否可以显示... 2016-03-06 阅读全文
magento教程 Magento对csv表格的导入功能 高级自定义部分! magento自己带有导入导出功能 后台system--import/export--Advanced Profiles 进入后点击add new profiles 就可以新建一个规则了 Profile Name *是名字 Actions XML *是对应的参数 譬如例子: action type=dataflow/c... 2016-03-05 阅读全文
magento教程 Mmagento得到订单各种货币下,换算成USD的订单总额 Mmagento得到订单各种货币下,换算成USD的订单总额 $_sub = order-getGrandTotal(); $orderCurrency = $order-getData(order_currency_code); $currency_rate = $currency-load(USD)-getAnyRate($orderCurrency); $amount = $_sub / $curre... 2016-03-05 阅读全文
magento教程 magento添加调用block的几种方法 magento静态块主要是指在后台添加的可用静态块 调用方法常见的有如下几种:(这边就不介绍使用widgets调用的方法了,有兴趣的朋友可以自己在后台widgets中尝试设置) 1、直接在HomePa... 2016-03-04 阅读全文