This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __construct() { | |
add_action( 'woocommerce_single_product_summary', array( &$this, 'add_custom_html' ), 15 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function add_custom_html() { | |
$content = " | |
<table> | |
<tr> | |
<th></th> | |
<th>Small</th> | |
<th>Medium</th> | |
<th>Large</th> | |
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$categories = get_the_terms( $product_id, 'product_cat' ); | |
if( empty ( $categories ) ){ | |
return; | |
} | |
$content = " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function include_files() { | |
include_once('custom.html'); //path to your html file | |
} | |
public function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$categories = get_the_terms( $product_id, 'product_cat' ); | |
if( empty ($categories)){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$categories = get_the_terms( $product_id, 'product_cat' ); | |
if( empty ($categories)){ | |
return; | |
} | |
//add image url in the src attribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<th></th> | |
<th>Small</th> | |
<th>Medium</th> | |
<th>Large</th> | |
</tr> | |
<tr> | |
<td>USA</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$categories = get_the_terms( $product_id, 'product_cat' ); | |
if( empty ($categories)){ | |
return; | |
} | |
$content = " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ppublic function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$ids = array( 780, 767, 643); | |
$content = " | |
<table> | |
<tr> | |
<th></th> | |
<th>Small</th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function add_custom_html() { | |
global $post; | |
$product_id = $post->ID; | |
$ids = array( 780, 767, 643); | |
$tags = get_the_terms( $product_id, 'product_tag' ); | |
if( empty( $tags ) ){ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_after_add_to_cart_button', 'show_content_after_add_to_cart' ); |
OlderNewer