X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Categories displayed different in home.php and product.php (https://forum.x-cart.com/showthread.php?t=36684)

rashriaz 01-11-2008 02:53 AM

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 01-12-2008 11:34 PM

Re: Categories displayed different in home.php and product.php
 
Anybody got any ideas what could be causing this?

gb2world 01-14-2008 04:32 PM

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

rashriaz 01-16-2008 08:58 AM

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?

gb2world 01-17-2008 05:01 PM

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.

rashriaz 01-21-2008 06:20 AM

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 01-27-2008 01:11 AM

Re: Categories displayed different in home.php and product.php
 
anyone got any ideas?

or look at this for me for around $20

SpinyMan 01-28-2008 03:50 AM

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.

rashriaz 01-28-2008 05:16 AM

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


All times are GMT -8. The time now is 07:30 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.