Variable Stock Status Issues
-
Hello,
I am using this plugin to display custom values for backordered products (i.e. No longer available, Usually Ships in 1-2 weeks, Usually ships in 3-4 weeks, etc).
Some of my products are variable. For these products, I have the stock management turned off at the parent, and turned on for each of the variants. To keep this simple, let’s say I have two variants for one product, standard and blemished.
The standard variant is not in stock, but I can always source it for shipping within 1-2 weeks. As such, I have the Allow backorders? field set to “Allow, but notify customer”, and set the Custom Stock Status field Available on backorder set to “Ships in about 1-2 weeks”.
The blemished variant is used only when products are in some way of lesser quality then standard, and sold for a lesser price. I only want to and only can sell this variant if I have such a product on hand, and as such the Allow backorders? field is set to “Do not allow” and the Custom Stock Status field Available on backorder is set to “No longer available”.
My issue arises when viewing the product archive page. Instead of pulling in the custom backorder stock status on the available variant (Ships in about 1-2 weeks), the archive page will actually pull from the Woocommerce default stock status (Available on backorder). You can also test this by changing the Default Stock Status wording in the plugin settings, and the archive page will now show this replacement.
The desired behavior is that the archive page would show the custom backorder stock status by pulling in the custom status with preference to the Allow backorders? value. So in the above example, the status would not pull from the parent (since the stock management is disabled), and check to see if a variant allows backorders. Since the standard variant does, the product should display the Custom Stock Status message for that variant instead of the Woo Default Stock Status message. This implementation would better match the existing logic for simple products too.
Please let me know if I am missing some vital information, or if you have questions.
- You must be logged in to reply to this topic.