Recently Viewed Items - Customers Getting lost :o(
Hi guys, I am running Recently Viewed Items and really love it, it defiantly helped my store, however, I've had it a long time and its only just occurred to me that in a lot of cases it must be very confusing for my customers. Let me explain.
I have products that are linked to 2-3 categories due to the nature of the product, and i've found that if the user is viewing an item in a category the product is linked to then the recently viewed item is actually showing the master category that the product is in, resulting in the user ending up in the wrong category and potentially not finding their way back to the category they started in with other relevant products.
Does anyone know if the code could be modified so that it makes the recently viewed item link to the product from the category it was last viewed in?
i'm guessing its something to do with this part:
PHP Code:
'cPath=' . $productsInCategory[$recent_products->fields['products_id']] .
rather than using the master category id would it work if I ran a check on the current category id and used that instead?
Thanks in advance,
Phil
Re: Recently Viewed Items - Customers Getting lost :o(
If its not possible, the only other thing I can think to do is if its possible to do a list of recently viewed categories along side the products?
Re: Recently Viewed Items - Customers Getting lost :o(
So I've worked out I'll need to be able to include a category id equal to the current_category_id in the database query that is used in the while loop tht builds the recent products. To do this I think I need to implement a table join on the query that pulls the product info to join table products with table products_to_category.
Not very good at joining tables so any pointers would be appreciated.
Once I have the current category id as a field in the while loop I'm hoping with this I should be able to output the product_info URL to the correct category??
Phil