New Landing How can we help? Atelier Out of stock product customization

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Atelier
  • #265961
    keysilinares
    Member
    Post count: 165

    Hello,

    Is there a way that I can still display my out of stock items but maybe have the product image appear like the image attached? I like how the item displays “out of stock” on the item photo. The “out of stock” sign that comes with the theme seems too small. Or maybe if there was a text above the price that stated it was out of stock. Please advise if possible.

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #265963
    keysilinares
    Member
    Post count: 165

    or is there maybe a way to get a bigger “sold out” badge?

    #266081
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    .woocommerce ul.products li.product.outofstock .img-wrap {
      opacity: 0.6;
    }
    .woocommerce ul.products li.product.outofstock:not(:hover) .img-wrap.second-image {
      display: none;
    }
    

    -Kyle

    #267518
    keysilinares
    Member
    Post count: 165

    But is there a way to have a bigger “sold out” badge?

    #267519
    keysilinares
    Member
    Post count: 165

    What exactly does the second part of that code do?

    #267625
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .woocommerce .out-of-stock-badge {
      font-size: 13px;
    }

    It hides the second image, as adding reducing the opacity of the first image shows the image nehind

    – Kyle

    #269203
    keysilinares
    Member
    Post count: 165

    Thank you!

    Is there a way that I can have the second image display the “out of stock” badge as well? How do I change the size for all badges, for instance, “new”? Thanks!

    #269681
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .woocommerce .products .product figure:hover .badge-wrap > span {
      opacity: 1;
    }

    Use the same css

    .woocommerce .wc-new-badge {
      font-size: 13px;
    }

    – Kyle

    #269903
    keysilinares
    Member
    Post count: 165

    Worked perfectly. Thank you!

    #269915
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem

    – Kyle

    #271973
    keysilinares
    Member
    Post count: 165

    How do I get the badges to be displayed on the mobile site? Is this possible whilst still being responsive?

    #271977
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .woocommerce span.onsale, .woocommerce .wc-new-badge, .woocommerce .out-of-stock-badge {
      display: block!important;
    }

    – Kyle

    #271982
    keysilinares
    Member
    Post count: 165

    Thank you ๐Ÿ˜€

    #271986
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem ๐Ÿ™‚

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register