Dear All,
I’m experiencing strange issue which occurs after each automatic stock update from my ERP.
Where are two types of products which my stock is “0”
1. ones which are not available from the supplier (Stock status in Product list “Out of stock”, colour red, in product card – back orders? “Do not allow”. Customer does not have possibility to buy/order.
2. ones which i can order from the supplier (Stock status in Product list “On backorder”, colour orange, in product card – back orders? “Allow, but notify customer”. Customer has possibility to buy/order with remark.
After the stock level update, the ones on “On backorder” becomes red. Everything else remains the same, just customer has no possibility to buy/order. If I’m updating each and every item (which is “on backorder” but red) whilst quick update without any changes, those items becomes orange again, and customer has a possibility to buy/order it.
please help me to solve the issue with 0 stock items which can be ordered, as it is frustrating and time consuming.
BR
Laurynas
It would be really great if we could set a default message to show if the product is on backorder to stop us copying and pasting the same message to 100s of products.
To explain the scenario – a lot of suppliers have limited stock and allocate on first come basis as it is made or received from overseas and we need to include a message along the lines of “This is a Direct Supplier Order as such you can expect a delay of 2-3 Weeks on orders of this product.”
For an example of what I am referring to see this site: https://www.okfurniture.co.za/defy-daw387-10kg-grey-steam-f-loader-l.html
]]>Hi, just downloaded the plugin and its just what i’m after, many thanks.
Is it possible to add the custom text to the basket page also and not just the product page. This would give the customer a reminder that they are pre-ordering.
Also is it possible to change the custom backorder text colour and size. The default green colour does not stand out and may be missed by some ordering customers.
Many thanks,
Craig
]]>Is there any way to change the message color to red?
]]>I believe there’s a small bug where In Stock message is not displayed upon activation of this plugin. I traced the issue to a test if (!$product->managing_stock() || !$product->is_on_backorder(1))
, which should be &&
, as per below.
public function change_backorder_message($text, $product)
{
/**
* Edits the backorder message to include a custom message or a default
* @param string $text
* @param WC_Product $product
*/
if (!$product->managing_stock() && !$product->is_on_backorder(1)) {
return;
}
$backorder_message = get_post_meta(
$product->get_id(),
"_backorder_message",
true
);
return !empty($backorder_message)
? $backorder_message
: $text;
}
}
]]>