I have a lot of products in my Woocommerce shop. But only one of them is free. This product has a separate category and different SKU type. I need to add PHP code before and after the "Add to Cart" button on its product page.

How can I do this? Please, help.

closed as off-topic by Tom J Nowell Sep 9 at 15:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • You'll need to contact SocialLocker plugin support, 3rd party plugin support is offtopic here – Tom J Nowell Sep 9 at 15:44
  • Thanks, but the question is not about the plugin. I just want to find a way to add a code to Add to cart button for a special woocommerce product. – Anna Sep 9 at 15:47
  • Knowledge of WooCommerce and SocialLocker is fundamental to answering this question, it's not possible to answer the question without knowing about the internals of those plugins. Modifying WooCommerce templates is a WooCommerce question, and using SocialLocker is a SocialLocker question – Tom J Nowell Sep 9 at 15:56