REMOVE PRODUCT LINKS FROM YOUR SHOPPING CART
add_filter( ‘woocommerce_cart_item_permalink’, ‘custom_remove_cart_product_link’, 10 ); function custom_remove_cart_product_link() { return __return_null(); }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘woocommerce_cart_item_permalink’, ‘custom_remove_cart_product_link’, 10 ); function custom_remove_cart_product_link() { return __return_null(); }Continue reading
/** * Snippet Name: Remove the Order Notes field section from the WooCommerce checkout. * Snippet Author: ecommercehints.com */ add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’, 9999 ); add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ ); function remove_order_notes( $fields ) { unset($fields[‘order’][‘order_comments’]); return $fields; }Continue reading
add_action( ‘woocommerce_check_cart_items’, ‘required_min_cart_subtotal_amount’ ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount = 200; // Total (before taxes and shipping charges) $cart_subtotal = WC()->cart->subtotal; // Add an error notice is cart total is less than the minimum…Continue reading
.theChampLogin.theChampGoogleBackground.theChampGoogleLogin{ height: 44px; background-color: #4285F4; border-radius: 2px; box-shadow: 0 5px 10px 0 rgba(0,0,0,.5); width: 184px; } .theChampLogin.theChampGoogleBackground.theChampGoogleLogin:hover{ box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25); } .theChampLogin.theChampGoogleBackground.theChampGoogleLogin::after{ margin-top: 1px; margin-left: 1px; margin-bottom: 1px; content: “Sign in With Google”; float:…Continue reading
/** * Update Cart Automatically on Quantity Change * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/remove-update-cart-button.html */ add_action( ‘wp_head’, function() { ?>Continue reading
function my_wp_nav_menu_args( $args = ” ) { if( is_user_logged_in() ) { $args[‘menu’] = ‘logged-in’; } else { $args[‘menu’] = ‘logged-out’; } return $args; } add_filter( ‘wp_nav_menu_args’, ‘my_wp_nav_menu_args’ );Continue reading
add_action( ‘manage_shop_order_posts_custom_column’ , ‘custom_orders_list_column_content’, 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post; if ( $column == ‘shipping_address’ ) { if( $phone = $the_order->get_billing_phone() ){ $phone_wp_dashicon = ‘ ‘; echo ‘‘. $phone.’‘; } } if ( ‘order_status’…Continue reading
add_filter( ‘bulk_actions-edit-shop_order’, ‘misha_register_bulk_action’ ); // edit-shop_order is the screen ID of the orders page function misha_register_bulk_action( $bulk_actions ) { $bulk_actions[ ‘mark_packed’ ] = ‘Change status to packed’; //Change status to packed$bulk_actions[ ‘mark_shipping’ ] = ‘Change status to shipping’; //Change status…Continue reading
/* * Register a custom order status * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/order-statuses.html */ add_action( ‘init’, ‘custom_order_status’ ); function custom_order_status() { register_post_status( ‘wc-custom-packed’, array( ‘label’ => ‘Packed’, ‘public’ => true, ‘show_in_admin_status_list’ => true, ‘label_count’ => _n_noop( ‘Packed (%s)’,…Continue reading
@media only screen and (max-width: 567px) { .joinchat{ position: absolute; bottom:70px; –s: 36px; margin-right:px; display:none } .footer-width-fixer{ display:none; } }Continue reading