prestashop 1.7.5 show product-discounts.tpl into miniatures/product.tpl
NickName:dfiesta Ask DateTime:2019-02-26T08:41:09

prestashop 1.7.5 show product-discounts.tpl into miniatures/product.tpl

i have problems when i try to show product discounts into the miniatures of search results. I'm using prestashop 1.7.5.1 version and php 7.0

in templates/catalog/product.tpl y have the followin code:

{block name='product_discounts'}
    {include file='catalog/_partials/product-discounts.tpl'}
{/block}

but if i try to put that code into templates/catalog/partials/miniatures/product.tpl it doesnt work

I need to show product discount table into search results (or categoríes) products miniatures.

Copyright Notice:Content Author:「dfiesta」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54876888/prestashop-1-7-5-show-product-discounts-tpl-into-miniatures-product-tpl

More about “prestashop 1.7.5 show product-discounts.tpl into miniatures/product.tpl” related questions

prestashop 1.7.5 show product-discounts.tpl into miniatures/product.tpl

i have problems when i try to show product discounts into the miniatures of search results. I'm using prestashop 1.7.5.1 version and php 7.0 in templates/catalog/product.tpl y have the followin co...

Show Detail

Display manufacturers name in product list (Prestashop 1.7)

I'm trying to display manufacturer in category view using Prestashop 1.7. Prestashop 1.7 uses a new file system with partials, the file I'm trying to edit is located in /themes/your_theme/templates/

Show Detail

Display product available sizes on product miniature Prestashop 1.7

I would like to know how to show available product sizes on product miniature in Prestashop 1.7. Variable $product.size gives an array so I tried somehow to use <ul> {foreach from=$product ke...

Show Detail

How to get root category on product.tpl - Prestashop

I would like to get root category on product.tpl with Prestashop. It means if I have a product which is in cat1>cat2>cat3, I should get "cat1". Is it possible ? I tried $product->

Show Detail

Show reduction end date prestashop

I would to create a countdown system for a product reduction in prestashop. So I need to show the reduction end date. I modified product.tpl with these lines : {if ($product->reduction_to)} ...

Show Detail

prestashop 1.6 carrier id on product.tpl

So I want to show a banner " FREE DELIVERY " on product page ( product.tpl ) on ps 1.6.14 , based on selected carrier for this specific product in back office. Every single product has only one c...

Show Detail

Prestashop : Showing back-office custom tab content in product.tpl in front-office

I went through the following tutorial : http://nemops.com/prestashop-products-new-tabs-fields/ and I found myself unable to add the content of the fields into my front-office product.tpl page. I a...

Show Detail

How to show Prestashop product price by tag ( i want to divide to 12 or 6 installments with IF )

I need all prestashop products to sell with 6 or 12 installments. Because I don't see anywhere to do that (even with modules), I guess that I can manipulate the product.tpl to put an IF condition...

Show Detail

Smarty operation in Prestashop 1.7

I'm trying to do in Prestashop 1.7 math operation between two smarty variables inside product-discounts.tpl but result is wrong... {$product.regular_price} [output: 12,85 €] {$quantity_discount.

Show Detail

Make prestashop 1.7 name and description on 2 lines

everyone! I need to make the name and description in the product miniatures on 2 lines. So what I did was, I changed templates\catalog_partials\miniatures\product.tpl like so: {block name='

Show Detail