Disabling the free shipping method when the cart has product/s which assigned a certain shipping class

Can you please tell me how can I adapt this snippet (it disables the free shipping method for a certain product) to make it possible to disable the free shipping method when the cart has product/s which assigned a certain shipping class? (WooCommerce 4.2+) Any help appreciated. Thanks. function my_free_shipping( $is_available ) { global $woocommerce; … Read more

Link product attribute value to a URL – woocommerce

I would like to add a local product attribute value that will have a link which points to a particular ‘href’ value. I followed this blog and tried to add via the markup option mentioned at the end of the blog, the value turns into an anchor tag link but the href value is not taken properly.
https://nicolamustone.blog/2016/03/11/make-product-attributes-linkable/

WooCommerce: Force coupon for existing/registered customers

I have some specific regular customers for which I have particular coupons, like 10%, 15% etc. I want the coupon codes to be fixed in their useraccounts so that they do NOT need to enter it during ordering-process. Is it possible? Thanks! Answers: Thank you for visiting the Q&A section on Magenaut. Please note that … Read more