WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Sold Out Products
[resolved] Sold Badge not showing on site (5 posts)

  1. nothingless
    Member
    Posted 11 months ago #

    Hi! I just activated and installed this plugin because I want to show the Sold Out badge for products that aren't in stock. However, no badges are showing on any products, I've double checked in the Admin Panel that they are indeed set to Out of Stock.

    I realize this is probably my theme's fault, but any ideas on how I might fix this? Is there a particular tag or bit of coding I can add? It's not just a CSS issue, the badges aren't there in the source code either, they only show on the individual product page, not on the category pages.

    Link: http://www.refoundonline.com/new2013/product-category/tables/ The first 2 on this page are supposed to be sold out.

    Thanks in advance for any pointers!

    http://wordpress.org/plugins/woocommerce-sold-out-products/

  2. Gerhard
    Member
    Plugin Author

    Posted 11 months ago #

    Hi

    Your theme seems to be overriding the shop loop template, I suggest contacting your theme developers and have them look to ensure there is a woocommerce_before_shop_loop_item_title action in there as this is used to display the sold out badge on a product.

  3. bladerzzz
    Member
    Posted 10 months ago #

    nothingless, i figured this one out. just make sure the code mentioned by Gerhard above is found in your content-product.php template:

    woocommerce_before_shop_loop_item_title

    thnx gerard for the great plugin!

  4. Gerhard
    Member
    Plugin Author

    Posted 9 months ago #

    No problem, glad you could get it sorted!

  5. mvaneijgen
    Member
    Posted 7 months ago #

    Hey im using the same theme and got it working but i need to hide the product image because it loads twice. where in the code do i need to edit

    <?php do_action( 'woocommerce_before_shop_loop_item_title' ); ?>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.