News:

Support the VirtueMart project and become a member

Main Menu

Disable Default selection of "notify customer" in order view

Started by lindapowers, April 02, 2013, 05:51:27 AM

Previous topic - Next topic

lindapowers

Hi

In order tu update all status for orders we have to manually unselect each order cause by default they have the "notify customer" clicked.

Any way to make it appear unselected by default?

Thanks

Joseph Kwan

modify or override the view in administrator/components/com_virtuemart/views/orders/tmpl/orders.php

Replace this line

echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][customer_notified]', 1) . JText::_ ('COM_VIRTUEMART_ORDER_LIST_NOTIFY');

with

echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][customer_notified]', 0) . JText::_ ('COM_VIRTUEMART_ORDER_LIST_NOTIFY');
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

lindapowers


lindapowers

Hi Joseph

Are you sure is that file?

We are on VM 2.020b and we can't find that line in the file you mention,

Regards

Joseph Kwan

Don't you find something similar? I guess should be somewhere around line 120, whatever version you are using. Or just search for the text 'customer_notified' and then change value from 1 to 0.
Joomla/VM Upgrade Services. Problems with your migration? We can help.
Custom extensions to VM. Performance Tuning. Template modifications and advices.
Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away.

lindapowers

<td><?php echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][customer_notified]', 0) . JText::_ ('COM_VIRTUEMART_ORDER_LIST_NOTIFY'); ?>

Line 127

Works perfectly, thanks a lot.