Post by speedingorange » Thu Mar 20, 2014 11:08 pm

Hi All,

Can anyone point me in the the right direction for how to change the div class of the shopping cart depending on if it is empty or not?

e.g. I want to make it light up red if it has an item in it.

I am running OC 1.5.1.3 with a custom theme, but I am sure the mechanics for switching the div class from #cart to #fullcart or similar will be similar?

Many Thanks
Speedingorange

Active Member

Posts

Joined
Tue Feb 23, 2010 7:33 pm

Post by butte » Fri Mar 21, 2014 2:54 am

You essentially need to insert if none then div #1 else div #2, in ordinary if-then-else syntax where the div echoes.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: Amazon [Bot] and 64 guests