Post by denvercix » Thu Nov 02, 2017 1:52 pm

hi friends.
how to make unsafe customer red color on order list ?

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm

Post by sachin6609 » Thu Nov 02, 2017 2:47 pm

denvercix wrote:
Thu Nov 02, 2017 1:52 pm
hi friends.
how to make unsafe customer red color on order list ?
Hi

on what base you want to decide that the customer is unsafe and all that orders that is made from that customers are unsafe

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by denvercix » Thu Nov 02, 2017 2:50 pm

database table oc_customer
column safe

i want to mark red in unsafe on table

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm

Post by denvercix » Thu Nov 02, 2017 2:54 pm

safe=1 safe
safe=0 unsafe

Image

select * from oc_customer where safe=0

font color red in order list or sale/order/info

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm

Post by sachin6609 » Thu Nov 02, 2017 5:53 pm

denvercix wrote:
Thu Nov 02, 2017 2:54 pm
safe=1 safe
safe=0 unsafe

Image

select * from oc_customer where safe=0

font color red in order list or sale/order/info

Hiii

In admin customer list i can do something like this for you

If there is any customer is unsafe then that line will in red color

Otherwise it comes with normal white as usavavl

Thanks

Sachin

Attachments

unsafe customer.png

unsafe customer in red in customer list in admin - unsafe customer.png (17.57 KiB) Viewed 1713 times


Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by denvercix » Thu Nov 02, 2017 7:01 pm

how to make edit code ?
thnx...

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm

Post by sachin6609 » Thu Nov 02, 2017 7:25 pm

denvercix wrote:
Thu Nov 02, 2017 7:01 pm
how to make edit code ?
thnx...


Hi

Go to admin -> controller -> customer and open the customer.php file

then search the below code in the file

$data['customers'][] = array(

Then add the below line under that line

'safe' => $result['safe'],

Now go to admin -> view -> template -> customer and open the customer_list.tpl

Then search the below code in the file

<?php foreach ($customers as $customer) { ?>

Under that line you will find on <tr> tag just replace that <tr> tag with the below code

<?php if($customer['safe'] == '0') { ?>
<tr style="background:#F00;color:#fff">
<?php } else { ?>
</tr>
<?php } ?>


All The best

taking the back up of the file is a good habit to do any custom

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by denvercix » Thu Nov 02, 2017 8:37 pm

Thnksss.

How to make this red mark on order list?
admin/index.php?route=sale/order

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm

Post by sachin6609 » Thu Nov 02, 2017 9:31 pm

denvercix wrote:
Thu Nov 02, 2017 8:37 pm
Thnksss.

How to make this red mark on order list?
admin/index.php?route=sale/order
Hii

Well For That i need some more custom for the order

Now i am leave for a day now from my office desktop so...

But i Will Surely Help You by 2marrow Morning

Keep Checking the Post

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by denvercix » Fri Nov 03, 2017 7:59 pm

Thnx...

Newbie

Posts

Joined
Sun Sep 24, 2017 7:23 pm
Who is online

Users browsing this forum: Ahrefs [Bot] and 20 guests