Can you please share the product page link to check the issue ?
thanks
I can give you an example. Because it would occur to every productpage where we add a text field in the field ‘Can be backordered’ under a variation.
https://byjensen.nl/product/ferm-living-plant-box/?attribute_pa_kleur=olijfgroen
As per this screenshot https://prnt.sc/uprp7v, you have set same color for both “%s in stock” and “Can be backorderd”, Can you set different color for “Can be backorderd”, and clear server the cache(if you have installed any cache plugin)
Yeah i changed that because the plugin seems to override the color that is being used. You can check the url again. Now it takes over the purple colorcode..
So it seems the plugin does not see these fields as seperate..
Do i need to update something or whatsoever?
We don’t have a caching plugin active.
Clearing my own cache did not change anything atm.
Please check if the plugin is compatible with variations? Does that maybe cause the issue?
Just now the product i used as example is out of stock so; https://byjensen.nl/product/kristina-dam-architecture-kussen-off-white-zwartgrijs/?attribute_pa_maat=60×40-cm
Maybe the fields are not separate in de plugin. Thats why 1 color overrides the other?
Can you please replicate the issue in our demo server
https://demo.softound.com/woo-custom-stock-status/wp-admin
Username: demo
password: demo
Yeah sure:
Product: http://demo.softound.com/woo-custom-stock-status/product/woo-single-2/
Variation: Black
As you can see the bordeaux color overrules the other and makes the whole line 1 color instead of the 2 set as.
Are you looking for something like this https://prnt.sc/ure6dj ?
Yes! That should be the output when i choose the 2 different colors.
Can you please advise what we can do about that?
I have an inhouse developer but an update on de plugin would work just fine.
Thanks in advance!
The following code could solve the issue
if ( $this_obj->backorders_allowed() && $this_obj->backorders_require_notification() ) {
$availability .= ' ' . __( $can_be_backordered, 'woocommerce' );
$extra_class .= ' can_be_backordered_color';
}
TO
if ( $this_obj->backorders_allowed() && $this_obj->backorders_require_notification() ) {
$availability .= ' <span class="can_be_backordered_color">' . __( $can_be_backordered, 'woocommerce' ).'</span>';
//$extra_class .= ' can_be_backordered_color';
}