I've created a shopping widget for my site, and because it is a reference site - I don't want to choose any particular keywords or categories. I need the widget to base the results on the keyword that the user of the site has searched for. I've tried implementing the following code with no success - only the blue shopping.com ad will serve.
Unfortunately, the Shopping.com widget does not have contextual capabilities - i.e. it cannot figure out the search keyword or content of your pages by itself. You need to find a way to dynamically populate the keyword parameter of the widget with the keyword your user has entered (e.g. using javascript, or by modifying your server side code.)
I've created a shopping widget for my site, and because it is a reference site - I don't want to choose any particular keywords or categories. I need the widget to base the results on the keyword that the user of the site has searched for. I've tried implementing the following code with no success - only the blue shopping.com ad will serve.
var sw = new ShopWidget();
sw.mode = "kw";
sw.width = 160;
sw.height = 600;
sw.linkColor = "#0033cc";
sw.borderColor = "#003399";
sw.fontColor = "#000000";
sw.font = "arial";
sw.linkin = "8054806";
sw.categoryId = "0";
sw.keyword = "";
sw.render();
Tags
Ryan – 2009-04-28T18:22:09
Hi Melissa,
Unfortunately, the Shopping.com widget does not have contextual capabilities - i.e. it cannot figure out the search keyword or content of your pages by itself. You need to find a way to dynamically populate the keyword parameter of the widget with the keyword your user has entered (e.g. using javascript, or by modifying your server side code.)
--ryan