botz Posted October 6, 2008 Posted October 6, 2008 Hello everyone I need some help. I've installed the Independant Invoice number contribution. This contribution generates a unique invoice number for every order when you click on the invoice button. However, I want to hide the invoice button on the admin control panel and only show it when an order is on staus 3 or "delivered". That way the invoices will be all consecutive even when one order is cancelled. Hope anyone can help!
Guest Posted October 8, 2008 Posted October 8, 2008 Hello everyone I need some help. I've installed the Independant Invoice number contribution. This contribution generates a unique invoice number for every order when you click on the invoice button. However, I want to hide the invoice button on the admin control panel and only show it when an order is on staus 3 or "delivered". That way the invoices will be all consecutive even when one order is cancelled. Hope anyone can help! Not too difficult, While I've not seen the code for IIN, 1) Open orders.php 2) Search for the button. (The button may be an image, or may be part of a form (manually created) or may be part of a function ie . tep_image_button( 3) Encapsulate the code in the following if ($orders_status['orders_status_id'] == 3) { ****CODE HERE****(remove this entire line and repalce with code) }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.