check inventory levels before showing bumps and upsells
1
if ( ! $product->managing_stock() && ! $product->is_in_stock() )
don’t show bump or upsells.
if ( ! $product->managing_stock() && ! $product->is_in_stock() )
don’t show bump or upsells.
You must be logged in to post a comment.
That seems like something that may be possible… but I think you mean on the condition to be ($product=>managing_stock()) … IOW… the bump or upsell component will NOT show IF one is managinge stock AND the product is OUT of stock.
I get a sense of what you’re suggesting, and it’s an interesting idea 😉
Completed in 4.3.4