Jump to content
Penge

[SOLVED] How to get a NOT AVAILABLE ribbon

Recommended Posts

 

Hello

 

I am using prestashop 1.7.x

 

In backoffice on product page and under Options it is possible to remove a tick in a box when the product is not available.

Is it possible to get a ribbon on the image saying "Not available" when the box is unticked ?

Or do I need a module for this ?

I know there is a module for adding ribbons but then I need first to untick the box and then add the ribbon,.  Means two steps.

Anyone done this ?

 

Petter

 

Edited by Penge (see edit history)

Share this post


Link to post
Share on other sites

Thank you....this is just what I am looking for :-)

I will do the changes now and come back to you and tell you how it went :-.)

 

Petter

Share this post


Link to post
Share on other sites

Hello and thank you.

It worked very well.

Is it possible show the same thing on the category and also main page ?

 

Petter

 

 

Share this post


Link to post
Share on other sites

Yes and thank you again.

 

I will try.

I am not sure how to mark it solved.

Do you just add "Solved" to the heading ?

 

Petter

Share this post


Link to post
Share on other sites

Yes I see it now.

Thanks a lot.

I will come back after my testing

 

cheers.

Share this post


Link to post
Share on other sites

The code here didnt work for classic template on prestashop 1.7.4.3, I used this code instead:

 

 {block name='product_flags'}
<ul class="product-flags">
{if $product->quantity == 0 AND $quantity == 0}
    <li class="product-flag">
        {l s="NOT AVAILABLE" d="Shop.Theme.Catalog"}
    </li>
    {/if} {foreach from=$product.flags item=flag}
    <li class="product-flag {$flag.type}">{$flag.label}</li>
    {/foreach}
</ul>
{/block}

 

But just coudlt quite get the main page to show the label..

 

Edited by guzzy92fs (see edit history)

Share this post


Link to post
Share on other sites
On 5/20/2019 at 9:07 AM, ilisiaraul said:

Any news? For display on homepage?

In my case, I ended up using a module to achieve it. Working good so far. It's called "Product Labels & Sticker" by FME Modules.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More