TExt test
test marko test agaain marko third editContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
test marko test agaain marko third editContinue reading
/** * WWOF v3: Force “View Cart” link in the success side-popup to open in the same tab. */ add_action( ‘wp_footer’, ‘wwof_v3_view_cart_same_tab_script’, 999 ); function wwof_v3_view_cart_same_tab_script() { ?>Continue reading
/** * WWOF v3 (Ant Design Vue): Force default qty to 0 and auto-tick the Add to Cart checkbox * (Supports both manual typing and up/down arrow clicks) */ add_action( ‘wp_footer’, ‘wwof_v3_antdesign_qty_checkbox_script_final’, 999 ); function wwof_v3_antdesign_qty_checkbox_script_final() { ?>Continue reading
test asdasdasdasd updatedContinue reading
/** * Exclude specific products from appearing in their parent category. */ add_action(‘woocommerce_product_query’, ‘exclude_specific_products_from_parent_category’); function exclude_specific_products_from_parent_category($q) { // Only apply this on the parent category archive page if (!is_product_category(‘telt-og-pavilloner’)) { // Replace with your parent category slug return; } //…Continue reading
function rd_get_valid_received_order() { static $order = null; static $checked = false; if ( $checked ) { return $order; } $checked = true; if ( ! function_exists( ‘wc_get_order’ ) ) { return null; } global $wp; if ( empty( $wp )…Continue reading
(function () { function rdToggleAdditionalOrderInfoColumn() { var container = document.getElementById(‘rd-additional-order-info’); if (!container) { return; } if (!container.querySelector(‘.awb-woo-order-additional-info’)) { container.style.display = ‘none’; } } if (document.readyState === ‘loading’) { document.addEventListener(‘DOMContentLoaded’, rdToggleAdditionalOrderInfoColumn); } else { rdToggleAdditionalOrderInfoColumn(); } })();Continue reading