Post by trixiemay » Fri May 18, 2018 8:50 am

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?

___________________________________________
"Speak softly but carry a big stick" :crazy:


New member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by d3z1gnr » Fri May 18, 2018 9:05 am

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');

Mike Little
Director / Developer / Makes the coffee
Creative Digital Limited
http://www.creativedigital.co.nz


User avatar
Active Member

Posts

Joined
Mon Jan 18, 2010 2:59 pm
Location - Auckland, New Zealand

Post by trixiemay » Fri May 18, 2018 11:36 am

Worked like a charm. Thanks! And greetings from sunny Tauranga...

___________________________________________
"Speak softly but carry a big stick" :crazy:


New member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by d3z1gnr » Fri May 18, 2018 11:47 am

Back at ya from sunn... oops, rai... oops, sunny again Auckland!

Mike Little
Director / Developer / Makes the coffee
Creative Digital Limited
http://www.creativedigital.co.nz


User avatar
Active Member

Posts

Joined
Mon Jan 18, 2010 2:59 pm
Location - Auckland, New Zealand
Who is online

Users browsing this forum: Alexa [Bot] and 35 guests