Skip to main content

Bug invoice management after new order status?

More
12 years 1 month ago #168641 by andreasuriani
-- 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






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

More
12 years 1 month ago #168695 by nicolas
Hi,

If you edit the file "show" of the view "order", you'll see that line:
Code:
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.

More
12 years 1 month ago #168738 by andreasuriani
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.163 seconds
Powered by Kunena Forum