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

Category Images instead of Featured on home.php in 4.4.5

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-12-2012, 09:04 AM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Category Images instead of Featured on home.php in 4.4.5

I've been 'unsuccessfully' trying to get the Category images centered on the home.php (I have turned off featured items, which I do not want).

I've looked at

http://forum.x-cart.com/showthread.php?t=63153

http://forum.x-cart.com/showthread.php?t=52601

http://forum.x-cart.com/showthread.php?t=52554

http://forum.x-cart.com/showthread.php?t=32237

Adding the customer_welcome.tpl, and making the welcome.tpl mod, I get the 'Categories' label from the last line in the customer_welcome.tpl below

{include file="dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.dialog extra='width="100%"'}

but no category Icons

Any suggestions of what needs to be changed in the customer_welcome.tpl for 4.4.5 are appreciated.

Thanks in advance,

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
  #2  
Old 04-23-2012, 01:42 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Re: Category Images instead of Featured on home.php in 4.4.5

If this is useful to anyone else, this is what I did to get this to work like I wanted.

With 4.4.x, the skin1.css is replaced by main.css (and others maybe).

The previous fix in categories_welcome.tpl, which worked in my 4.1.11 version, used the "class="VertMenuItems" which doesn't exist in main.css.

I have mediocre css knowledge, and couldn't figure out what class to use, so since I only have 10 categories, that don't change, I used 'brute force' and just hard coded the HTML Table with hyperlinks to images and the first category page in the categories_welcome.tpl. This didn't take me long to do, once I decided to go this approach.

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
  #3  
Old 08-02-2012, 11:22 PM
 
Paul H . Paul H . is offline
 

Advanced Member
  
Join Date: Mar 2012
Posts: 78
 

Default Re: Category Images instead of Featured on home.php in 4.4.5

I'm about to do the same and will probably use your method of brute force.
__________________
Gold 4.7.9-Ideal Responsive
Reply With Quote
  #4  
Old 08-03-2012, 08:37 AM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Re: Category Images instead of Featured on home.php in 4.4.5

Hi Paul,

I haven't had any problems with this approach -- the 'one caveat' that I'm aware of, is that I can't generate the sitemap.php file within X-cart. I believe it is related to the category approach I took.

I use CDSEO Pro's generated sitemap.xml file for the search engines -- I could brute force the same for my shopping cart, though I haven't done so yet.

Good luck.

Peggy
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
  #5  
Old 08-05-2012, 03:32 AM
 
Paul H . Paul H . is offline
 

Advanced Member
  
Join Date: Mar 2012
Posts: 78
 

Default Re: Category Images instead of Featured on home.php in 4.4.5

I think I'll have a go at creating the layout using divs as I have pretty much figured out how to style and position them. Then try and call the headings and images using Xcart system somehow this usually involves cut n paste of code from other templates.There has to be some way of using li or ul to do this automatically but not sure on the 3 column thing
__________________
Gold 4.7.9-Ideal Responsive
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 01:42 AM.

   

 
X-Cart forums © 2001-2020