Jump to content

tomikk

Members
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Location
    Brwinów
  • Activity
    Other

tomikk's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This tutorial is ok, but I've got problem because combinations are not adding to cart (instead this it takes default combinations). Has anybody similiar problem? Maybe somebody already fix this? Add to cart link looks like: <a class="exclusive button ajax_add_to_cart_button add-to-cart-in-wl" data-id-attribute="53" data-id-product="9" data-minimal_quantity="1" title="Add to cart" href="http://www.XXXXXXX.eu/cart?qty=1&amp;id_product=4&amp;add="><span>Add to cart</span></a> Prestashop 1.6.19
  2. Cześć, w sklepie mam utworzone stany dostępności w zależności od ilości produktów (mała ilość, średnia ilość, duża ilość). Jeśli produkt nie ma wariantów, wyświetla się ok (poniżej kod). W przypadku produktu z wariantami wyświetla niepoprawnie - albo tylko dla wariantu domyślnego pokazuje status lub wcale. Czy poniższy kod można zedytować, aby dotyczył także wariantów? Od 11 sztuk wariantu miałoby pokazywać dużą ilość, między 3 a 10 średnią, a poniżej 3 małą. {if $PS_STOCK_MANAGEMENT} <!-- availability --> {if ($product->quantity >= 11) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE}<p id="last_quantities"> Duża ilość </p>{/if} {if ($product->quantity > 3 && $product->quantity <= 10) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE}<p id="last_quantities"> Średnia ilość </p>{/if} <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {*<span id="availability_label">{l s='Availability:'}</span>*} <span id="availability_value"{if $product->quantity <= 10 && !$allow_oosp} class="warning_inline"{/if}> {if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}<p id="last_quantities" style="width: 250px !important;margin-left: -15px;margin-top:-15px;"> Niedostępny </p>{/if}{else}{$product->available_now}{/if}</span> </p> {hook h="displayProductDeliveryTime" product=$product} <p class="warning_inline" id="last_quantities" {if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} > Mała ilość </p> {/if} W innym temacie odnalazłem część, aby skorzystać z product.quantity - czy jest określony parametr, który zwraca wartość ilości danego wariantu? <!-- Sold out part --> {if $product.quantity == 0} <img width="129px" height="260px" src="http://yourshopdomain.com/img/p/yourimagename2.png" /> {/if} <!-- Ende Sold out part --> <!-- On Stock part --> {if $product.quantity > 0} <img width="129px" height="260px" src="http://yourshopdomain.com/img/p/yourimagename2.png" /> {/if} <!-- End of On Stock part -->
  3. Hi! I wanted to display customers 'images' according to quantity in stock. It was ok until products got combinations. It does not show good image. Below is my code - how can I display image according to combination? Thank you for help. {if ($product->quantity >= 11) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE}<p id="last_quantities"><img src="#image1"></p>{/if} {if ($product->quantity >= 3 && $product->quantity <= 10) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE}<p id="last_quantities"><img src="#image2"></p>{/if}
  4. Hello, how can I change default product.tpl to show three different availability status? 1. products <= 3 2. products >3 and <10 3. product >10 4. =0 out of stock I just want to show comments: Last items Many items In stock Out of stock {if $PS_STOCK_MANAGEMENT} <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {*<span id="availability_label">{l s='Availability:'}</span>*} <span id="availability_value"{if $product->quantity <= 10 && !$allow_oosp} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> {hook h="displayProductDeliveryTime" product=$product} <p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p> {/if} <p id="availability_date"{if ($product->quantity > 0) || !$product->available_for_order || $PS_CATALOG_MODE || !isset($product->available_date) || $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> <!-- Out of stock hook --> <div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS} </div> {if $PS_STOCK_MANAGEMENT}</div>{/if} Thank you for hints.
  5. Tak, dokonałem próbnych zakupów. Na zrzucie ekranu widać właśnie dwa razy moduł,gdzie tylko w jednym przypadku wyświetla produkty. Jeden hook wyświetla brak produktów.
  6. Cześć, mam pewien problem z ustawieniem wyświetlania produktów - najczęściej sprzedawanych. W sklepie ustawiony jest szablon: ap_office od Apollo. W tym szablonie jest moduł do wyświetlania slidera produktów - nowości, polecanych, promocji oraz bestsellerów. Te ostatnie nie wyświetlają się niestety. Po podpięciu modułu blockbestsellers do HookHome (gdzie podpięty jest moduł zakładek z sliderem) pokazuje, że nie ma bestsellerów. Natomiast podpięcie modułu poniżej, np. HookHomeTabContent pokazuje produkty (zamówienia próbne). W jaki sposób mogę zweryfikować, dlaczego nie pokazuje produktów? Nowości, polecane, promocje wyświetlają się poprawnie, tylko bestsellery są puste... Poniżej kod pliku wyświetlającego produkty w zakładkach: {if $featured} <div class="tab-pane" id="{$myTab}featured"> {$products=$featured} {$tabname="{$myTab}-featured"} {include file='./products.tpl'} </div> {/if} {if $newproducts} <div class="tab-pane" id="{$myTab}newproducts"> {$products=$newproducts} {$tabname="{$myTab}-newproducts"} {include file='./products.tpl'} </div> {/if} {if $special} <div class="tab-pane" id="{$myTab}special"> {$products=$special}{$tabname="{$myTab}-special"} {include file='./products.tpl'} </div> {/if} {if $bestseller} <div class="tab-pane" id="{$myTab}bestseller"> {$products=$bestseller} {$tabname="{$myTab}-bestseller"} {include file='./products.tpl'} </div> {/if} Będę wdzięczny za podpowiedzi.
  7. I would appreciate any help with this. How prestashop 1.6.0.7 define bestsellers? In code above what should I check, why there are not displaying bestsellers? $bestseller? Or maybe ther is something to look in products.tpl (I could not find anything to combine with this)... There are no bestsales showing in displayHome, but when I attached this module to displayHomeTabContent, there are showing. Take a look:
  8. When I look into the files, in block bestsellers I see: {if isset($best_sellers) && $best_sellers} {include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'} {else} This block displays products on homepage (after hooks). But for example in theme files, tabbed module there is: {if $featured} <div class="tab-pane" id="{$myTab}featured"> {$products=$featured} {$tabname="{$myTab}-featured"} {include file='./products.tpl'} </div> {/if} {if $newproducts} <div class="tab-pane" id="{$myTab}newproducts"> {$products=$newproducts} {$tabname="{$myTab}-newproducts"} {include file='./products.tpl'} </div> {/if} {if $special} <div class="tab-pane" id="{$myTab}special"> {$products=$special}{$tabname="{$myTab}-special"} {include file='./products.tpl'} </div> {/if} {if $bestseller} <div class="tab-pane" id="{$myTab}bestseller"> {$products=$bestseller} {$tabname="{$myTab}-bestseller"} {include file='./products.tpl'} </div> {/if} All products display as well, only bestsellers are empty... Can you help me where to search to fix it? I tried to change $bestseller to $best_sellers according to block bestsellers but with no luck.
  9. This tabbed widget is combined with the theme. Block bestsellers is hooked to Home, HomeTab and HomeTabContent. Still not showing. I don't know why new products and products on sale display well but bestsellers showing blank space.
  10. Hi, I can display bestsellers only on page ./best-sales but when I want to show them on homepage in tabbed content: Featured products / New products / Sale / Best sales Nothing is showing. Code below is displaying well featured, new products, sale but no bestsellers. Can you tell where to search, why they are not showing? It's Prestashop 1.6.1.7. {if $bestseller} <div class="tab-pane" id="{$myTab}bestseller"> {$products=$bestseller} {$tabname="{$myTab}-bestseller"} {include file='./products.tpl'} </div> {/if}
  11. How to show featured products in order to show newer products first, then older from featured?
  12. Hello, I'm using leo_theme ap_office. On homepage I have tabbed product carousel. There is a problem, because products have wrong order. Firstly show older 4 products, then newer 4 products (even in new products tab or featured tab). I want to change this order, so firstly make visible newer products, than older. I see that theme uses this products.tpl to show products in carousel. How can I change order showing products? (on category pages, where is not carousel, product order is ok (changes preferences/product display)). Maybe it will be ok to change first with last parameter, but I don't know how to do that :/ Can you help me? {if !empty($products)} <div class="carousel slide" id="{$tabname}"> {if count($products)>$itemsperpage} <a class="carousel-control left" href="#{$tabname}" data-slide="prev">‹</a> <a class="carousel-control right" href="#{$tabname}" data-slide="next">›</a> {/if} <div class="carousel-inner"> {$mproducts=array_chunk($products,$itemsperpage)} {foreach from=$mproducts item=products name=mypLoop} <div class="item {if $smarty.foreach.mypLoop.first}active{/if}"> <div class="product_list grid"> {foreach from=$products item=product name=products} {if $product@iteration%$columnspage==1&&$columnspage>1} <div class="row"> {/if} <div class=" ajax_block_product product_block {if $columnspage == 5}col-md-2-4 col-lg-2-4{else}col-md-{$scolumn}{/if} col-xs-6 col-sp-12 {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"> {include file="$tpl_dir./product-item.tpl"} </div> {if ($product@iteration%$columnspage==0||$smarty.foreach.products.last)&&$columnspage>1} </div> {/if} {/foreach} </div> </div> {/foreach} </div> </div> {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL} {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL} {addJsDef comparator_max_item=$comparator_max_item} {addJsDef comparedProductsIds=$compared_products} {/if}
  13. I don't know why, it shows me 404 when I want to download. Can you provide me link directly do download? Did that work for you with guest notification bug? Alle files should I replace or only couple of them? Thank you, Regards, Tom
×
×
  • Create New...