Site logo

Archived topic

Mostrar etiqueta "Agotado"

17 replies · Started by Pedro on May 11, 2020

Viewing posts 1–15 of 18

Hola Leo! Gracias por responder.

Si, pero lo que deseo es colocar una etiqueta que muestre que el producto está agotado. No deseo ocultar el producto de la tienda.

Eso por defecto lo hace el tema de Flatsome, como muestra en la imagen que coloqué anteriormente. ¿No hay forma que también se pueda hacer en el mejor tema de todos? (GeneratePress)

Can you link me to a page that shows what the current out of stock looks like?

I'll try to provide some CSS if it's simple enough.

If not then you might need to find a custom solution.

I need to see how the Out of Stock is displayed using GP currently.

Can you link me to an example?

Hola Leo! Claro que sí.

Ingresa a este enlace: https://www.rebajaslocas.com/cuidado-personal/

El producto #4 (Corrector de Postura Ajustable) está agotado en nuestra tienda.

Sin embargo con GeneratePress, como te puedes dar cuenta muestra el producto normal.

Hi there,

try this CSS:

.woocommerce ul.products li.product.outofstock .inside-wc-product-image {
    position: relative;
}

.woocommerce ul.products li.product.outofstock .inside-wc-product-image:before {
    content: 'Out of Stock';
    position: absolute;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    z-index: 1;
}

Wow David! Eres un mago jaja

Funcionó perfectamente. Una última cosa, es posible que el texto "Out of stock" no sea un enlace? Que sea un texto normal y no cambie de color.

¡Gracias!

I edited the CSS above to include: color: #000;
Change the #hexcolor to what you want - it will remain that color all the time

Hola David! La actualización corrigió el problema.

¡Muchas gracias!

You're welcome

Hola! Recién me acabo de dar cuenta que esta etiqueta de "Agotado" en los productos aparece por encima del "sticky add to cart".

Así como en la siguiente imagen: https://mega.nz/file/vslzAJgb#fvhMd4tWCFb6BqVnnh_a5tQ8BQNnEDdjO4hyZA_1A38

Además, descubrí que los videos de YouTube también aparecen por encima del "sticky add to cart"

Como en la siguiente imagen: https://mega.nz/file/610xHBIL#EymuUmQN1lVsFZkX9hzV7a8h2TLlLX0tQeaPaWk1PQs

¿Podrían ayudarme a arreglar esto?

Can you guide me to a page where I can see the issue?

Does it only happen on mobile?

Let me know :)

This archived topic is closed to new replies.