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

Using Non-Matrix Layout for Product Category Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-30-2016, 03:14 AM
 
leigh leigh is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 8
 

Default Using Non-Matrix Layout for Product Category Pages

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
Reply With Quote
  #2  
Old 07-31-2016, 09:20 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Using Non-Matrix Layout for Product Category Pages

You will need to re-code the template and replace the table-base code with divs
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-01-2016, 04:27 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Using Non-Matrix Layout for Product Category Pages

You could copy certain tpl files from one of the responsive skins, such as light_responsive/customer/main/products_t.tpl.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #4  
Old 08-01-2016, 11:51 PM
 
leigh leigh is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 8
 

Default Re: Using Non-Matrix Layout for Product Category Pages

@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
Reply With Quote
  #5  
Old 08-02-2016, 02:05 AM
 
leigh leigh is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 8
 

Default Re: Using Non-Matrix Layout for Product Category Pages

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
Reply With Quote
  #6  
Old 08-02-2016, 02:43 AM
 
leigh leigh is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 8
 

Default Re: Using Non-Matrix Layout for Product Category Pages

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
Reply With Quote
  #7  
Old 08-02-2016, 02:45 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Using Non-Matrix Layout for Product Category Pages

or use divs as steve said, depends what you want
__________________
xcartmods.co.uk
Reply With Quote
  #8  
Old 08-02-2016, 04:34 AM
 
leigh leigh is offline
 

Newbie
  
Join Date: Jul 2016
Posts: 8
 

Default Re: Using Non-Matrix Layout for Product Category Pages

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
Reply With Quote
  #9  
Old 08-02-2016, 04:51 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Using Non-Matrix Layout for Product Category Pages

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
Reply With Quote

The following user thanks PhilJ for this useful post:
leigh (08-02-2016)
  #10  
Old 08-02-2016, 05:32 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,167
 

Default Re: Using Non-Matrix Layout for Product Category Pages

@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
Reply With Quote

The following 2 users thank ITVV for this useful post:
leigh (08-02-2016), PhilJ (08-02-2016)
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 03:46 AM.

   

 
X-Cart forums © 2001-2020