| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Rotating the Main Image based on categories | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
replace $categoryid with $cat
__________________
xcart 5.1.2 |
|||||||||
#22
|
|||||||
|
|||||||
Re: Rotating the Main Image based on categories
Here's our url: www.clintonelectronics.com/store
I'm still in the customizing stage so it's unfinished, and in some areas purposely ugly for me to get back to when other areas are complete. Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#23
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
{if $main and $cat eq "249" }
1 {elseif $main and $cat eq "250"} 2 {elseif $main and $cat eq "252"} 3 {else} 4 {/if} this works on my server. the smarty is correct. make sure the categorey number are correct.
__________________
xcart 5.1.2 |
|||||||||
#24
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
where did you get you category numbers from? I don;t see 110, 120, 130 in your store? those look like sort numbers to me. the $cat number can be found in the URL when you click on the category.
__________________
xcart 5.1.2 |
|||||||||
#25
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
I tested this on my server. I replaced the images with simple text and it worked.
__________________
xcart 5.1.2 |
|||||||||
#26
|
|||||||
|
|||||||
Re: Rotating the Main Image based on categories
AWESOME.... Thank you Ashley and Vetrivel! I have this working now on my computer. You were right Ashley, I was using the order_by number and not the parentid from my cpanel.
For those interested the code is as follows: <div class="HeadLine" style="text-align: left; height: 153px; width: 100%; margin: 10px 0px 0px 0px"> {if $main and $cat eq "68" } <img src="{$ImagesDir}/IR_HdrImg.jpg" /> {elseif $main and $cat "15"} <img src="{$ImagesDir}/textbanner.jpg"/> {elseif $main and $cat eq "16"} <img src="{$ImagesDir}/textbanner.jpg" /> {elseif $main and $cat eq "14"} <img src="{$ImagesDir}/textbanner.jpg" /> {else} <img src="{$ImagesDir}/IR_HdrImg.jpg"/> {/if} </div> Also works for subcategory as: {elseif $cat "70"} <img src="{$ImagesDir}/textbanner.jpg"/> Thanks again, Christine
__________________
______________ version 4.1.9 Gold |
|||||||
#27
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
whew! that was a tough one glad its working.
__________________
xcart 5.1.2 |
|||||||||
#28
|
|||||||
|
|||||||
Re: Rotating the Main Image based on categories
Me too! Thank you for sticking with me. I've been able to find the "how to" for most of my customizing wants with the posts from the experts on these forums. This is why I try to post my final results when I get something working properly.
Thanks again. Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#29
|
|||||||||
|
|||||||||
Re: Rotating the Main Image based on categories
thats great.and finally you got it..
Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|