/* 1) Smartbill plugin: multiple changes in at least includes/class-smartbillutils.php 2) woocommerce-side-cart-premium plugin cand Flyingpress serveste cache …cartul se va actualiza later ptr ca delayed JS/CSS deci nu trebuie sa afisez cart count daca = 0 nu vreau sa afisez…Continue reading
add_filter( ‘woocommerce_checkout_fields’, ‘rd_email_first_for_checkout’ ); function rd_email_first_for_checkout( $checkout_fields ) { $checkout_fields[‘billing’][‘billing_email’][‘priority’] = 25; return $checkout_fields; }Continue reading
// Add custom styles if ( ! function_exists( ‘add_custom_style_normalize’ ) ) { function add_custom_style_normalize() { // The New Normal CSS wp_register_style( ‘the-new-normal-css’, ‘https://cdn.jsdelivr.net/gh/sarahschopick/the-new-normal.css@main/the-new-normal.min.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘the-new-normal-css’ ); // Alternative normalization stylesheets (only use one) // Normalize: https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css //…Continue reading
/** * Class that handles wholesale price HTML generation and display. * * @since 1.0.0 */ class WWP_Wholesale_Price_HTML_Handler { /** * Model that houses the logic of retrieving information relating to wholesale role/s of a user. * * @since 1.5.0…Continue reading
/** * First Remove The Existing Pricing Filter So That It Will Be Available To All Users */ add_action(‘init’, ‘remove_existing_pricing_html’, 10); function remove_existing_pricing_html() { global $wc_wholesale_prices; remove_filter(‘woocommerce_get_price_html’, [$wc_wholesale_prices->wwp_for_non_wholesale_customer,’add_click_wholesale_price_for_non_wholesale_customers’], 10 ); } /** * Include Pricing HTML for all users */…Continue reading