Woo Related Products How to override the plugin script?

Copy js file to: wp-content/themes/child-storefront-theme/assets/js/woo-related-products-refresh-on-reload/woo-related-products-public.js function custom_woo_related_products() { wp_dequeue_script(‘woo-related-products’); wp_enqueue_script(‘custom-woo-related-products’, get_stylesheet_directory_uri().’/assets/js/woo-related-products-refresh-on-reload/woo-related-products-public.js’, array(‘jquery’)); } add_action(‘wp_enqueue_scripts’, ‘custom_woo_related_products’, 100); Why 100? To be dequeued, the script must have been enqueued. Attempting to dequeue a script before the script is enqueued will have no effect.

WooCommerce – Exclude category from snippet

Since product category is a taxonomy, you could try the is_tax() function. Check for the current category and then manipulate the data: add_filter( ‘woocommerce_get_price_html’, ‘custom_price_message’ ); function custom_price_message( $price ) { // Check the current category if ( ! is_tax ( ‘product_cat’, ‘category name or id here’ ) { $price .= ‘ <span class=”price-text”>’ . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)