Show hidden products on checkout with One Page Checkout
Hidden products will not show on the checkout page with One Page Checkout. Learn how to change that by using a filter in your store.
Did you think that it was going to work eh?
If you think about it, it makes sense that it does not show now. It’s hidden, why should it show on the One Page Checkout page if it is not supposed to show on the catalog? The product is not purchasable, there must be a reason if it’s hidden.
But there’s a filter in One Page Checkout that allows you to change the visibility settings allowed, so you can show hidden products on the One Page Checkout page but not on the catalog.
Open the file functions.php located in wp-content/themes/your-theme-name/ and add this code at the end of the file:
After doing so, the product will show only on the One Page Checkout page, but not in the catalog.
Pubblicato il: 12 May 2023Articoli