![]() |
Re: Subcategory text & images for x-cart 4.1.5
Quote:
If you look in the really long line that starts with: Code:
<td class="ColumnTitles" valign="top"> You will see: Code:
{$xcart_w eb_dir} There should be no space between the 'w' and the 'e' in web. Jason |
Re: Subcategory text & images for x-cart 4.1.5
Great Little mod, i have this workng a treat on 4.1.8, is there a way to have it 4 columns across raether than just the 2 ?
|
Re: Subcategory text & images for x-cart 4.1.5
Nice little find, It worked right away on 4.1.6. Changed to 3 wide.
{foreach from=$subcategories item=subcat} {if $tmp is div by 3} Don't forget about adding to the skin1 css file. /* Catagory Display Rework */ .ColumnTitles { margin: 0; padding: 5px 5px 0 5px; text-align: center; width: 33%; } .ItemsList { padding: 0; color: #374C79; font-weight: bold; font-size: 12px; } |
Re: Subcategory text & images for x-cart 4.1.5
1 Attachment(s)
After changing the width to 3 across, any help on having the text displaying the number of products display below the category name instead of after it? I have several category names that are long and the number of products breaks apart. Image attached.
|
Re: Subcategory text & images for x-cart 4.1.5
kevin02,
I've deleted the word 'products' from my code, and just have the number quantity of subcatagories in parenthesis display. Here is the post I did for v4.1.8 and you can see the screenshots of the way it displays without the word 'products'. http://forum.x-cart.com/showpost.php?p=183821&postcount=211 But if you do need the quantity and the word 'products' on the next line, then all you need to do is put a <br> tag at the end of the line of code that says: Code:
so the code will look like this: Code:
And that's it! - MoonDog - |
Re: Subcategory text & images for x-cart 4.1.5
Be sure to use <span> tags and not <font> tags, as font tags are now depreciated and should not be used.
|
Re: Subcategory text & images for x-cart 4.1.5
Thanks for the information, It worked perfect.
|
Re: Subcategory text & images for x-cart 4.1.5
FONT element deprecated in HTML 4.01, thanks balinor. I'll keep that in mind.
One question though, is it bad programming practice to use the <br> tag instead of the <br/> in the line of code I used above? Even though they both do the same thing, should I use a <br/> tag to break a paragraph and the <br> tag to enter blank lines? Or does it really matter? To kevin02, glad you got it working. - MoonDog - |
Re: Subcategory text & images for x-cart 4.1.5
It depends on what doctype you are using. 4.1 uses XHTML 1.0 Transitional by default, which means you need to use <br /> and also close every IMG tag with a /. You can read up on the standards here:
http://www.w3.org/ You should also validate your site using their validator, and fix any issues. |
Re: Subcategory text & images for x-cart 4.1.5
balinor, thanks for the info.
- MoonDog - |
Re: Subcategory text & images for x-cart 4.1.5
hey I am trying to do this how did you manage it.
Andy |
Re: Subcategory text & images for x-cart 4.1.5
I have installed this mode and working fine 4.1.8 in customer front but i cant see icons in admin when i add image in admin and save it, it display properly in customer front but i can see the image in admin (Modify Category)
Any help please THANKS |
Re: Subcategory text & images for x-cart 4.1.5
The original poster's code is working nicely in Gold 4.1.9.
eaglemobiles, are you looking at Modify Category for your category or subcategory? This threw me off initially. In Categories Mgmt, click your category and then, when the subcategory list appears, click the appropriate subcategory. And then click Modify Category to see the subcat icon. |
Re: Subcategory text & images for x-cart 4.1.5
RICHARD!! You are AWESOME!
You save me from hours of stress. Thank you so much for the code!!! Love it! Works excellent in 4.1.9! (still can't believe that after spending money on this, that I still have to work on the code. wonder why they haven't updated their distribution!) |
Re: Subcategory text & images for x-cart 4.1.5
Works Perfect!:-)
Thanks. |
Re: Subcategory text & images for x-cart 4.1.5
Does anyone know if there is a way to make a specific category not have images as links while leaving the others with them? The reason I ask is because we're looking at adding a category with a TON of sub-categories and it would just be overwhelming to our customers to have to scroll through pages of pictures to find what they are looking for.
Thanks! |
All times are GMT -8. The time now is 12:23 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.