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

Show Categories on Front Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-27-2007, 12:05 PM
 
Sinderella Sinderella is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 7
 

Default Show Categories on Front Page

My client wants her categories to show on the front page. I could swear that originally it was something I removed at her request early last year but I don't remember what I did or where I did it.

I'd like to create something that she can modify within the categories part of the admin, so that if she added to it, it would appear here.

This is for version 4.1.3.

Thank you to anyone that knows the answer to this probably simple question.
__________________
Gold 4.1.3
Reply With Quote
  #2  
Old 06-27-2007, 12:13 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Show Categories on Front Page

Try this...just deleted the original thread by mistake, but luckily I was able to go back and copy/paste it into a new thread:

http://forum.x-cart.com/showthread.php?p=176662
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-27-2007, 12:37 PM
 
Sinderella Sinderella is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 7
 

Default Re: Show Categories on Front Page

Hello Balinor,
I tried it but it didn't change anything. I noticed that the first one had 's around the xcart-config but the other 2 did not. Could this change things? Obviously, I'm not an expert here. Thanks for you speedy help.

INSERT INTO `xcart_config` VALUES ('categories_desc_on_main', 'Show description under icons for categories on main page', 'N', 'Appearance', 500, 'checkbox', 'N', '');
INSERT INTO xcart_config VALUES ('categories_on_main_page','Show icons for categories on main page','Y','Appearance',500,'checkbox','N','');
INSERT INTO xcart_config VALUES ('columns_categories_on_main_page','Number of columns for categories on main page','','Appearance',510,'numeric','','');

__________________
Gold 4.1.3
Reply With Quote
  #4  
Old 06-27-2007, 02:47 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Show Categories on Front Page

Did you update the welcome template as specified as well?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-27-2007, 03:51 PM
 
Sinderella Sinderella is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 7
 

Default Re: Show Categories on Front Page

yes I did. I tried it with and without the 's around the xcart config.

I wondered if, since the post was from Oct. 2003, if it would be for an earlier version and not for the 4.1.3.
__________________
Gold 4.1.3
Reply With Quote
  #6  
Old 06-27-2007, 03:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Show Categories on Front Page

The post was from Feb 2007, I joined the forum in Oct 2003
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-28-2007, 06:08 AM
 
Sinderella Sinderella is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 7
 

Default Re: Show Categories on Front Page

Oh, ok, sorry. I'm new to the forum.

I still don't know what else I need to do to get this done. Do you know if there is something else I can look at?

I looked in the files via ftp and don't see a file for xcart_config.sql in the sql folder. There are several but they are xcart_config_AU.sql, xcart_config_CA.sql, xcart_config_UK.sql, and xcart_config_US.sql. I opened the US one since that's the one I would need I supposed. It is 0KB in size and had nothing in it. Am I barking up the wrong tree?

I tried pasting the INSERT info into the xcart_config_US.sql file and uploaded it but it didn't change anything. I removed it.
__________________
Gold 4.1.3
Reply With Quote
  #8  
Old 06-29-2007, 01:54 AM
 
denisg denisg is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 44
 

Default Re: Show Categories on Front Page

Interesting, I was just about to ask the same question as the original.

Would this work on our version (see sig) and ( ) where do I find the "xcart_config" file.

Denis.
__________________
DenisG
V4.0.14
www.mercersfurniture.co.uk
V4.1.11
www.mattress4beds.co.uk/home.php/"
Reply With Quote
  #9  
Old 07-01-2007, 06:14 AM
 
denisg denisg is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 44
 

Default Re: Show Categories on Front Page

Ok, so I think I sussed How to do it.............from Admin>update>Apply SQL patch.

Should the welcome.tpl be modified before or after the "INSERT INTO" files

Pasting the first "INSERT INTO" line in, with or without the welcome file being changed, gives a sql error that "Column count doesn't match value count row1".

Is this fixable or maybe not suitable for our version?

Denis
__________________
DenisG
V4.0.14
www.mercersfurniture.co.uk
V4.1.11
www.mattress4beds.co.uk/home.php/"
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 10:29 AM.

   

 
X-Cart forums © 2001-2020