VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: lindapowers on April 02, 2013, 05:51:27 AM

Title: Disable Default selection of "notify customer" in order view
Post by: lindapowers on April 02, 2013, 05:51:27 AM
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
Title: Re: Disable Default selection of "notify customer" in order view
Post by: Joseph Kwan on April 02, 2013, 07:22:52 AM
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');
Title: Re: Disable Default selection of "notify customer" in order view
Post by: lindapowers on April 02, 2013, 15:03:13 PM
Thanks Joseph!

Regards
Title: Re: Disable Default selection of "notify customer" in order view
Post by: lindapowers on April 11, 2013, 01:05:13 AM
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
Title: Re: Disable Default selection of "notify customer" in order view
Post by: Joseph Kwan on April 11, 2013, 01:20:22 AM
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.
Title: Re: Disable Default selection of "notify customer" in order view
Post by: lindapowers on April 11, 2013, 01:39:16 AM
<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.