Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Category Pics instead of text

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-12-2004, 07:30 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

All products need to go into subcategories to be viewed.

If you do put products into the main category though, whilst not visible to the customer, they can be useful as you can put products into those sections which are intended to be sold with other items and not seen by the customers on their own.

For example:
I'm doing a promotion on a Plasma TV with бё500 worth of free home cinema accessories. Because I have put the products on for free, I don't want them to be seen and have to give them to just anyone!
So I have put them in one of the main category sections so that X-Cart can pull them in from this category when setting up the 'extra product options' fields for the Plasma TV, in order for it to display the free products as a series of 'options' in a dropdown menu to the customer.
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #12  
Old 07-12-2004, 07:33 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Gotcha. Thanks!
Reply With Quote
  #13  
Old 07-14-2004, 08:09 AM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default

donavichi,

Nice site you have there, might even be tempted to buy something at some point in the future!

I don't suppose you have the menu code available to put on a non-x-cart site? I'm doing a lot of brochure type sites at the moment, and that menu is just what I've been looking for!

Cheers

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #14  
Old 07-15-2004, 12:52 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

Thanks very much.

I'm afraid I don't but have you checked out http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Navigation/Menus/index.html
this is a good place to look for dHTML menus and cool java type stuff!

Regards,

Don - freshKIT
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #15  
Old 07-16-2004, 11:39 AM
 
jin jin is offline
 

Member
  
Join Date: Jul 2004
Posts: 12
 

Default Re: just an update

Hello.
I would like to do what Mike told us in first three post of this thread(Text to graphic categories).
My server has phpMyadmin installed and I created field called category_image(Type=VARCAR (255) I set it to NULL.) in xcart_categories table.
But then I don't know what to do next.
How, where do I specify the location of images for each categories? Do I need to put some script in somewhere?
I'm no good with MySQL database. I would appriciate little help here.
Thank you.
Quote:
Originally Posted by mizzlewillz
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).
Reply With Quote
  #16  
Old 08-27-2004, 10:59 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

We used a modified version of this code on www.cripps-medical.com. It works great for them since they have sooo many subcategories.

We are still working on the site; it doesnt' yet view properly in some browsers FYI. Should have those kinks worked out by this weekend.

Thanks again!
Reply With Quote
  #17  
Old 03-03-2005, 06:27 PM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default

I know this is an old post but this menu is just what I'm looking for. Doesn't quite work for the 4.0.12 cart I'm using now. I basically lists all the categories with the subcategories as well. Was wondering if someone could look at the code and see what needs to be altered for this newer version.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #18  
Old 03-11-2006, 03:08 AM
 
Sheffield_Tiger Sheffield_Tiger is offline
 

Member
  
Join Date: Mar 2006
Posts: 10
 

Default Re: just an update

I'm going to join in the ressurection of this one

I've done as suggested with the extra table in xcart_categories and entered image location in the new table for each of the categories.

Then edited categories.tpl as follows

line in question:

complete file:


Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <FONT class="CategoriesList">[img]{$categories[cat_num].category_image}[/img]{$categories[cat_num].category}</FONT> {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }


I've left the text links in for now, intending to remove them later and perhaps use a similar table trick to pull alt text for each button for SEO

problem is, instead of calling the image location, I'm just getting as imahe location '/home.php'

Am I trying to call the image incorrectly, or does it suggest a problem with the way I have set up the table?

(table contains the absolute url to the image)


Quote:
Originally Posted by mizzlewillz
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:
{$categories[cat_num].category_image}
I used category_image because that is the name of the field in my database.

I know there are probably other ways of doing this, and there are probably posts on this, I didn't even check Hopefully someone might find this useful, I imagine you can use this for the subcategories too, just modify the loop for subcategories.
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
[/code]
__________________
Version 4.0.17
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:07 PM.

   

 
X-Cart forums © 2001-2020