is_on_backorder instead of is_in_stock
-
I’ve always used this plugin as a way to display a “On Back-Order” badges instead of “Out of Stock” badge. Up until version 3.2.2 I managed to do this by just reviewing the source code and changing all mentions of ! $product->is_in_stock to $product->is_on_backorder (note the removal of !).
This worked great, until the more recent versions. I notice that now when I change the above product tags, the badges no longer showing up.
Am I missing something? I tried looking at the source code but have not been able to find the source of the issue.
Besides trying to find a way to fix my scenario, perhaps a great way of expanding the use case for this plugin, you can consider having a permanent setting flag that allows the same plugin to be used for products that are on back-order?
- The topic ‘is_on_backorder instead of is_in_stock’ is closed to new replies.