Hugon Posted March 22, 2011 Share Posted March 22, 2011 Dans le backoffice on peut modifier le short description et le long mais quand on va dans la page du produit la description se met bien (sauter des lignes, gras....) mais dans produits PHARES ca marche pas ca continue a la ligne et ca saute des lignes quand ca veut, j'ai BESOIN que ca se met comme je l'ai mit dans le backofficej'utilise prestashop 1.3 mais j'ai modifié plein de truc mais cela n'a rien avoir car j'ai tester sur prestashop d'origine et ta le meme bug (strap tags) dans la descriptions.Ca fait 1 semaine que je cherche et je trouve RIEN qui marche j'ai trouvé pas mal de truc mais RIEN marche c'est allucinant personne aurai une solution pour que quand on met le texte comme on veut dans le bacoffice ca face pareil dans produits PHARES? Link to comment Share on other sites More sharing options...
Hugon Posted March 22, 2011 Author Share Posted March 22, 2011 Personne a la solution car virer |strip_tags:'UTF-8' marche pas Link to comment Share on other sites More sharing options...
jherbaux Posted March 22, 2011 Share Posted March 22, 2011 il nous faudrait un peut de code ...sinon si c'est juste le saut de ligne, peut être qu'un : {$ta_var|nl2br} (jamais testé) Link to comment Share on other sites More sharing options...
Hugon Posted March 22, 2011 Author Share Posted March 22, 2011 Je vais testé merci sinon voila le codage <!-- MODULE Home Featured Products --> {l s='Coup de coeur' mod='homefeatured'} {if isset($products) AND $products} {assign var='liHeight' value=180} {assign var='nbItemsPerLine' value=2} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)} {$product.name|escape:htmlall:'UTF-8'|truncate:100} {$product.description_short|strip_tags:htmlall:'UTF-8'|truncate:130} {displayWtPrice p=$product.price} {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/foreach} {else} {l s='Rien pour le moment' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Hugon Posted March 22, 2011 Author Share Posted March 22, 2011 Toujours pas de solution? je sais que quand je supprime |strip_tags:'UTF-8' les textes se mettent comme je veux mais ils déplace les carrés et les textes sont mal placé etc...Je veux que quand je met en gras ca se met en gras, quand je saute des lignes ca saute au bon endroit etc...ca fait ca Link to comment Share on other sites More sharing options...
jherbaux Posted March 23, 2011 Share Posted March 23, 2011 Si l'affichage est bon sans |strip_tags:'UTF-8' c'est donc un problème de CSS non ? Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Non matte la deuxieme photo le texte se met n'importe ou c'est horrible Link to comment Share on other sites More sharing options...
jherbaux Posted March 23, 2011 Share Posted March 23, 2011 oui, mais tous ce qui est police de caractère, gras, passe a la ligne, souligné ... est respecté ou pas ? Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Il respecte seulement de temps en temps mais on peut pas voit car les textes se mettent par tout lol Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 /* Produits Phares*/ /* Special style for block products in center column */ #center_column .products_block { border-style: none; float: left; width: 741px; } #center_column .products_block { color: #595a5e; } #center_column .products_block .block_content { background-image: none; background-color: none; padding: 0; } #center_column .products_block ul li:hover { background-color: #fcf6f5; } #center_column .products_block ul li { background-color: #fff; border-top:3px solid #86453f; border-left:1px solid #86453f; border-right:1px solid #86453f; border-bottom:1px solid #86453f; margin-top: 10px; clear: none; float: right; /*width: 260px; IE6 */ width: 316px; padding:0 2px 5px; margin-left: 15px; margin-right: 50px; } #center_column .products_block li.last_item_of_line { margin-right: 2px; display: block; float: left; } #center_column .products_block li.first_item_of_line { display: block; float: left; clear:both; } #center_column .products_block li.last_line { } #center_column .products_block p, #center_column .products_block h5 { } #center_column div.products_block h5 { display: block; height: auto; font-weight: bold; font-size: 1em; text-align: left; border-left-style: solid; border-left-width: 0; padding-top: 5px; margin: 0 0 5px 4px; } #center_column div.products_block h5 a { color: #424243; font-size: 1.1em; } #center_column div.products_block ul li p { padding: 0; display: block; margin: 0; float: right; } #center_column div.products_block p.product_desc { color: #595a5e; width: 150px; display: block; height: 60px; overflow: hidden; margin-bottom: 4px; padding-bottom: 0; z-index: 1; } #center_column div.products_block a.product_image { display: inline; background-color: transparent; width: 110px; height: 110px; margin: 0; float: left; } #center_column div.products_block a.product_image img { margin: 0; display: inline; } #center_column div.products_block p.product_desc, #center_column div.products_block h5 { margin-right:0.6em; text-align: left; } #center_column div.products_block ul li p.product_desc a { font-weight: normal; font-style: normal; display: block; } #center_column .products_block span.price { text-align: left; color: #86453f; display: block; font-size: 12px; direction: ltr; line-height: 17px; border-width: 1px; border-style: none; margin: 2px 1px 2px 0; } #center_column .products_block a.button { margin: 0.1em 1px 0.2em 0; } #center_column .products_block a.exclusive { display: block; margin-right: 0; margin-left: 0; } #center_column .products_block span.exclusive { margin: 0.5em auto 0.5em 0; display: none; } /* Special style for block accessories in center column (product page) */ #center_column .products_block.accessories_block .block_content { background-image: none; font-size: 1em; border-bottom: 1px solid #85949d; display: inline-block; height: auto; vertical-align: top; } #center_column div.products_block.accessories_block p.product_desc { color: gray; font-size: 1em; display: inline-block; height: auto; margin: 0; } /* Special style for block accessories in center column (product page) */ #center_column .products_block.accessories_block .block_content{ background:none; } #center_column div.products_block.accessories_block p.product_desc { height:6.5em; } #center_column .products_block.accessories_block .block_content li{ background:none; } #center_column .products_block.accessories_block .block_content li a.product_image, #center_column .products_block.accessories_block .block_content li a.product_description { border-right:1px solid #d0d3d8; font-weight:bolder; } #center_column .products_block.accessories_block .block_content li.last_item a.product_image{ border:none; } Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Personne a une réponse? car la j'en ai trop marre de chercher!!!!!! lol pourtant ca n'a pas l'air d'etre ultra dure comparer a d'autre chose lol je veux juste que ca face sur la photo 1 Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Voila une autre questions personne peu m'xepliquer comment faire pour que les boites dans nouveautés face pareil que dans PRODUITS PHARES??????? Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Bon maintenant je peux changer en gras etc..... mais je peux toujours pas sauter de ligne (dans le backoffice il saute des lignes mais pas dans le frontoffice) <!-- MODULE Home Featured Products --> {l s='Coup de coeur' mod='homefeatured'} {if isset($products) AND $products} {assign var='liHeight' value=180} {assign var='nbItemsPerLine' value=2} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)} {$product.name|escape:htmlall:'UTF-8'|truncate:100} {$product.description_short|truncate:160} {displayWtPrice p=$product.price} {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/foreach} {else} {l s='Rien pour le moment' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Hugon Posted March 23, 2011 Author Share Posted March 23, 2011 Alors personne a une solution? lol je suis pas le seul avec ce probleme tout les prestashop a ce bug Link to comment Share on other sites More sharing options...
Patric Posted March 24, 2011 Share Posted March 24, 2011 Topic fermé pour les mêmes raisons que mentionnées ici.http://www.prestashop.com/forums/viewthread/98770De plus merci d'éviter le multi-post.Donc merci de prendre connaissances des règles du forum. Link to comment Share on other sites More sharing options...
Recommended Posts