In woocommerce cart item we can add custom text but how can i add custom link? [closed]

You can use below code for your requirement. it will add website/file url to cart page, checkout page and order summary in back-end. You need to create one custom field for website/file url in product page. https://prnt.sc/pa7fyg that url/link will be display at: in product detail page above add to cart button. https://prnt.sc/pa7h9s Cart page … Read more

When Free shipping is available hide other shipping methods except Local pickup in WooCommerce [closed]

The following code will disable other shipping methods excluding “Local Pickup” when “Free shipping” shipping method is available. Required: Free shipping method need to be set with a minimal order amount. add_filter( ‘woocommerce_package_rates’, ‘show_hide_shipping_methods’, 100 ); function show_hide_shipping_methods( $rates ) { $free_rate_id = ”; $other_rates_ids = []; // Loop through available shipping rates foreach ( … Read more

Hide product categories and taxonomy terms in menu if empty

Not sure about the custom taxonomy, however I have used this code before to remove empty categories. You can add it to functions.php. add_filter( ‘wp_get_nav_menu_items’, ‘nav_remove_empty_category_menu_item’, 10, 3 ); function nav_remove_empty_category_menu_item ( $items, $menu, $args ) { global $wpdb; $nopost = $wpdb->get_col( “SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE count = 0” ); foreach ( $items as … Read more