Hi Natasa,
Thank you for your patience! I have released an update (v.1.2.7) to the plugin that allows the removal of the single product terms action.
After updating you will be able to use a code snippet to unhook the single product terms function from the “woocommerce_after_add_to_cart_form” hook and add it again, either with lower priority (#1) or to the product meta section (#2).
The PHP snippet that does that is:
add_action('init', 'change_single_product_terms_place');
function change_single_product_terms_place(){
// Remove the hook that displays the single product terms
remove_action( 'woocommerce_after_add_to_cart_form',
array( 'TACPP4_Terms_Conditions_Per_Product', 'show_terms_on_product_page' ), 20 );
// #1. Show the terms with a lower priority "999" (show last)
add_action( 'woocommerce_after_add_to_cart_form',
array( 'TACPP4_Terms_Conditions_Per_Product', 'show_terms_on_product_page' ), 999 );
// #2. Show the terms on the product meta section
add_action( 'woocommerce_product_meta_start',
array( 'TACPP4_Terms_Conditions_Per_Product', 'show_terms_on_product_page' ), 10 );
}
Please place the above code in your child theme’s functions.php file and only keep one of the two options (#1, #2) so the terms are not displayed twice.
You can find all available hooks for the single product page here.
Please let me know if that works for you or if you have any questions.
Best regards,
Giannis
-
This reply was modified 1 year ago by giannis4. Reason: Add hook list