You are here:  » Add Product of the day and others on products page

Support Forum



Add Product of the day and others on products page

Submitted by pat on Fri, 2007-05-18 20:14 in

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

Submitted by support on Mon, 2007-05-21 08:21

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.

Submitted by pat on Wed, 2007-05-23 06:32

hi david i emailed you the files 2 days ago, did you have a chance to look at it?

Submitted by support on Thu, 2007-05-24 12:27

Hi Pat,

I've come online for a few hours today so i'll take a look at your email shortly! My house move interruptions are nearly over and should be back online full time from next week - apologies for any inconvenience in the mean time...

Cheers,
David.