Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create a link to specific products


Denathor

Recommended Posts

I've been looking through contributions and the forum, but I can't find anything that would help my specific need. I'd like a link on the front page that would send the user to the advanced search results page with products specific to an item in a certain db table. And the search is for only one term (to be modified by hand by me, not something a customer inputs). The products are images.

 

For example, I have an extra field for keywords, and I'd like to create a search that would deliver just those items that have a specific keyword, say, "kitten". I'd like the customer to be able to click on "See our cute kittens" link and the customer would be delivered to the advanced search result page stocked with kitten pictures. That way, I could expose customers to products that I want to push.

 

Is there a contribution I've overlooked that would do this for me?

Link to comment
Share on other sites

So you could create the links and for each one of them you pass the keyword parameter populated with the word or combinations of words you want to have pre-set.

 

Here is an example link

$some_link = '<a href="' .  tep_href_link(FILENAME_ADVANCED_SEARCH, 'keyword="kitten"', 'NONSSL', false) . '">kitten</a>';

echo $some_link;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...