php - Magento 1.9.3.1 Re-Order not showing custom price -


just noticed on magento site, if have placed order customer using custom price, when using re-order function not pull on custom price previous order.

i have tried adding code on file app/code/local/mage/adminhtml/model/sales/order/create.php, under initfromorderitem public function

if ($orderitem->getoriginalprice() != $orderitem->getprice()) $item-     setcustomprice($orderitem->getprice()); 

when using code tick custom price, in custom price box displays original price.

can advise on this?


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -