Page 1 of 1

Product listings in one line

Posted: Fri May 18, 2018 8:50 am
by trixiemay
I am trying to get my product listings in one line.
So the Add to cart button is not underneath the product name but in line with it to the right. I do not need the Compare or Wishlist buttons or the image.
When I mess with the product template, I kill the functionality of the cart (undefined error when add to cart clicked) even though I have the layout that I want.
Is there a div that the Add to Cart button has to stay within to work?
Also be nice to have this view as default rather than the grid view.
Any ideas please?

Re: Product listings in one line

Posted: Fri May 18, 2018 9:05 am
by d3z1gnr
For default list view, how about changing view/javascript/common.js (on line 114):

(or it might cleaner to add a custom.js instead of altering core)

Code: Select all

if (localStorage.getItem('display') == 'list') {
		$('#list-view').trigger('click');
		$('#list-view').addClass('active');
	} else {
		$('#grid-view').trigger('click');
		$('#grid-view').addClass('active');
	}
to:

Code: Select all

$('#list-view').trigger('click');

Re: Product listings in one line

Posted: Fri May 18, 2018 11:36 am
by trixiemay
Worked like a charm. Thanks! And greetings from sunny Tauranga...

Re: Product listings in one line

Posted: Fri May 18, 2018 11:47 am
by d3z1gnr
Back at ya from sunn... oops, rai... oops, sunny again Auckland!