Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
If
Steven E



Joined: 03 Jul 2011
Posts: 75

Posted: 01/17/12 23:14 
Can you help me complete this?



{if **items in cart are****** > 0}
<a href="{$MASTER_URL}/{$jamroom_index}?mode=cp&amp;page=cart"><img src="{$JAMROOM_URL}/themes/Flashback/images/display-image1.jpg"></a>
{else}
<a href="{$MASTER_URL}/{$jamroom_index}?mode=cp&amp;page=cart"><img src="{$JAMROOM_URL}/themes/Flashback/images/display-image2.jpg"></a>
{/if}

This is in the - themes/Flashback/theme_side.tpl - *..and its not the same as the one in the overall_footer.

Confused


_________________
Learning something new everyday.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 01/22/12 12:50 
I think you can use {$_USER.vault_cart_count}

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Steven E



Joined: 03 Jul 2011
Posts: 75

Posted: 01/22/12 12:51 
Thank you. I'll give it a shot.


_________________
Learning something new everyday.
Back to top
Steven E



Joined: 03 Jul 2011
Posts: 75

Posted: 01/22/12 14:24 
...hmmm...still not working. The image is a .gif so I swapped it with a .png to see if it made a difference...none.

Suggestions?


_________________
Learning something new everyday.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 01/28/12 11:47 
What does {$_USER.vault_cart_count} output?

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Steven E



Joined: 03 Jul 2011
Posts: 75

Posted: 01/28/12 12:16 
Check it:

The effect I was trying to achieve was when a user has nothing in their cart, the checkout image displayed is inactive, once a user adds an item to their cart the animated gif creates a glowing effect on that image.

I had the image displayed in 2 areas 1 on the home page (skin) and 2 in user profiles (theme). The one on the homepage displayed fine, the one in the user profiles didn't.

I used {$_USER.vault_cart_count} and for some reason it just wouldn't work. I tried other variations...nothing worked...so, I eventually just gave up...

Rolling Eyes


_________________
Learning something new everyday.
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.