| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Change Featured items on home from table to divs | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
Im trying to change the featured items width on the home page. I noticed that it uses products.tpl and this in turn display the products in a table with cells. I want (just for featured) to change these to divs. I thought I could copy products and make a new file ... products2.tpl and then remove tables etc, but all that does is display a list with checkboxes of the featured products. How can I do this please? Thx
__________________
------------------------------------------------ Darren |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Gasp! Tables! Run for the hills!
![]() Which template controls featured products is determined by setting in the appearance section. Depending on what you set there, and what sizes your thumbnails are you can adjust the layout width, and number of columns. Because of these controls, manually adjusting the template is going to be a bear. Not only that, the same template likely controls the category page. You had the right idea, creating a separate template just for featured products. Why it is not working is another matter. Care to share the code you are using?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Unfortunatelly yes - instead of getting rid of tables alltogether QT actually added even more in 4.5.x
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
![]() Ive given up...there are far worse things in the world than these bloody tables.
__________________
------------------------------------------------ Darren |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
You can't just remove tables, there is a lot of css styling related to them. You have apply styling to the new divs to make it all work the way you want to
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#6
|
|||||||
|
|||||||
![]() I know Steve, that's why I gave up on it.
__________________
------------------------------------------------ Darren |
|||||||
#7
|
|||||||||
|
|||||||||
![]() This is partial solution for an older version, but perhaps it will help: http://forum.x-cart.com/showthread.php?t=54601
A table is the best way to display complex information in a grid layout. If QT were to use css to meet the requirements for displaying all the potential product information in a uniform grid using css, I suspect the code would be more complex than it already is. ---
__________________
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) |
|||||||||
#8
|
|||||||
|
|||||||
![]() Ok thanks, will look at that.
__________________
------------------------------------------------ Darren |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|