besssbesss Posted July 11, 2013 Share Posted July 11, 2013 Bonjour, Je voudrais savoir comment on pourrait faire pour pouvoir éditer une commande à tous les statuts svp ? Je pense qu'il faut modifier ca dans adminorderscontroller mais je ne sais pas comment faire. Quelqu'un pour m'aider svp ? public function initToolbar() { if ($this->display == 'view') { $order = new Order((int)Tools::getValue('id_order')); if ($order->hasBeenShipped()) $type = $this->l('Return products'); elseif ($order->hasBeenPaid()) $type = $this->l('Standard refund'); else $type = $this->l('Cancel products'); if (!$order->hasBeenShipped() && !$this->lite_display) $this->toolbar_btn['new'] = array( 'short' => 'Create', 'href' => '#', 'desc' => $this->l('Add a product'), 'class' => 'add_product' ); if (Configuration::get('PS_ORDER_RETURN') && !$this->lite_display) $this->toolbar_btn['standard_refund'] = array( 'short' => 'Create', 'href' => '', 'desc' => $type, 'class' => 'process-icon-standardRefund' ); if ($order->hasInvoice() && !$this->lite_display) $this->toolbar_btn['partial_refund'] = array( 'short' => 'Create', 'href' => '', 'desc' => $this->l('Partial refund'), 'class' => 'process-icon-partialRefund' ); } $res = parent::initToolbar(); if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new']) && Shop::isFeatureActive()) unset($this->toolbar_btn['new']); return $res; } Merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now