Post by winpeace » Sun Apr 24, 2011 3:32 pm

how to select all product like button in the picture?

Image

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 6:59 pm

Good suggestion, but makes your customers more likely to empty their whole cart. Anyway, if you just create a link

Code: Select all

<a onClick="$('input[type=checkbox]').attr('checked', true);">Select All</a>
that should do it

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 7:29 pm

well but Where I put this code like in the picture?

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 7:31 pm

/catalog/view/theme/your-theme-name/template/checkout/cart.tpl

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 7:49 pm

thank you sir but see the picture select all writes twice?

Image
And lastly how to put deselect all behinde select all ?

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 8:01 pm

If that's the case, you've entered the link twice, or the text twice

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 8:06 pm

Sorry I clean cache twich problem go on.
And lastly how to put deselect all behinde select all ?

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 8:18 pm

Code: Select all

<a onClick="$('input[type=checkbox]').attr('checked', false);">Deselect All</a>

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 8:34 pm

thank you so much

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 8:41 pm

no problem

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 9:15 pm

one problem comes :(
when add for example 5 product comes 5 select and deselect all .
I try several times and browsers
see in the picture;

Image

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by JAY6390 » Sun Apr 24, 2011 9:18 pm

then you need to put the links outside of the foreach loop that you've put them in

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by winpeace » Sun Apr 24, 2011 9:23 pm

sorry my english poor .
I dont understand can you explain example steps

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am

Post by winpeace » Mon Apr 25, 2011 3:54 pm

anyone help please

New member

Posts

Joined
Mon Feb 07, 2011 4:08 am
Who is online

Users browsing this forum: No registered users and 2 guests