Post by earthgirlllc » Wed Jul 18, 2018 8:26 am

Hi - I'm using OC2.3 and Journal Framework and I just need to find a way to enable some CSS if the customer is logged in. I'm not well versed in the controller area and my trial & error with this is more error than anything. ;D

Any tips would be appreciated!

Thank you!

New member

Posts

Joined
Mon Apr 11, 2011 11:02 am

Post by DigitCart » Wed Jul 18, 2018 2:09 pm

Hi,
In this file:

Code: Select all

catalog\view\theme\your-theme\template\common\header.tpl
Add before </head>:

Code: Select all

<?php if ($logged) { ?>
	<style>
		body {background: black;}
	</style>
<?php } ?>
Then clear your caches.

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by earthgirlllc » Thu Jul 19, 2018 2:26 am

Thank you! I was making it much more complicated than it needed to be apparently!! That worked and I appreciate your time. :)

New member

Posts

Joined
Mon Apr 11, 2011 11:02 am

Post by DigitCart » Thu Jul 19, 2018 2:36 am

You're welcome!

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: No registered users and 5 guests