Thread: filter by size
View Single Post
Old March 8th, 2013, 05:10 AM
macfink macfink is offline
Join Date: Feb 2011
Posts: 685

Originally Posted by Eric View Post

I've written an extensive tutorial here: /showthread.php?t=3853

I would replace the "color" filter with "size" from that example for your purposes.

However, since "S" is only 1 character, MySQL doesn't index single characters therefore the search for a single character word in the product's information will fail.

Hi Eric,

I have started it off

<?php if (@$_GET['word']) { ?>

<li><a href="[server.url type='fullpage' query='-word']">[X] Remove Size filter</a></li>

<?php } else { ?>

<li><a href="[server.url type='fullpage' query='word=Extra Small']">XSmall</a></li>
<li><a href="[server.url type='fullpage' query='word=XS']">XSmall</a></li>
<li><a href="[server.url type='fullpage' query='word=Small']">Small</a></li>
<li><a href="[server.url type='fullpage' query='word=S']">Small</a></li>
<li><a href="[server.url type='fullpage' query='word=MS']">Medium Short</a></li>
<li><a href="[server.url type='fullpage' query='word=Medium Short]">Medium Short</a></li>

<?php } ?>

Wont there be 2 of every size listed via the websites drop down filter?

Extra Small']">XSmall

Is there any way i can see what my merchants are listing their size attributes as. If they are all uniform, there's no need to add the extra. I think for Google shopping the size fields have to be uniform, so all merchants are using the same field.

Let me know before i go ahead with this
ID 30949