To add content under the “Add to cart” button on the product page in the categories indicated, add the following code to the file
functions.php in the theme directory. You shold modify this code to set desired categories –
$my_categories variable, line 3. And the content to be displayed – line 14.
If you do not use the child theme, remember that changes made to the
functions.php file will be overwritten when the theme is updated.
While copying code to
functions.php file it is not nessesary to copy
<?php opening tag.