Post by domivin » Tue Mar 15, 2016 12:16 am

Hi
I add code

Code: Select all

<?php if ($this->customer->isLogged()) { ?>
             <center><h86><i class="fa fa-user"></i></h86> <h50><?php echo $seller['nickname']; ?></h50></center>
            <?php } else { ?>

<center><h84><i class="fa fa-user"></i></h84>  <h50><?php echo $seller['nickname']; ?></h50></center>


            <?php } ?>
So when the customer is looged, he fa-user comes in green, but only the customer can see.

How to display ffor all customer not looged that they can see , this customer is logged?

Thanks
Best regards
Michel

Version 2.1.0.1
Hébergement LWS
Template default modified
Multimerch modified


New member

Posts

Joined
Thu Nov 13, 2014 3:06 am

Post by abxweb » Tue Mar 15, 2016 12:43 am

Which tpl file are you trying to edit? And can you be more detailed, i couldn't understand you.

Check my FREE extension - Frontend Admin Toolbar
http://www.opencart.com/index.php?route ... n_id=26059

For any inquiry or questions contact me at: abxweb[at]outlook[dot]com


User avatar
New member

Posts

Joined
Fri Mar 04, 2016 5:47 pm
Location - Serbia

Post by domivin » Tue Mar 15, 2016 1:54 am

I try to modify the product.tpl, because I add some code inside, I can send you by MP

Michel

Version 2.1.0.1
Hébergement LWS
Template default modified
Multimerch modified


New member

Posts

Joined
Thu Nov 13, 2014 3:06 am

Post by budgetneon » Tue Mar 15, 2016 7:33 am

Sounds like he wants a list of "Logged In Customers" showing on the website.

Opencart does have functionality to show logged in customers, but only in the admin area (Reports->Customers->Customers Online)...not on the website itself.

You would basically need to copy the model/view/controller for that report into the normal, non-admin area, and make whatever tweaks you need. Not trivial if you haven't done something like that with opencart before.

New member

Posts

Joined
Sat Sep 20, 2014 11:32 pm

Who is online

Users browsing this forum: No registered users and 34 guests