# Leyenda Agotado en Imagen de Producto

**URL:** <https://foro.wpargentina.org/t/leyenda-agotado-en-imagen-de-producto/4014>\
**Category:** WooCommerce\
**Created:** [14 Junio, 2021 02:41 UTC](https://foro.wpargentina.org/t/leyenda-agotado-en-imagen-de-producto/4014 "2021-06-14T02:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TitoWhisky](https://foro.wpargentina.org/user_avatar/foro.wpargentina.org/titowhisky/32/1953_2.png) [@TitoWhisky](https://foro.wpargentina.org/u/TitoWhisky)\
**Post date:** [14 Junio, 2021 02:41 UTC](https://foro.wpargentina.org/t/leyenda-agotado-en-imagen-de-producto/4014/1 "2021-06-14T02:41:22Z")

</div>

Hola. Alguien sabe como puedo hacer ya sea con un snippets o en el ccs, que en la tienda se les agregue una Leyenda de “Agotado” en la imagen en el caso que no haya stock?  
Gracias.

---

<div class="post-metadata">

**Author:** ![Fer\_Factory](https://foro.wpargentina.org/user_avatar/foro.wpargentina.org/fer_factory/32/2009_2.png) [@Fer\_Factory](https://foro.wpargentina.org/u/Fer_Factory)\
**Post date:** [14 Junio, 2021 10:33 UTC](https://foro.wpargentina.org/t/leyenda-agotado-en-imagen-de-producto/4014/2 "2021-06-14T10:33:09Z")

</div>

Algo asi?

> **[Sold Out Badge for WooCommerce](https://wordpress.org/plugins/sold-out-badge-for-woocommerce/)**
>
> Display a "Sold Out!" badge on out of stock products.
> Show the text and colors you want. Perfect for artists, artisans, real estate professionals...

o tambien con este codigo:

En Functions.php:

```auto
//Add an out of stock overlay to product images when all variations are unavailable
add_action( 'woocommerce_before_shop_loop_item_title', function() {
global $product;
if ( !$product->is_in_stock() ) {
echo '<span class="sold-out-overlay">Agotado</span>';
}
});

```

en CSS:

```auto
.sold-out-overlay {
background: #654ea3; 
color: #fff;
font-size: 14px;
font-weight: 600;
padding: 5px 10px;
position: absolute;
right: 50px;
top: 10px;
}

```

---

<div class="post-metadata">

**Author:** ![TitoWhisky](https://foro.wpargentina.org/user_avatar/foro.wpargentina.org/titowhisky/32/1953_2.png) [@TitoWhisky](https://foro.wpargentina.org/u/TitoWhisky)\
**Post date:** [14 Junio, 2021 21:09 UTC](https://foro.wpargentina.org/t/leyenda-agotado-en-imagen-de-producto/4014/3 "2021-06-14T21:09:46Z")

</div>

SI, hace 30 minutos encontré el plug-in y como es gratuito y pequeño ya lo instale y funciona muy bien. gracias por contestar.
