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 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

Active Member


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


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

Users browsing this forum: No registered users and 3 guests