wdrożenia PrestaShop Powiększenie zdjęć moduł

Ilosc wyswietlanych produktów

  • 2 Odpowiedzi
  • 2773 Wyświetleń

0 użytkowników i 1 Gość przegląda ten wątek.

*

Offline slash5

  • Użytkownik
  • **
  • 35
  • 0
Ilosc wyswietlanych produktów
« dnia: Lipiec 02, 2009, 09:51:01 pm »
Mam jeszcze maly problem z wyswietlaniem produktow, chcialbym zeby wyswietlay sie po 2 produkty w kolumnie. Na obrazkach przedstawiam jak jest ( 1 produkt) a jak chcialbym aby bylo ( 2 produkty )

Z tego co mi sie wydaje odpowiedzialny jest za to plik product-list.tpl  moj po modyfikacjach wyglada tak
( wyswietla sie jak na gornym obrazku) :

{if isset($products)}
   <!-- Products list -->
   <ul id="product_list" class="clear">
         
   {foreach from=$products item=product name=products}
      <li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if}">
   
      
         <div class="center_block">
         
         <h3>{if $product.new == 1}<span class="new">{l s='new'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.legend|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35|escape:'htmlall':'UTF-8'}[/url]</h3>
         
            <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$img_prod_dir}{$product.id_image}-home.jpg" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />[/url]
            
            <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360}[/url]</p>
            
         </div>
         
         
         <div class="center_block">
         
         
         
            {if $product.on_sale}
               <span class="on_sale">{l s='On sale!'}</span>
            {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product.reduction_from))}
               <span class="discount">{l s='Price lowered!'}</span>
            {/if}

            <span class="price">{convertPrice price=$product.price}</span>
            <span class="availability">{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if}</span>
            {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
               <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$base_dir}cart.php?add&amp;id_product={$product.id_product|intval}&amp;token={$static_token}">{l s='Add to cart'}[/url]
            {else}
                  <span class="exclusive">{l s='Add to cart'}</span>
            {/if}
            <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}[/url]
         </div>
         
         
         <br class="clear"/>
      </li>
   {/foreach}
   </ul>
   <!-- /Products list -->
{/if}

*

Offline precelik

  • Użytkownik
  • **
  • 34
  • 0
    • blogi i strony www
Odp: Ilosc wyswietlanych produktów
« Odpowiedź #1 dnia: Lipiec 04, 2009, 05:30:09 pm »
Ja u siebie w sklepie z biżuterią zamiast kombinowac poszedłem na łatwiznę i  skopiowałem ten skrypcik co wyświetlał na głównej stronie (4 w rzędzie) i wygląda to tak. Jak Ci to odpowiada mogę podesłać ten plik tpl (podaj mail na PW)

*

Offline slash5

  • Użytkownik
  • **
  • 35
  • 0
Odp: Ilosc wyswietlanych produktów
« Odpowiedź #2 dnia: Lipiec 04, 2009, 05:53:21 pm »
z tamtego tez robilem, nawet probowalem polaczyc tan skrypty i zrobic ustawienie pod siebie, ale nie wiem czemu jak robie border to wszedzie jest oprocz tej drugiej kolumny po prawej stronie...jakby ktos wiedzial jak to zrobic i jak podyfikowac ogolnie wyswietlanie porduktow ( listy ) prosze o odpowiedz