check inventory levels before showing bumps and upsells

1
6 months agocompleted2

if ( ! $product->managing_stock() && ! $product->is_in_stock() )
don’t show bump or upsells.

2 Comments

  1. 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 😉

Leave a Reply