Hello @babiskalogirou,
Thank you for your feedback.
This behavior is in WooCommerce, and we use WooCommere defaults on OceanWP theme.
Regarding the issue, technically, the “out-of-stock products” cannot be “on-sale”: https://postimg.cc/Lh83ZfvZ. So this behavior is correct.
If you want to show that badge, in this case, you need to customize the theme. If you’re interested in customizing the theme, it’s essential to have technical knowledge of php. Let me know if you’d like me to explain the general process. Alternatively, you could consider hiring an expert to assist you.
Update: However, you can change it on the theme with CSS.
Please put the CSS below in Customizing > Custom CSS/JS > CSS Code:
.woocommerce ul.products li.product.outofstock .outofstock-badge {
font-size: 0;
background-color: rgba(63,195,135,.8);
color: #fff;
top: 1.25rem;
left: 1.25rem;
}
.woocommerce ul.products li.product.outofstock .outofstock-badge:before {
content:'Sale !';
font-size: 12px;
line-height: 1;
font-weight: 600;
letter-spacing: .4px;
z-index: 9;
}
Result: https://postimg.cc/G8mT9WGT.
Please read this link for more information about the CSS/JS code on the customizer: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website.
Otherwise, need PHP customization.
Note: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).
I hope that helps.
Best Regards
-
This reply was modified 1 year, 6 months ago by Shahin.