I’m struggling to show the different shipping classes on the product page in Woocommerce. I have found several codes that show the shipping class of simple products. But not codes that show the classes of the different variations on a variable product.
The code should get the shipping class of simple products to show (cause I gave several simple products). But when the product is a variable product it needs to show the shipping classes of the variations instead of the parent shipping class.
I am not capable of coding this, hoping there is someone who is skilled enough and willing to help.
It would be nice if the front end looks like this:
Front end shipping class