• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 21.03.19, 08:51
  • Opened by: najib mounsef
  • Closed by: Marek
  • Closed on: 07.04.19, 21:36
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14012 - Build category page & add badge to product

Hi,
How to add badge to the product with pourcentage of discount look at the image.
In general how to build costum category page and change the sidebare

Comments

Marek 21 Mar 2019, 10:04

Open the file /themes/alysum/templates/catalog/_partials/miniatures/product.tpl
add following code to the line 172

{if !empty($product.discount_percentage)}
<li class="discount-perc">{$product.discount_percentage}</li>
{/if}

it should look like this

{if Configuration::get('pm_labels') == true}
        {block name='product_flags'}
          <ul class="product-flags">
            {foreach from=$product.flags item=flag}
              <li class="{$flag.type}">{$flag.label}</li>
            {/foreach}
            {if !empty($product.discount_percentage)}
            <li class="discount-perc">{$product.discount_percentage}</li>
            {/if}
          </ul>
        {/block}
      {/if}
najib mounsef 21 Mar 2019, 10:21

there is no graphic interface to build category page and choose wich filter to show and what to show in the sidebare like we the in home page?

Marek 21 Mar 2019, 10:31

Yes, there is no such option in prestashop

najib mounsef 21 Mar 2019, 13:27

and how to update zone indicated in the image.
Timeless design is your widget

Marek 21 Mar 2019, 14:41

There is a native prestashop tool to manage modules http://take.ms/JaRhho