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

Quote:
Originally Posted by Eric View Post
Hi,

I've written an extensive tutorial here: http://www.datafeedr.com/forums/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.

Eric
Hi Eric,

I have started it off

<ul>
<?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 } ?>
</ul>

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

Extra Small']">XSmall
XS']">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
Website:
http://www.freakfish.co.uk/