I want to edit the add to cart section on the product single template of the woocommerce plugin.
I would like to know whether it is a good practice to put the code directly in the file.
If not, what are my alternatives and how do I add the code correctly in order for wordpress to know where I want the code to take effect?