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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -