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

Categories displayed different in home.php and product.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-11-2008, 02:53 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Categories displayed different in home.php and product.php

Hi

I wanted to know why my categories are displayed diffentently in home.php and product.php. In home.php they are slightly indented and have a space below them. They display fine on product.php. Please see links below.

http://www.cricketshoponline.co.uk/home.php?cat=1
http://www.cricketshoponline.co.uk/product.php?productid=16139&cat=37&page=1

Any help well come.
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #2  
Old 01-12-2008, 11:34 PM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Categories displayed different in home.php and product.php

Anybody got any ideas what could be causing this?
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #3  
Old 01-14-2008, 04:32 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Categories displayed different in home.php and product.php

You can probably find the difference using webmaster mode. Look at the difference with the templates between the two pages after location.tpl
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #4  
Old 01-16-2008, 08:58 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Categories displayed different in home.php and product.php

which tpl files do I need to open so that I can compare the differences?
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #5  
Old 01-17-2008, 05:01 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Categories displayed different in home.php and product.php

It depends on what modules you have enabled and any customizations you have done - so it would be best for you to use webmaster mode and trace it. It could be somewhere in
customer/home.tpl
dialog_message.tpl
customer/home_main.tpl
customer/main/product.tpl on your product page
customer/main/subcategories.tpl on your category page
or any tpl for mods you are using

In webmastermode, for each page, find location.tpl and look for what templates are after it. The line breaks are likely somewhere in one of those templates.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #6  
Old 01-21-2008, 06:20 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Categories displayed different in home.php and product.php

ive tried all of them and still no luck, everything seems the same.

could anyone have a look at this for me?
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #7  
Old 01-27-2008, 01:11 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Categories displayed different in home.php and product.php

anyone got any ideas?

or look at this for me for around $20
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
Reply With Quote
  #8  
Old 01-28-2008, 03:50 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Categories displayed different in home.php and product.php

Hi,
Your problem is in "customer/main/product.tpl". There is including the "/skin1/thickbox/files/thickbox.css" file where next line
Code:
*{padding: 0; margin: 0;}
overwrite the style (cellspacing and sellpadding) of your tables.
just delete that line above and check the result.
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote
  #9  
Old 01-28-2008, 05:16 AM
 
rashriaz rashriaz is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 72
 

Default Re: Categories displayed different in home.php and product.php

many thanks, all i did was but the following line into my normal css and now all pages display the same.

*{padding: 0; margin: 0;}

thanks alot spinyman
__________________
rashriaz
product -x-cart gold 4.1.9
operating system -windows
location - uk
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 08:04 PM.

   

 
X-Cart forums © 2001-2020