Jump to content

Search the Community

Showing results for tags 'if'.

  • Search By Tags

    • if ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


  1. Salve, ho necessità di far sì che il logo nelle fatture PDF cambi in base al gruppo cliente di default dell'utente a cui è attribuita. Nello specifico, se il gruppo clienti è il 4, mostra il mio logo alternativo, altrimenti mostra quello di default. Ho usato la stessa logica che ho usato per...
  2. I want the following: {if isset($products) AND $products} {$tabname=rand()+count($products)} {if isset($display_mode) && $display_mode == 'carousel'} {include file="{$items_owl_carousel_tpl}" items=$products image_size=$image_size} {else}...
  3. Hallo zusammen Prestashop Version 1.7.X Bin in der /product-add-to-cart.tpl Datei und möchte gerne das "zum Warenkorb hinzufügen" ausblenden, wenn der Lagerbestand leer ist. Kann mir jemand sagen wie ich herausfinden kann, in welcher Variable der Wert Lagerbestand gespeichert ist?...
  4. Bonjour à tous ! Je rencontre un petit souci lors de l’écriture de mon code sur mon site internet. Voilà, je cherche à intégrer une checkbox mais seulement pour un certain groupe de client, mais je n’arrive pas à trouver la solution pour mettre le code dans une fonction « if : condition ». C’es...
  5. Hallo, ich möchte alle Produkte auf eine bestimmte Kategorie prüfen. Also eine if Abfrage, leider hab ich aktuell keinen Plan davon.
  6. Bonjour, Je tourne sur Prestashop 1.7.2. je recherche une solution pour faire disparaître un morceau de code d'une de mes pages cms lorsqu'un certain produit est hors stock. Apres de nombreuse tentative infructueuse j'en suis arrivé à se code que j’insère sur la page CMS de mon choix...
  7. Hello, Does anynone know how to write it down in a shorter way? Tu put those ID into arrays or something? {if $product->id|intval == 1478 OR $product->id|intval == 2063 OR $product->id|intval == 3608 OR $product->id|intval == 3511 OR $product->id|intval == 5644 OR $product->id|intval == 5655 O...
  8. Witam, Mam pewien problem, troszkę leniwy ale nie mogę znaleźć szybko rozwiązania, a może ktoś potem w Google odnajdzie ten temat. Jak krócej zapisać w Smarty taki warunek? {if $product->id|intval == 1478 OR $product->id|intval == 2063 OR $product->id|intval == 3608 OR $product...
  9. Hi, I would like to add my own options inside CONDITION variable as illustrated in the image attached but I dont know where I can change core files. I have added 'fair' and 'great' condition options without success. {if !$product->is_virtual && $product->condition} <p id="product_co...
  10. Hi, Here is the situation. I created a employee profile which can only add and edit product. But i want to stop that profile of being able to enable/disable product on the "edit product page". I managed to do it on the product list page. The way i see it, is that i want to hide the html bloc...
  11. Hi all, I'm working on a website where some products have attributes which will vary in price. So for example, a bag of dog food at 1kg may be £10. A 2kg bag may be £18. These would be variations/attributes of one product. So as not to mislead customers, on the product list, we'd like to int...
  12. Hi all, I have 'small' problem. I am new with doing some advanced functions in presta, and I wanted to create function {if} for product.name truncate. But this one doesn`t work. Below is the code: {if $product.name|truncate >20} <h2 class="featured-product-title"> <a href="{$product.link}...
  13. I na .tpl file I have a table which should be displayed only with certain products. I've tried this but I only get a blank page. Any ideas what I'm doing wrong? {if $smarty.get.id_product!=1 ||} <div></div> {/if}
  14. hey all, if anyone could help me, what is lacking in my online store? please help me and give your opinion http://www.empireshop.uni.me
  15. Bonjour à tous, j'ai besoin d'un coup de pouce pour trouver le nom d'une variable. Dans productlist.tpl j'utilise les conditions product.new, product.on_sale, product.reduction pour ajouter un pictogramme sur l'image du produit. Mon code est ci-dessous est ça fonctionne parfaitement. Or...
  16. Hola, estoy probando a cambiar el css en header.tpl con los parámetros {if} {/if} porque quiero que un div sólo me aparezca en la index. Mi código es el siguiente: {if $page_name == 'index'} <style> #columns {margin-top: 0px;} .bx-wrapper {display:block;} </style> {else} {/i...
  17. Hallo zusammen, ich habe ein Template gekauft (http://addons.prestashop.com/en/fashion/7175-responsive-wrist-watches-store.html) das ich nun für meinen Kunden anzupassen versuche. Hier meine Frage, an der ich hänge: Die rechte Spalte soll auf verschiedenen Seiten ausgeblendet werden. Hier ist...
  18. Hi all, I have downloaded a module that works perfect on my 1.5.3.1 but I have a problem to show only in a concrete category , I can use the exception but it doesnt help in this case...for example is a sizechart module that appear in product description and I would like to show only on t-shirt...
  19. Hola, tengo una duda. Existe algun condicional, el cual me identifique si un $group.name existe o no? Gracias!
  20. Bonjour, Je voudrais afficher dans mon module spécifique footer un texte qui change en fonction de la catégorie dans laquelle on ce trouve. Je suis arrvié à ce code : {if $smarty.get.id_category == 18}{include file=$tpl_dir./test1.tpl}{/if} {if $smarty.get.id_category == 2}{include fi...
  21. Hallo, ich habe ein Problem mit einem Prestashop. Ich verwende den Shop in der rechten alten Version 1.4.4, allerdings mit einem noch älteren Template, weshalb ich immer Smarty2 verwendet habe, damit es noch läuft. Nun musste ich allerdings auf Smarty3 umstellen und mein Template daraufhin anpassen...
  22. Hello, I have a little problem with my SQL query, I'd like export my product from directly from database, but when query encounters situation when product doesn't have any attributes CONCAT_WS statement skip NULL values and go thru and display only rows wchich products have attributes. Some...
  23. Hola a todos!! Tengo una duda con mi web y os pido ayuda si es posible, quedaría muy agradecido si me guiais un poco. Os cuento, quiero hacer un condicional IF en product-list.tpl, es simplemente que en la vista de las categorías tipo lista (list), si que quiero que aparezca el botón del ca...
  24. Hello everyone. i'm trying to make an if statement in the product-list.tpl and i made this code {if ($category->name|escape:'htmlall':'UTF-8' = "Xbox 360 Games") || ($category->name|escape:'htmlall':'UTF-8' = "Playstation 3 Games") } do this if is true {/if} but is not working. what i'...
  25. Bonjour à tous, Je suis novice en ce qui concerne la modification des tpl et je souhaiterais que lorsqu'une de mes catégories contient plus 24 produits la disposition de mes produits soit différentes. Pour disposer mes produits différemment je me débrouille mais c'est la condition que je n'a...
×
×
  • Create New...