VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jlabuelo_sm on November 06, 2016, 21:28:10 PM

Title: Order filter by status - How to set a default value?
Post by: jlabuelo_sm on November 06, 2016, 21:28:10 PM
hi there
This must seem an easy question, (or maybe it is not possible in Virtuemart3) but I have been looking for this for days!!
We are using virtuemart 3.0.18 over our joomla system,and everything works fine. Issue is that in the orders list screen there is a combo to filter the orders shown by the status of the order. The default value always is "Choose order status", and we would like to set this default value of the filter to "Confirmed", so everytime an user gets to this screen is able to check first the confirmed orders and then if needed check orders with other status.

Is this possible?, and if so, how can we do it? (even if we need to modify any php code).
Thanks a lot in advance!!
Title: Re: Order filter by status - How to set a default value?
Post by: K&K media production on November 07, 2016, 16:42:59 PM
for the left admin menu orders link:

go to your database table #__virtuemart_adminmenuentries, edit the item where name is COM_VIRTUEMART_ORDER_S and paste this url as link:
index.php?option=com_virtuemart&view=orders&order_status_code=C

for the joomla top menu orders link:

go to your database table #__menu, edit the item where title is COM_VIRTUEMART_MENU_ORDERS and paste this url as link:
index.php?option=com_virtuemart&view=orders&order_status_code=C
Title: Re: Order filter by status - How to set a default value?
Post by: jlabuelo_sm on November 11, 2016, 16:49:06 PM
Thanks a lot!.

Worked fine!!!
Title: Re: Order filter by status - How to set a default value?
Post by: Milbo on November 14, 2016, 19:59:38 PM
We need a " I like this post" function here