Can’t make it work: Add_action: woocommerce_after_single_product_summary
-
I am trying to execute the following code on every single product long description. I want to make this appear on the bottom of the long description. I get the text to echo, but inside $title of the product does not appear. It appears bellow. Has anyone any solution for this problem?
add_action( ‘woocommerce_after_single_product_summary’, ‘sosink_show_text’, 20 );
function sosink_show_text() {
echo “Buy this from our store. This is the best (echo $title) in the industry. By using this (echo $title) you save more.”;$tittle = woocommerce_template_single_title();
echo $tittle;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can’t make it work: Add_action: woocommerce_after_single_product_summary’ is closed to new replies.