Jump to content

recommended products based on recently viewed products


macready

Recommended Posts

Hello phpfreaks,

 

I have a php script on a php product page that shows the users last 5 viewed products inside a box, and a php script on the same product page that shows 10 random products from all of the sub categories that are under the parent category of the sub category the product is in.

 

I'm trying to have the random products base its results on the recently viewed products , ie the script will show products that have similar product names to the products found in the recently viewed box.

 

Can anyone help me achieve this please if I post the code up?

Link to comment
Share on other sites

... ie the script will show products that have similar product names to the products found in the recently viewed box.

 

Do you mean that if they viewed "sandals" then they should be interested in "sandpaper"? I would have thought your current method of showing similar products from same subcats more relevant. Just my 0.02 worth.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.