Jump to content

Erreur Java - categories qui ne se montrent pas


Recommended Posts

Hello,

 

J'ai récemment ce probleme, les categories et sous categories ne s'affichent pas dans la page admin ... De ce fait, impossible de créer ou modifier les categories et donc tout les produits ... De plus , mon Ajax cart ne marche plus non plus et affiche des erreurs lorsqu'on ajoute des produits ds le cart ..

 

Après avoir contacté mon host, voici ce qu'il m'a envoyé, mais avec ma connaissance trèèèèès limitée dans ce domaine, je n'arrive vraiment pas à arranger le probleme de ce fait, j'ai vraiment besoin de vous chers communauté prestashop !

 

CF pièce jointe pour plus d'info

 

voici ce que mon host provider m'a répondu :

 

 

"

30-Mar-2013 13:57:06] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 1026

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 534

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/CategoryController.php on line 200

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 1026

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 534

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/CategoryController.php on line 200

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 13:59:50] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 14:00:34] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/ProductController.php on line 336

[30-Mar-2013 14:00:34] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/ProductController.php on line 468

[30-Mar-2013 14:00:42] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 14:10:31] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer. ' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 16:03:03] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 186: 'Blusher is a color makeup cosmetic used to put on cheeks for looking more lively and lovely.' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 16:24:54] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer. ' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 17:23:36] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:23:50] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:01] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:10] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:22] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:33] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:44] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:53] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:04] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:14] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:24] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:32] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:39] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:47] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:55] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

 

 

There are two things to note in the logs:

The name of the script throwing the error and the line number.

 

This script:

/home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php

Has an error on line 437.

The error is:

Invalid argument supplied for foreach()

Here is a recent post for this error in the presta support forums:

http://www.prestashop.com/forums/topic/199137-jirafe-bug/

 

This script:

/home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php

Has an error on line 192

This is a fatal error, which means the script dies:

PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer.

Here is a forum post on this error:

http://www.prestashop.com/forums/topic/217054-orderstep1-server-error/

 

You will need to contact presta support for the code issues or contract a programmer. "

 

 

Malgré ma bonne volonté d'arranger le tout, je n'ai vraiment pas réussi et rien n'a changé, je ne peux tjs pas accéder aux catégories dans ma page admin... SVP AIDEZ MOIIIII

 

Si besoin, je peux vous fournir tout les détails et identifiants pour analyser le probleme

 

 

GRAND MERCI à toute personne prenant le temps de lire et éventuellement m'aider !! :)

 

Cordialement,

 

Pohim

post-469290-0-64763800-1364704546_thumb.jpg

Link to comment
Share on other sites

Hello,

 

Ca n'a pas l'air jojo effectivement.

 

Supprimer le module jirafe en ftp ou mettez le à jour d'addons. Désactivez CCC pour javascript si il est activé. Vous avez une erreur javascript dans votre theme près de la chaine 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer. Probablement un script ou une quote mal fermés.

 

Ces deux soucis ne concernent pas pour autant les catégories à priori.

 

PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 1026

 

Cette ligne est parmi du code qui concernent les groupes donc je dirais qu'il y a un souci avec les associations groupes / catégories.

 

L'ajout au panier est encore une autre erreur je pense, mais avec votre url on verrait mieux. Il semble que les requetes ajax ne marchent pas très bien chez vous, peut être par ce que les erreurs php sont activées à l'affichage ? Peut etre la config le mode dev est activé au lieu de off http://www.prestasho...e-dans-le-shop/ ? Quelle version de PrestaShop utilisez vous déjà ?

 

Il faudrait effectivement demander à un développeur de regarder de plus près. Notre service support peut se charger de ces corrections également.

 

Bon courage

Edited by Gregory Roussac (see edit history)
Link to comment
Share on other sites

Bonjour ,

 

Merci bcp pour votre réponse !

 

Voici mon url : www.w2beauty.com

 

j'ai désactivé tout les liens "mort" afin de ne pas rendre l'expérience désagréable pour mes clients .. je vais suivre de ce pas vos conseils et voir ce que cela donne.

 

Pour le service support, j'ai malheureusement déjà fait appel plusieurs fois sans avoir aucune réponse ... :'(

Link to comment
Share on other sites

Hello,

 

- FB.getLoginStatus() called before calling FB.init

 

donc il y a deja un souci avec un plugin facebook.

 

- TypeError: ld_tmp[1] is undefined, a priori il y a un souci sur le module de langue ou de currency.

 

<script type="text/javascript">/* <![CDATA[ */$('document').ready(function(){$("#search_query_top").autocomplete('http://w2beauty.com/en/search',{minChars:3,max:10,width:500,selectFirst:false,scroll:false,dataType:"json",formatItem:function(data,i,max,value,term){return value;},parse:function(data){var mytab=new Array();for(var i=0;i<data.length;i++)
mytab[mytab.length]={data:data[i],value:data[i].cname+' > '+data[i].pname};return mytab;},extraParams:{ajaxSearch:1,id_lang:1[spam-filter]).result(function(event,data,formatted){$('#search_query_top').val(data.pname);document.location.href=data.product_link;})});/* ]]> */</script><div id="header_user"><ul id="header_nav"><li id="shopping_cart"> <a href="http://w2beauty.com/en/quick-order" title="Your Shopping Cart">Cart: <span class="ajax_cart_quantity">1</span> <span class="ajax_cart_product_txt">product</span> <span class="ajax_cart_product_txt_s hidden">products</span> <span class="ajax_cart_total"> $22.23 </span> <span class="ajax_cart_no_product hidden">(empty)</span> </a></li></div><ul id="header_links"><li id="header_link_contact"><a href="http://w2beauty.com/en/contact-us" title="contact">contact</a></li><li id="header_link_sitemap"><a href="http://w2beauty.com/en/sitemap" title="sitemap">sitemap</a></li><li id="header_link_bookmark"><script type="text/javascript">/* <![CDATA[ */writeBookmarkLink('http://w2beauty.com/en/12-cream','Skin cream - w2beauty.com','bookmark');/* ]]> */</script></li><li id="your_account"><a href="http://w2beauty.com/en/my-account" title="Your Account">Your Account</a></li><li id="header_user_info"> Welcome <a class="login" href="http://w2beauty.com/en/my-account">Log in</a></li></ul><div id="languages_block_top"><div id="countries1"><p class="selected_language"> <img src="http://w2beauty.com/img/l/1.jpg" alt="en" width="16" height="11" />English (English)</p><ul class="countries_ul" id="first-languages"><li class="selected_language"> <img src="http://w2beauty.com/img/l/1.jpg" alt="en" width="16" height="11" />English (English)</li><li > <a href="http://w2beauty.com/br/12-cream" title="Português (Portuguese)"> <img src="http://w2beauty.com/img/l/2.jpg" alt="br" width="16" height="11" />Português (Portuguese) </a></li><li > <a href="http://w2beauty.com/de/12-cream" title="Deutsch (German)"> <img src="http://w2beauty.com/img/l/3.jpg" alt="de" width="16" height="11" />Deutsch (German) </a></li><li > <a href="http://w2beauty.com/es/12-cream" title="Español (Spanish)"> <img src="http://w2beauty.com/img/l/4.jpg" alt="es" width="16" height="11" />Español (Spanish) </a></li><li > <a href="http://w2beauty.com/fr/12-cream" title="Français (French)"> <img src="http://w2beauty.com/img/l/5.jpg" alt="fr" width="16" height="11" />Français (French) </a></li><li > <a href="http://w2beauty.com/it/12-cream" title="Italiano (Italian)"> <img src="http://w2beauty.com/img/l/6.jpg" alt="it" width="16" height="11" />Italiano (Italian) </a></li></ul></div></div><script type="text/javascript">/* <![CDATA[ */$(document).ready(function(){$("#countries1").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover");});$("#countries1").mouseout(function(){$(this).removeClass("countries_hover");$(".countries_ul").removeClass("countries_ul_hover");});});/* ]]> */</script></div><div class="sf-contener clearfix"><ul class="sf-menu clearfix"><li ><a href="http://w2beauty.com/en/8-bb-cream">BB Cream</a><ul><li ><a href="http://w2beauty.com/en/74-bb-cream-selection">BB Cream Selection</a></li></ul></li><li ><a href="http://w2beauty.com/en/5-skincare">Skincare</a><ul><li  class="sfHoverForce"><a href="http://w2beauty.com/en/12-cream">Cream</a></li><li ><a href="http://w2beauty.com/en/14-lotion">Lotion</a></li><li ><a href="http://w2beauty.com/en/15-mist">Mist</a></li><li ><a href="http://w2beauty.com/en/17-essence-serum">Essence & Serum</a></li><li ><a href="http://w2beauty.com/en/18-eye-care-eye-cream">Eye Care - Eye Cream</a></li><li ><a href="http://w2beauty.com/en/19-skin">Skin</a></li><li ><a href="http://w2beauty.com/en/21-emulsion">Emulsion</a></li><li ><a href="http://w2beauty.com/en/22-toner">Toner</a></li><li ><a href="http://w2beauty.com/en/24-massage-pack">Massage - Pack</a></li><li ><a href="http://w2beauty.com/en/960-mask-sheets">Mask Sheets</a></li><li ><a href="http://w2beauty.com/en/16-sun-care">Sun Care</a></li><li ><a href="http://w2beauty.com/en/80-anti-aging">Anti-Aging</a></li><li ><a href="http://w2beauty.com/en/23-essential-oil">Essential Oil</a></li><li ><a href="http://w2beauty.com/en/95-whitening">Whitening</a></li><li ><a href="http://w2beauty.com/en/110-special-care">Special Care</a></li><li ><a href="http://w2beauty.com/en/25-set">SET</a></li></ul></li><li ><a href="http://w2beauty.com/en/7-Makeup-w2beauty">Make Up</a><ul><li ><a href="http://w2beauty.com/en/26-make-up-base-primer">Make up Base & Primer</a></li><li ><a href="http://w2beauty.com/en/27-twin-cake">Twin Cake</a></li><li ><a href="http://w2beauty.com/en/30-foundation">Foundation</a></li><li ><a href="http://w2beauty.com/en/96-highlighter-shading">Highlighter & Shading</a></li></ul></li><li ><a href="http://w2beauty.com/en/33-lips-eyes-nail">Lips & Eyes & Nail</a><ul><li ><a href="http://w2beauty.com/en/35-eyebrow">Eyebrow</a></li><li ><a href="http://w2beauty.com/en/36-eye-shadow">Eye Shadow</a></li><li ><a href="http://w2beauty.com/en/37-eye-liner">Eye Liner</a></li><li ><a href="http://w2beauty.com/en/106-eyelash">Eyelash</a></li><li ><a href="http://w2beauty.com/en/38-lip-care">Lip Care</a></li><li ><a href="http://w2beauty.com/en/39-lip-gloss">Lip Gloss</a></li><li ><a href="http://w2beauty.com/en/40-lip-tint">Lip Tint</a></li><li ><a href="http://w2beauty.com/en/41-lips-liner">Lips Liner</a></li><li ><a href="http://w2beauty.com/en/42-lipstick">Lipstick</a></li><li ><a href="http://w2beauty.com/en/84-nail-polish">Nail Polish</a></li><li ><a href="http://w2beauty.com/en/85-nail-art">Nail Artwork</a></li></ul></li><li ><a href="http://w2beauty.com/en/9-hair-body">Hair & Body</a><ul><li ><a href="http://w2beauty.com/en/46-deodorant">Deodorant</a></li><li ><a href="http://w2beauty.com/en/56-perfume-fragrance">Perfume - Fragrance</a></li><li ><a href="http://w2beauty.com/en/48-foot">Foot</a></li><li ><a href="http://w2beauty.com/en/49-hand">Hand</a></li><li ><a href="http://w2beauty.com/en/52-shampoo">Shampoo</a></li><li ><a href="http://w2beauty.com/en/53-hair-treatment">Hair Treatment</a></li><li ><a href="http://w2beauty.com/en/54-hair-styling">Hair Styling</a></li><li ><a href="http://w2beauty.com/en/55-coloring">Coloring</a></li><li ><a href="http://w2beauty.com/en/57-body-slimming">Body Slimming</a></li><li ><a href="http://w2beauty.com/en/59-bath-soap">Bath - Soap</a></li><li ><a href="http://w2beauty.com/en/50-body-oil-scrub">Body Oil - Scrub</a></li><li ><a href="http://w2beauty.com/en/47-body-lotion-cream">Body Lotion - Cream</a></li><li ><a href="http://w2beauty.com/en/82-mist-body">Mist - Body</a></li><li ><a href="http://w2beauty.com/en/108-body-set">Body Set</a></li></ul></li><li ><a href="http://w2beauty.com/en/86-cleansing">Cleansing</a><ul><li ><a href="http://w2beauty.com/en/87-cleansing-oil">Cleansing Oil</a></li><li ><a href="http://w2beauty.com/en/88-cleansing-foam">Cleansing Foam</a></li><li ><a href="http://w2beauty.com/en/89-tissue-make-up-remover">Tissue & Make up Remover</a></li><li ><a href="http://w2beauty.com/en/90-cleansing-water">Cleansing Water</a></li><li ><a href="http://w2beauty.com/en/[spam-filter]cream-lotion">Cream & Lotion</a></li><li ><a href="http://w2beauty.com/en/51-body-cleanser">Body Cleanser</a></li><li ><a href="http://w2beauty.com/en/92-cleansing-peeling">Cleansing Peeling</a></li></ul></li><li ><a href="http://w2beauty.com/en/10-tools">Tools</a><ul><li ><a href="http://w2beauty.com/en/66-brush">Brush</a></li><li ><a href="http://w2beauty.com/en/67-sponge">Sponge</a></li><li ><a href="http://w2beauty.com/en/68-puff">Puff</a></li><li ><a href="http://w2beauty.com/en/69-oil-control-film">Oil Control Film</a></li><li ><a href="http://w2beauty.com/en/70-miscellaneous">Miscellaneous</a></li><li ><a href="http://w2beauty.com/en/107-eyelash-tools">Eyelash tools</a></li></ul></li><li ><a href="http://w2beauty.com/en/3-men">Men</a><ul><li ><a href="http://w2beauty.com/en/6-skin-men">Skin - Men</a></li><li ><a href="http://w2beauty.com/en/60-lotion-men">Lotion - Men</a></li><li ><a href="http://w2beauty.com/en/61-essence-men">Essence - Men</a></li><li ><a href="http://w2beauty.com/en/62-suncare-men">Suncare - Men</a></li><li ><a href="http://w2beauty.com/en/63-shaving-cleansing">Shaving & Cleansing</a></li><li ><a href="http://w2beauty.com/en/64-massage-pack-men">Massage & Pack</a></li><li ><a href="http://w2beauty.com/en/65-set-men">Set - Men</a></li><li ><a href="http://w2beauty.com/en/103-make-up-bb-cream">Make Up & BB Cream</a></li></ul></li><li ><a href="http://w2beauty.com/en/11-best-sellers">Best Sellers</a><ul><li ><a href="http://w2beauty.com/en/75-best-skincare">Best Skincare</a></li><li ><a href="http://w2beauty.com/en/77-best-make-up">Best Make Up</a></li><li ><a href="http://w2beauty.com/en/78-nail-lips-eyes">Nail - Lips - Eyes</a></li><li ><a href="http://w2beauty.com/en/93-others">Others</a></li></ul></li></ul><div class="sf-right"> </div><form action="" id="ld_form" method="post"> <input type="hidden" name="id_currency" id="ld_id_currency" value="" /> <input type="hidden" name="SubmitCurrency" value="" /></form><script>/* <![CDATA[ */var ld_conversion_map=new Array();ld_conversion_map["1"]=1;ld_conversion_map["2"]=2;ld_conversion_map["3"]=2;ld_conversion_map["4"]=2;ld_conversion_map["5"]=2;ld_conversion_map["6"]=2;ld_conversion_map["en"]=1;ld_conversion_map["br"]=2;ld_conversion_map["de"]=2;ld_conversion_map["es"]=2;ld_conversion_map["fr"]=2;ld_conversion_map["it"]=2;$(document).ready(function(){$('#languages_block_top a').each(function(){var ld_href=$(this).attr('href');if(ld_href.indexOf('id_lang=')>=0)
{var ld_tmp=ld_href.split('id_lang=');ld_tmp=ld_tmp[1].split('&');ld_tmp=ld_tmp[0];}
else
{var ld_tmp=ld_href.split('lang-');ld_tmp=ld_tmp[1].substring(0,2);}
$(this).attr('href','javascript:ld_lang_change("'+ld_href+'",'+ld_conversion_map[ld_tmp]+')');});});function ld_lang_change(act,curr_id)
{$('#ld_form').attr('action',act);$('#ld_id_currency').val(curr_id);$('#ld_form').submit();}/* ]]> */</script>

 

Mais ce n'est pas du code natif PrestaShop je dirais.

 

Bon courage

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...