You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue with the plugin. When saving the label text in WP Admin -> Settings -> Sold Out Badge for WooCommerce -> Label, the text changes in the settings. The problem is, the labels shown on "Out Of Stock" product does NOT change.
I have tried:
incognito mode in browser
disabling/re-enabling the plugin
uninstalling and reinstalling the plugin(the custom label text stayed as I set it)
I found a quick solution, that needed changing /wp-content/plugins/sold-out-badge-for-woocommerce/classes/Badge.php
/** * Get badge text * * @return string */publicstaticfunctionget_text(): string {
// return Settings::get_text( 'wcsob_text' ); //original codereturn'MyCustomLabelText';
}
Since this is a hack and should be used only as a short-term solution, I'm hoping someone has an idea, what is the root of this problem.
Software Versions:
Sold Out Badge for WooCommerce: Version 4.3.5
WP Version: 6.1.1
PHP Version: ea-php80
WooCommerce: Version 7.5.0
Best Regards
The text was updated successfully, but these errors were encountered:
Hello @CharlieEtienne, sorry for the long response. We're not using any cache plugin. Maybe it had something to do after updating the plugins, but I'm not completely sure, since it was some time ago. The text changes immediately after updating php code, as described in my post.
Greetings,
I have encountered an issue with the plugin. When saving the label text in
WP Admin
->Settings
->Sold Out Badge for WooCommerce
->Label
, the text changes in the settings. The problem is, the labels shown on "Out Of Stock" product does NOT change.I have tried:
I found a quick solution, that needed changing /wp-content/plugins/sold-out-badge-for-woocommerce/classes/Badge.php
Since this is a hack and should be used only as a short-term solution, I'm hoping someone has an idea, what is the root of this problem.
Software Versions:
Best Regards
The text was updated successfully, but these errors were encountered: