magento 修改 paypal order product name
2013-09-26 21:41
471 查看
app/code/core/Mage/Sales/Model/Quote Item.php
public function setProduct($product) { if ($this->getQuote()) { $product->setStoreId($this->getQuote()->getStoreId()); $product->setCustomerGroupId($this->getQuote()->getCustomerGroupId()); } $this->setData('product', $product) ->setProductId($product->getId()) ->setProductType($product->getTypeId()) ->setSku($this->getProduct()->getSku()) ->setName($product->getName()."|S") // this line ->setWeight($this->getProduct()->getWeight()) ->setTaxClassId($product->getTaxClassId()) ->setBaseCost($product->getCost()) ->setIsRecurring($product->getIsRecurring()) ; if ($product->getStockItem()) { $this->setIsQtyDecimal($product->getStockItem()->getIsQtyDecimal()); } Mage::dispatchEvent('sales_quote_item_set_product', array( 'product' => $product, 'quote_item'=>$this )); // if ($options = $product->getCustomOptions()) { // foreach ($options as $option) { // $this->addOption($option); // } // } return $this; }
相关文章推荐
- 整型数组处理算法(二)文件中有一组整数,要求排序后输出到另一个文件中
- N小时改变一次url时间戳的方法
- 《UNIX环境高级编程》笔记--chown,fchown和lchown函数
- 解决一个maven在eclipse中M2_HOME不能调整的问题
- c++动态联编与静态联编
- 单源最短路径—Bellman-Ford和Dijkstra算法
- 如何禁用注册表 解禁注册表
- Fx Composer2.5 在Win8.1下无法运行的解决方法
- 硬盘“坏了”怎么办
- Mex
- php文件操作及html生成
- 关于PHP页面显示乱码问题的解决
- 关于 lighttpd 和它的流行看出 开源社区是如何的不严谨
- 上传文件
- 分页管理
- PHP+MYSQL 简单的留言板
- 简单的留言板
- PYTHON错误大总结!
- JavaScript运算符有哪些
- 图像处理之反色和补色