Πως να προσθέσεις σταθερό τέλος (fixed fee) στην αντικαταβολή σε ένα WooCommerce e-shop χωρίς plugin

Αν δεν θέλεις να χρησιμοποιήσεις plugin, μπορείς να προσθέσεις ένα σταθερό τέλος για την αντικαταβολή με κώδικα στο αρχείο functions.php του child theme σου ή μέσω ενός plugin όπως το Code Snippets. Χρησιμοποίησε τον παρακάτω κώδικα: add_action(‘woocommerce_cart_calculate_fees’, ‘add_cod_fee’); function add_cod_fee($cart) { if (is_admin() && !defined(‘DOING_AJAX’)) return; $chosen_payment_method = WC()->session->get(‘chosen_payment_method’); if ($chosen_payment_method == ‘cod’) { $fee…

LiteSpeed Catch wordpress plugin & Slider Revolution conflict solved

The issue where the Slider Revolution plugin doesn’t work properly when the LiteSpeed Cache plugin is enabled in WordPress often stems from conflicts caused by LiteSpeed Cache’s optimization features, such as CSS/JS minification, combination, or deferred loading. These optimizations can interfere with Slider Revolution’s scripts or styles, leading to sliders not appearing or displaying incorrectly…