Jump to content

[Solved] Remove "stock" column in order detail admin page


Recommended Posts

Change lines 613-616 of admin/tabs/AdminOrders.php:

'.($order->hasBeenPaid() ? ''.$this->l('Refunded').'' : '').'
'.($order->hasBeenDelivered() ? ''.$this->l('Returned').'' : '').'
'.$this->l('Stock').'
'.$this->l('Total').'



to:

'.($order->hasBeenPaid() ? ''.$this->l('Refunded').'' : '').
// '.($order->hasBeenDelivered() ? ''.$this->l('Returned').'' : '').'
// '.$this->l('Stock').'
''.$this->l('Total').'



and lines 663-666 from:

'.($order->hasBeenPaid() ? ''.intval($product['product_quantity_refunded']).'' : '').'
'.($order->hasBeenDelivered() ? ''.intval($product['product_quantity_return']).'' : '').'
'.intval($stock['quantity']).'
'.Tools::displayPrice($product['product_price'] * (1 + ($product['tax_rate'] * 0.01)) * (intval($product['product_quantity']) - $product['customizationQuantityTotal']), $currency, false, false).'



to:

'.($order->hasBeenPaid() ? ''.intval($product['product_quantity_refunded']).'' : '').
//'.($order->hasBeenDelivered() ? ''.intval($product['product_quantity_return']).'' : '').'
//'.intval($stock['quantity']).'
''.Tools::displayPrice($product['product_price'] * (1 + ($product['tax_rate'] * 0.01)) * (intval($product['product_quantity']) - $product['customizationQuantityTotal']), $currency, false, false).'

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...