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?
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)
to:
(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');
}
Code: Select all
$('#list-view').trigger('click');
Mike Little
Director / Developer / Makes the coffee
Creative Digital Limited
http://www.creativedigital.co.nz
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
Who is online
Users browsing this forum: No registered users and 171 guests