Zen Cart Logo
Forums / Customization from the Admin / Product info image doesn't showing in all languages

Product info image doesn't showing in all languages

Locked

Views: 2,219

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
10 Jul 2008, 3:42 PM
#1
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Product info image doesn't showing in all languages

Hi,

I have a zen cart installation in French/English.

I see the product info image in english but not in french section.

I verified in the admin Catalogue > Product Types > Edit Layout > Show Product Additional Images and it's set to on, in english admin as well as in french.

Did I miss something? :dontgetit

Thank's

10 Jul 2008, 5:19 PM
#2
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Product info image doesn't showing in all languages

I just made this command and I didn't found any results !

Is it normal that I can't find any occurences of "SHOW_PRODUCT_INFO_ADDITIONAL_IMAGES" ? :blink:

grep -rc "SHOW_PRODUCT_INFO_ADDITIONAL_IMAGES" public_html/ | grep -v ":0"

10 Jul 2008, 5:52 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product info image doesn't showing in all languages

If you enter in the Tools ... Developers Tool Kit ... in the TOP input box:
SHOW_PRODUCT_INFO_ADDITIONAL_IMAGES

select NONE from the dropdown, to search the configuration and product_type_layout tables it will locate this for you ...

10 Jul 2008, 7:51 PM
#4
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Product info image doesn't showing in all languages

Yeah... I had to make grep -ric to make a case insensitive search.

Anyway,** I still don't understand why the image in product info doesn't show up in French section** while it appears in English :unsure:

http://invocation.ca/index.php?main_page=product_info&cPath=1&products_id=2

11 Jul 2008, 12:08 AM
#6
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Product info image doesn't showing in all languages

Nothing yet... :blush:

11 Jul 2008, 6:18 PM
#7
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Product info image doesn't showing in all languages

I still don't understand why the image isn't displaying in french section !!! :no:

As I compare the html source of both pages, I see no differences between these, at the exception of texts:

English source (Here the image is displaying)

<!--bof Main Product Image --> <div id="productImage" class="centeredContent back"> <script language="javascript" type="text/javascript"><!-- document.write('<div id="productMainImage"><a href="javascript: popupWindow(\'http://invocation.ca/index.php?main_page=popup_image&pID=2\')"><img src="images/EL-002.jpg" alt="Liquid Smudge" title=" Liquid Smudge " width="161" height="150" /></div><br class="clearBoth" /><span class="imgLink">larger image</span></a>'); //--></script> <noscript> <a href="http://invocation.ca/index.php?main_page=popup_image&pID=2" target="_blank"><img src="images/EL-002.jpg" alt="Liquid Smudge" title=" Liquid Smudge " width="161" height="150" /><br /><span class="imgLink">larger image</span></a></noscript> </div><!--eof Main Product Image-->

French source (Here the image isn't displaying)

<!--bof Main Product Image --> <div id="productImage" class="centeredContent back"> <script language="javascript" type="text/javascript"><!-- document.write('<div id="productMainImage"><a href="javascript: popupWindow(\'http://invocation.ca/index.php?main_page=popup_image&pID=2\')"><img src="images/EL-002.jpg" alt="Encens liquide" title=" Encens liquide " width="161" height="150" /></div><br class="clearBoth" /><span class="imgLink">Agrandir l'image</span></a>'); //--></script> <noscript> <a href="http://invocation.ca/index.php?main_page=popup_image&pID=2" target="_blank"><img src="images/EL-002.jpg" alt="Encens liquide" title=" Encens liquide " width="161" height="150" /><br /><span class="imgLink">Agrandir l'image</span></a></noscript> </div><!--eof Main Product Image-->

:frusty:

12 Jul 2008, 5:32 PM
#8
franck69 avatar

franck69

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Product info image doesn't showing in all languages

GOT IT !

There was a simple quote in TEXT_CLICK_TO_ENLARGE in french translation which made the javascript broken...

I replace the single quote by it's octal value (047):

define('TEXT_CLICK_TO_ENLARGE', 'Agrandir l\047image');

:wink:

The problem is solved.

12 Jul 2008, 5:41 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product info image doesn't showing in all languages

Thanks for the update ... this is a very simple but hard to find bug at times, especially when in french ...

I know I looked at it several times and I knew there was something out of place, but I just couldn't put a finger on it right away and you beat me to it ... :smartalec:

Thanks again!