| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Using Non-Matrix Layout for Product Category Pages | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I'm trying to integrate a new responsive design into my store. I've run into a problem with the display of products on the category page. It currently uses tables for layout and I want to use div's, and all the products are on a single row, and I'm using columns to display each product. It seems that to use the table system, the products template uses some kind of product matrix to determine how many products appear on a row. How do I prevent it from using this system as it won't work with my new system? Is there a non-matrix based template that can be used? Thanks, Leigh
__________________
4.7.6 Advanced Customer Reviews Add to cart pop up Detailed product image Discount coupons Image verification On Sale One page checkout product options upselling products |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You will need to re-code the template and replace the table-base code with divs
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() You could copy certain tpl files from one of the responsive skins, such as light_responsive/customer/main/products_t.tpl.
|
|||||||||
#4
|
|||||||
|
|||||||
![]() @cherie Thanks. Is there any way to get access to these tpl's without having to pay for the entire skin?
__________________
4.7.6 Advanced Customer Reviews Add to cart pop up Detailed product image Discount coupons Image verification On Sale One page checkout product options upselling products |
|||||||
#5
|
|||||||
|
|||||||
![]() I managed to work it out. The idea of a matrix with rows was confusing me because I saw row_length=4 and thought that it was specifically designed for 4 products per row in a table, but it seems not to be the case. I just had to make sure that all my markup was placed inside a single for each loop and not separate ones for different rows.
__________________
4.7.6 Advanced Customer Reviews Add to cart pop up Detailed product image Discount coupons Image verification On Sale One page checkout product options upselling products |
|||||||
#6
|
|||||||
|
|||||||
![]() Actually, it turns out that the row_length was specially designed for table rows. The grid system I'm using is made of a single row of products, so I had to change the row_lenght=1 for it to work properly.
__________________
4.7.6 Advanced Customer Reviews Add to cart pop up Detailed product image Discount coupons Image verification On Sale One page checkout product options upselling products |
|||||||
#7
|
|||||||
|
|||||||
![]() or use divs as steve said, depends what you want
__________________
xcartmods.co.uk |
|||||||
#8
|
|||||||
|
|||||||
![]() I am using div's. The issue is that the code and the matrix part of this template are specifically set up for a table based layout. It's not the markup that I was having issue with. It was the code i.e. the loops etc...and where they needed to be for the div based system I'm using to work properly.
Thanks.
__________________
4.7.6 Advanced Customer Reviews Add to cart pop up Detailed product image Discount coupons Image verification On Sale One page checkout product options upselling products |
|||||||
#9
|
|||||||
|
|||||||
![]() Most of the 'table' based code should stay in tables, ie. product page details.
Product listings however, you should break out of tables and use divs or lists wherever you can. Ignore the 'matrix' code and use your own where you can, it's just QT's slack coding. They know nothing about SEO and they never will, so do your best.
__________________
xcartmods.co.uk |
|||||||
|
#10
|
|||||||
|
|||||||
![]() @leigh
Hi, better still invest in Phil's X-Cart reBOOT Responsive Template and save yourself a whole load of grief ![]() ![]() ![]() Take a look X-Cart-reBOOT-Responsive-Template Kind regards ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX ![]() X-Cart Pro 4.6.6 Retired after 6 years of first class service ![]() X-Cart Pro 4.1.7 Retired after 9 years of first class service ![]() Apache: 2.4.25 PHP: 7.4.5 MariaDB: 10.1.44 Arch: x86_64 |
|||||||
|
|||
X-Cart forums © 2001-2020
|