I need to show a product as sold on the product archive page and remove the add to cart button
Is there any documentation that you are following? No
Is there a similar example that we can see? Not that I am aware
What is the link to your site? On this page hidden link the item "Worthing Town and People" has been sold and the stock quantity is showings as out of stock. Clicking on the "Buy Now" button confirms this. I need to be able show the item as sold and remove the buy now button.
I can see that conditional block would allow me to add a sold badge but that would entail logging in and maually activating the field when an item is sold which is not really practical. It also doesnt solve the issue of the add to cart button. If I dont use Toolset and use the conventional woocommerce archive then the add to cart button is hidden when the stock is zero and adding a sold badge is easily done in functions.php. It does not seem logical that the Toolset add to cart button is displayed when the stock level is zero so is ther something that I am overlooking?
I can see that conditional block would allow me to add a sold badge but that would entail logging in and maually activating the field when an item is sold which is not really practical. It also doesnt solve the issue of the add to cart button. If I dont use Toolset and use the conventional woocommerce archive then the add to cart button is hidden when the stock is zero and adding a sold badge is easily done in functions.php. It does not seem logical that the Toolset add to cart button is displayed when the stock level is zero so is ther something that I am overlooking?