Jump to content

[resolu]Comment augmenter la hauteur de la description sous le module scene?[resolu]


lemandingo

Recommended Posts

Bonjour à tous,

 

 

Dans mes catégories, j'ai un module scène avec la présentation de mes produits en photo.

 

Je souhaiterais modifier la case de description sous ce module car ils affiche "plus" pour lire la suite.

 

je voudrais faire apparaitre tout mon texte ou pouvoir modifier la hauteur qui est de 41px.

 

 

<div class=​"cat_desc">​788px...41px

 

Voici le liens de mon site asianstyle

 

Merci par avance aux personnes qui peuvent m'apporter la solution.

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

bonjour,

 

tout n'est pas trèc clair, mais si j'ai bien compris, vous souhaitez changer le terme "plus" par "lire la suite"... pour cela vous devez vous rendre dans les traductions dans le back office. (PS 1.5 --> localisation > traduction)

 

pour augmentez la taille de la description, il faut augmenter le Truncate dans le fihier tpl.

chanfer la hauteur du bloc ne fera pas augmenter la longueur de texte.

Link to comment
Share on other sites

J'ai essayé mais rien ne bouge...

 

Peu-être avec un capture cela sera plus explicite !

 

Donc pour "TARIF DEGRESSIF !! Baume du tigre rouge ou blanc: Pot de 19 grammes = 7 € Lot de 6 pots de 19 g = 33 € La boîte..." qui est entouré de noir... Je voudrais afficher toute la description dans la continuité des " ... "

 

ou supprimer le plus ou la description longue.

 

J'espère que c'est plus clair maintenant.

post-483300-0-65792000-1362976843_thumb.jpg

Link to comment
Share on other sites

Non pas du tout !

 

Je ne mentionne pas changer le plus par lire la suite car ça je connais la manip. c'est dans langue traduction...

 

je veux sois supprimer le plus et afficher toute la description soit afficher la description courte plus longue.

Link to comment
Share on other sites

tu veux dire:

 

mettre <div class="cat_desc"> avant <p class="description">{$product.details->description_short|strip_tags|truncate:360:'...'}</p>apres </div>

 

cela donne:

{/if}

</div>

{/if}

<img src="{$link->getImageLink($product.id_product, $imageIds, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />

<p class="title_block"><span class="product_name">{$product.details->name}</span></p>

<div class="cat_desc"><p class="description">{$product.details->description_short|strip_tags|truncate:360:'...'}</p></div>

</div>

{/foreach}

 

ou faire autrement?

Link to comment
Share on other sites

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

{if scenes}

<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/cluetip/jquery.cluetip.js"></script>

<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/jquery.scrollTo.js"></script>

<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/jquery.serialScroll.js"></script>

<script type="text/javascript">// <![CDATA[

i18n_scene_close = '{l s='Close' js=1}';

$(function () {ldelim}

li_width = parseInt({$thumbSceneImageType.width} + 10);

{rdelim});

//]]></script>

<script type="text/javascript" src="{$js_dir}scenes.js"></script>

<div id="scenes">

<div>

{foreach $scenes as $scene_key=>$scene}

<div class="screen_scene" id="screen_scene_{$scene->id}" style="background:transparent url({$base_dir}img/scenes/{$scene->id}-scene_default.jpg); height:{$largeSceneImageType.height}px; width:{$largeSceneImageType.width}px; {if !$scene@first} display:none;{/if}">

{foreach $scene->products as $product_key=>$product}

{assign var=imageIds value="`$product.id_product`-`$product.id_image`"}

<a href="{$product.link|escape:'htmlall':'UTF-8'}" accesskey="#scene_products_cluetip_{$scene_key}_{$product_key}_{$product.id_product}" class="cluetip" style="width:{$product.zone_width}px; height:{$product.zone_height}px; margin-left:{$product.x_axis}px ;margin-top:{$product.y_axis}px;">

<span style="margin-top:{math equation='a/2 -10' a=$product.zone_height}px; margin-left:{math equation='a/2 -10' a=$product.zone_width}px;"> </span>

</a>

<div id="scene_products_cluetip_{$scene_key}_{$product_key}_{$product.id_product}" style="display:none;">

{if !$PS_CATALOG_MODE AND $product.details->show_price}

<div class="prices">

{if isset($product.details->new) AND $product.details->new}<span class="new">{l s='New'}</span>{/if}

<p class="price">{if $priceDisplay}{convertPrice price=$product.details->getPrice(false, $product.details->getDefaultAttribute($product.id_product))}{else}{convertPrice price=$product.details->getPrice(true, $product.details->getDefaultAttribute($product.id_product))}{/if}</p>

{if $product.details->on_sale}

<span class="on_sale">{l s='On sale!'}</span>

{elseif isset($product.reduction) && $product.reduction}

<span class="discount">{l s='Reduced price!'}</span>

{/if}

</div>

{/if}

<img src="{$link->getImageLink($product.id_product, $imageIds, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />

<p class="title_block"><span class="product_name">{$product.details->name}</span></p>

<p class="description">{$product.details->description_short|strip_tags|truncate:360:'...'}</p>

</div>

{/foreach}

</div>

{/foreach}

</div>

{if isset($scenes.1)}

<div class="thumbs_banner" style="height:{$thumbSceneImageType.height}px;">

<span class="space-keeper">

<a class="prev" href="#" style="height:{math equation='a+2' a=$thumbSceneImageType.height}px;" onclick="{ldelim}next_scene_is_at_right = false; $(this).parent().next().trigger('stop').trigger('prev'); return false;{rdelim}"> </a>

</span>

<div id="scenes_list">

<ul style="width:{math equation='(a*b + (a-1)*10)' a=$scenes|@count b=$thumbSceneImageType.width}px; height:{$thumbSceneImageType.height}px;">

{foreach $scenes as $scene}

<li id="scene_thumb_{$scene->id}" style="{if !$scene@last} padding-right:10px;{/if}">

<a style="width:{$thumbSceneImageType.width}px; height:{$thumbSceneImageType.height}px" title="{$scene->name|escape:'htmlall':'UTF-8'}" href="#" rel="{$scene->id}" onclick="{ldelim}loadScene({$scene->id});return false;{rdelim}">

<img alt="{$scene->name|escape:'htmlall':'UTF-8'}" src="{$content_dir}img/scenes/thumbs/{$scene->id}-m_scene_default.jpg" width="{$thumbSceneSize.width}" height="{$thumbSceneSize.height}" />

</a>

</li>

{/foreach}

</ul>

</div>

<span class="space-keeper">

<a class="next" href="#" style="height:{math equation='a+2' a=$thumbSceneImageType.height}px;" onclick="{ldelim}next_scene_is_at_right = true; $(this).parent().prev().trigger('stop').trigger('next'); return false;{rdelim}"> </a>

</span>

</div>

{/if}

</div>

{/if}

Link to comment
Share on other sites

Bonjour,

 

Dans le fichier category.tpl de ton thème tu dois avoir plus ou moins ceci :

 

{if strlen($category->description) > 120}
   <p id="category_description_short">{$category->description|truncate:120}</p>
   <p id="category_description_full" style="display:none">{$category->description}</p>
   <a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
{else}
   <p>{$category->description}</p>
{/if}

 

A remplacer par cela :

 

<p>{$category->description}</p>

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

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

{include file="$tpl_dir./breadcrumb.tpl"}

{include file="$tpl_dir./errors.tpl"}

 

{if isset($category)}

{if $category->id AND $category->active}

<h1>

{strip}

{$category->name|escape:'htmlall':'UTF-8'}

{if isset($categoryNameComplement)}

{$categoryNameComplement|escape:'htmlall':'UTF-8'}

{/if}

{/strip}

</h1>

 

<div class="resumecat category-product-count">

{include file="$tpl_dir./category-count.tpl"}

</div>

 

{if $scenes || $category->description || $category->id_image}

<div class="content_scene_cat">

{if $scenes}

<!-- Scenes -->

{include file="$tpl_dir./scenes.tpl" scenes=$scenes}

{else}

<!-- Category image -->

{if $category->id_image}

<div class="align_center">

<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />

</div>

{/if}

{/if}

 

{if $category->description}

<div class="cat_desc">

{if strlen($category->description) > 120}

<p id="category_description_short">{$category->description|truncate:120}</p>

<p id="category_description_full" style="display:none">{$category->description}</p>

<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>

{else}

<p>{$category->description}</p>

{/if}

</div>

{/if}

</div>

{/if}

{if isset($subcategories)}

<!-- Subcategories -->

<div id="subcategories">

<h3>{l s='Subcategories'}</h3>

<ul class="inline_list">

{foreach from=$subcategories item=subcategory}

<li class="clearfix">

<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">

{if $subcategory.id_image}

<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />

{else}

<img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />

{/if}

</a>

<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>

{if $subcategory.description}

<p class="cat_desc">{$subcategory.description}</p>

{/if}

</li>

{/foreach}

</ul>

<br class="clear"/>

</div>

{/if}

 

{if $products}

<div class="content_sortPagiBar">

{include file="$tpl_dir./pagination.tpl"}

<div class="sortPagiBar clearfix">

{include file="./product-sort.tpl"}

{include file="./product-compare.tpl"}

{include file="./nbr-product-page.tpl"}

</div>

</div>

 

{include file="./product-list.tpl" products=$products}

 

<div class="content_sortPagiBar">

<div class="sortPagiBar clearfix">

{include file="./product-sort.tpl"}

{include file="./product-compare.tpl"}

{include file="./nbr-product-page.tpl"}

</div>

{include file="./pagination.tpl"}

</div>

{/if}

{elseif $category->id}

<p class="warning">{l s='This category is currently unavailable.'}</p>

{/if}

{/if}

Link to comment
Share on other sites

bonjour!

 

tout à fait, j'ai lu et essayé mais c'est pas bon cela me fait disparaitre ma page ...

 

si j'ai bien compris tu m'as demandé de remplacer:

 

 

{if strlen($category->description) > 120}

<p id="category_description_short">{$category->description|truncate:120}</p>

<p id="category_description_full" style="display:none">{$category->description}</p>

<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>

{else}

<p>{$category->description}</p>

{/if}

 

par <p>{$category->description}</p>

Link to comment
Share on other sites

Cool ça fonctionne! merci à vous par contre dans mon BO cela s'affiche comme ci-dessous mais sur le site cela s'affiche a la suite.

Peut-on le modifier??

 

Je voudrais que cela apparaisse comme cela :

 

TARIF DEGRESSIF : Pot de 19 grammes = 7 €

Lot de 6 pots de 19 g = 33 € soit 5.5 € l'unité

La boîte de 12 pots de 19 g = 54 € soit 4.5 € l'unité

 

Pot de 30 grammes = 9 €

Lot de 6 pots de 30 g = 45 € soit 7.5 € l'unité

La boîte de 12 pots de 30 g = 72 € soit 6 € l'unité

 

LIVRAISON GRATUITE

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

malheureusement cela ne change rien! si tu me demande bien de mettre

 

<p>{$category->description|strip_tags:'UTF-8'}</p> par <p>{$category->description}</p>

 

 

 

Est ce que ta demande de remplacement doit toujours se faire sous category.tpl ?

 

N'y aurait-il pas une fonction <br/> ou {$ta_var|nl2br} à mettre?

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

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...