Bug invoice management after new order status?

  • Posts: 177
  • Thank you received: 1
10 years 9 months ago #168641

-- HikaShop version -- : latest
-- Joomla version -- : latest

Hi Guys,
i done this:
1) Create a new order status "Pagamento in attesa di verifica" down main order status "created"
2) Create a new payment method called "Bonifico Bancario" and select after order status is " Pagamento in attesa di Verifica"
3) On configuration, set invoice create just when order is in status "confirmed"

In this case, hikashop should not enable the order to print the invoice on user control panel but... THIS APPENED!

Why? Made i some mistakes?

PS: I'm using a PDF Attach plugin (i don't know if it is relevant or not)

Thanks Guys!

Andrea







Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
10 years 9 months ago #168695

Hi,

If you edit the file "show" of the view "order", you'll see that line:

if( $this->config->get('print_invoice_frontend') && !in_array($this->element->order_status,array('created','refunded','cancelled'))){ ?>
So the invoice will be available on the order details page as long as the order status is different than created, refunded and cancelled.
It doesn't take into account the order invoice statuses option of the configuration.
So just add the name of your status in that code and it will work like you want.

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 1
10 years 9 months ago #168738

Thanks!
I've added the name 'my status order' and it works perfectly.

And

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum