Jump to content

How to remove red "price" in right corner product image - product listing


norwegianfoodstore

Recommended Posts

Hi

I am totally new to PrestaShop. 

I have imported my exiting Woocommerce online store into PrestaShop. The problem i am having is that there is a red box in the upper right corner of the product image in the products listings.

How can i remove this? See attached image.

Prestashop 1.7.4.2

 

Eirik

redprice.png

Edited by norwegianfoodstore (see edit history)
Link to comment
Share on other sites

\templates\catalog\_partials\miniatures\product.tpl

Comment out below block

{block name='product_flags'}
        <ul class="product-flags">
               {foreach from=$product.flags item=flag}
                   <li class="product-flag {$flag.type}">{$flag.label}</li>
               {/foreach}
        </ul>
 {/block}

Link to comment
Share on other sites

28 minutes ago, ican said:

\templates\catalog\_partials\miniatures\product.tpl

Comment out below block

{block name='product_flags'}
        <ul class="product-flags">
               {foreach from=$product.flags item=flag}
                   <li class="product-flag {$flag.type}">{$flag.label}</li>
               {/foreach}
        </ul>
 {/block}

Hi

I removed this but didn't work:

{block name='page_content'}
              {block name='product_flags'}
                <ul class="product-flags">
                {*
                  {if $product.has_discount}
                    {if $product.discount_type === 'percentage'}
                      <li class="product-flag discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</li>
                    {else}
                      <li class="product-flag discount-percentage">
                          {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
                      </li>
                    {/if}
                  {/if}
                *}
                  {foreach from=$product.flags|@array_reverse item=flag}
                    <li class="product-flag {$flag.type}">{$flag.label}</li>
                  {/foreach}
                </ul>
              {/block}
Any suggestions?

 

Thanks

 

Eirik

Link to comment
Share on other sites

2 hours ago, norwegianfoodstore said:

Hi

I removed this but didn't work:

{block name='page_content'}
              {block name='product_flags'}
                <ul class="product-flags">
                {*
                  {if $product.has_discount}
                    {if $product.discount_type === 'percentage'}
                      <li class="product-flag discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</li>
                    {else}
                      <li class="product-flag discount-percentage">
                          {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
                      </li>
                    {/if}
                  {/if}
                *}
                  {foreach from=$product.flags|@array_reverse item=flag}
                    <li class="product-flag {$flag.type}">{$flag.label}</li>
                  {/foreach}
                </ul>
              {/block}
Any suggestions?

 

Thanks

 

Eirik

 

have you removed this?

{block name='product_flags'}
                <ul class="product-flags">
                {*
                  {if $product.has_discount}
                    {if $product.discount_type === 'percentage'}
                      <li class="product-flag discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</li>
                    {else}
                      <li class="product-flag discount-percentage">
                          {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
                      </li>
                    {/if}
                  {/if}
                *}
                  {foreach from=$product.flags|@array_reverse item=flag}
                    <li class="product-flag {$flag.type}">{$flag.label}</li>
                  {/foreach}
                </ul>
              {/block}

Link to comment
Share on other sites

4 minutes ago, ican said:

 

have you removed this?

{block name='product_flags'}
                <ul class="product-flags">
                {*
                  {if $product.has_discount}
                    {if $product.discount_type === 'percentage'}
                      <li class="product-flag discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</li>
                    {else}
                      <li class="product-flag discount-percentage">
                          {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
                      </li>
                    {/if}
                  {/if}
                *}
                  {foreach from=$product.flags|@array_reverse item=flag}
                    <li class="product-flag {$flag.type}">{$flag.label}</li>
                  {/foreach}
                </ul>
              {/block}

Yes

Nothing changed

Eirik

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...