当前位置: 代码迷 >> Paypal >> magento 批改 paypal order product name
  详细解决方案

magento 批改 paypal order product name

热度:235   发布时间:2016-05-21 02:42:01.0
magento 修改 paypal order product name
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;    }

  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Thu Sep 20 17:09:54 CST 2018
  • 最近登录:Thu Sep 20 17:09:54 CST 2018
  • 最近登录:Thu Sep 20 17:09:54 CST 2018
  • 最近登录:Thu Sep 20 17:09:54 CST 2018
  • 最近登录:Thu Sep 20 17:09:54 CST 2018