Forums / Templates, Stylesheets, Page Layout / Unwanted duplicate images in "New Products" sidebox using 2nd language

Unwanted duplicate images in "New Products" sidebox using 2nd language

Locked

Started by petek on 14 Feb 2008, 7:40 AM · Views: 2,596

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Feb 2008, 7:40 AM
#1
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Unwanted duplicate images in "New Products" sidebox using 2nd language

Hi,

I am developing a site using the French language in conjunction with a custom template. In the admin, I can create a new product in English and French but I ignore the English-description boxes, titles etc. because I don't need them (my public is French). So I can create categories and products no problem. However, when I view the test site : http://www.gardenserre.fr, I see a second product image in the "New Products" sidebox on the left. The duplicate image appears to refer the English-language version of the product, ie the image doesn't have a title, because I didn't give it one.

How do I stop this second image showing on the page ? This could be a php problem but if anyone has a quick fix, please let me know !

I hope my explanation is clear ! Thanks

Pete

Pete
zc 1.3.9h
www.gardenserre.fr

14 Feb 2008, 10:36 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

That's a bug. I'd recommend changing your includes/modules/sideboxes/whats_new.php module to insert the highlighted line shown below (probably after line 19)> where p.products_id = pd.products_id

and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_status = 1 " . $display_limit;Don't over-ride the file (unless you're making other changes) as I'm sure that this will be fixed in later versions of Zen Cart and you won't want to keep over-riding it once the correction is no longer needed.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

14 Feb 2008, 12:56 PM
#3
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

Brill ! I'll give it a try when I get back to the torture room, sorry, office, tonight !

Cheers

Pete
zc 1.3.9h
www.gardenserre.fr

14 Feb 2008, 8:37 PM
#4
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

Marvellous, it worked ! :smile: Many thanks.

Pete

Pete
zc 1.3.9h
www.gardenserre.fr

7 Oct 2008, 3:14 PM
#5
yonghs avatar

yonghs

New Zenner

Join Date:
Jun 2008
Posts:
62
Plugin Contributions:
1

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

kuroi:

That's a bug. I'd recommend changing your includes/modules/sideboxes/whats_new.php module to insert the highlighted line shown below (probably after line 19)Don't over-ride the file (unless you're making other changes) as I'm sure that this will be fixed in later versions of Zen Cart and you won't want to keep over-riding it once the correction is no longer needed.

I have the same problem... following your method, the What's New sidebox is ok now.

But the centre column still display duplicate products in both languages.

PS:
I've created multi language Zen Cart 1.3.8 before but no such problem. I think it's because this time I use a template for 1.3.7. Seems to be the override custom new_products.php file.. but don't know how to fix it.

Please help. Thanks.

7 Oct 2008, 3:27 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

yonghs:

I have the same problem... following your method, the What's New sidebox is ok now.

But the centre column still display duplicate products in both languages.Could we have a link to your site?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

7 Oct 2008, 6:08 PM
#7
yonghs avatar

yonghs

New Zenner

Join Date:
Jun 2008
Posts:
62
Plugin Contributions:
1

Re: Unwanted duplicate images in "New Products" sidebox using 2nd language

It's on localhost. Using a free template from templatemonster (meant for Zen Cart 1.3.7)

The new_products.php seems to have been modified a lot. :shocking: ........ think I'll just change the template