WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Sold Out Products
[resolved] Can I disable click-through on sold-out products (2 posts)

  1. brendapharm
    Member
    Posted 9 months ago #

    Hi,
    The store I built this site for sells vintage clothing, so every item is one of a kind. I've installed this plug-in and created a page on the site where I placed the shortcode (the password to enter the site is "designer").

    It works nicely, but I'd prefer if the user can't click on that item to go to the product page since the item will never be restocked. Ideally, I'd also like the "i" on hover to not appear.

    Is there a way to have the Recently Sold products appear as static images? I've already checked "Hide out of stock items from the catalog" in the WooCommerce inventory settings.

    Thanks so much

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

  2. Gerhard
    Member
    Plugin Author

    Posted 8 months ago #

    Hi, the extension uses the default content-product.php WooCommerce template, you can override that and add a check in to see if the product is sold out and then not output the <a href="<?php the_permalink(); ?>"> and closing </a> tags

Reply

You must log in to post.

About this Plugin

About this Topic