Hello
I've been trying to add
product of the day + random products
on the same page and in a left column than the page displaying a product.
for the main page I use a file "header_index.php" and for product i use a "header.php" on this file i want a left column with the product of the day and random products which I already have on the "header_index.php" without problem.
When using the same tags on "header.php" the product of the day/ random products are displayed ok in my left column but in the right column where the product shows up I always have:
Invalid argument supplied for foreach() in
...html/product.php on line 37
below I have related products showing up ok.
I believe there is a conflict between variables names but I have no idea how to fix the problem.
Any idea what I can do?
Thanks
Pat
hi david i emailed you the files 2 days ago, did you have a chance to look at it?
Hi Pat,
This sounds like the random products code has overwritten the variables used by the product page. As line 37 is not a database line in the distribution i'd need to see your modified version to identify the problem. Can you email me your modified header.php and html/product.php and i'll take a look for you? Reply to your reg code or forum registration email is the easiest way to email me...
Cheers,
David.