| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Category Pics instead of text | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hey everyone,
I was wondering if anyone had any thoughts or ideas on how to set this up. Instead of displaying the category text, I was thinking about displaying a graphic instead. I guess there are a couple of ways of going about this, I was thinking of creating another column in the xcart_icons table, and inserting the gif for each category that way, then pulling the gif from the database through the smarty tags. Does anyone have any other ideas about this? Does anyone have this implemented in their x-cart configuration? -Mike |
|||||||
#2
|
|||||||
|
|||||||
![]() Hey Mike,
Have you looked at the fancy categories from x-cart?
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#3
|
|||||||
|
|||||||
![]() Here is what I did to add a category icon instead of using the text for categories.
I created another field in xcart_categories table using phpmyadmin. I called it: category_image Type=VARCAR (255) I set it to NULL. Then I just edited the table through phpMyAdmin and for each main category I added: yourwebsite.com/store/files/Fulfillment staff/product_images/WhateverYouWant.jpg (This is where I store my images for X-Cart). Then in categories.tpl Between the {section name=cat_num loop=$categories} and {/section} I added this line Code:
I know there are probably other ways of doing this, and there are probably posts on this, I didn't even check ![]() PLEASE if there are any errors or comments, POST IT- I just started using X-cart about 2 months ago or something so I am not an expert by any means. Mike |
|||||||
#4
|
|||||||
|
|||||||
![]() No I did not actually, I didn't even think of that. I was just looking for a quick solution and this is the only one I could think of
![]() There's another solution: fancy categories The reason I didn't use fancy categories is because I have my subcategories displaying the whole time someone is browsing in their parent category. From what I saw with the x-cart default setup, the subcategories disappear when you click on one of them, I didn't like that so I had some mods done to keep the subcategories visible until the customer switches main categories. -Mike |
|||||||
#5
|
|||||||
|
|||||||
![]() code posted below, which is what i used for doughtysonline.co.uk
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#6
|
|||||||
|
|||||||
![]() I love the way it works, and the way it looks. I just am concerned about how well it does with search engines. It would be great if you could post the code.
Eduardo. |
|||||||
#7
|
|||||||
|
|||||||
![]() OK, the search engines should be fine as the categories list is text and not graphic although it looks like it.
If you include the categories in your keywords the search engines should pick up on them as well as the text on the rest of the pages and as the categories list is an embedded template, they will display the url of the whole page and not just the menu. Hope that answers your question! Code below, I have left out the images that I have used and put in their place captions to help you place your own images - to keep in line with look and feel of your site... Just change the YOURIMAGE.GIF to whatever image you want to use... Replace customer/categories.tpl with this: Code:
and then create a file in xcart/include called categories.php and paste in this code: Code:
Menu only supports 1 level of subcategory, that's the only drawback. Love & Respect to to cartlab.com for the original code.
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#8
|
|||||||
|
|||||||
![]() freshkit,
Could there be something missing here? When I use it, it allows me to drop down, but no subcategories are there. Eduardo. |
|||||||
#9
|
|||||||
|
|||||||
![]() That's as it is on the site, my subcategories work ok.
Give me URL to your site and I'll have a look and see if I can identify what's wrong.
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Quote:
Do you have any subcategories currently? This works beautifully for me except that where I don't have subcategories, there is no way to get to the top menu products. Is there a fix for this? You can see here what its doing: http://www.cripps-medical.com/customer/home.php?cat=246 If you click "Sport", there isn't any sub categories, and therefore no way to see the products for this category. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|