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

  1. brendapharm
    Posted 2 years ago #

    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


  2. Gerhard Potgieter
    Plugin Author

    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Sold Out Products
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic