Copy this code and paste it any where in your file.
Make sure jQuery included in your page.
Make sure jQuery included in your page.
<?php remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 ); do_action( 'woocommerce_single_product_summary' ); ?>
<?php function fantastic3($n) { $series = array(0,1,1,1); for($i=3 ; $i<=$n ; $i++){ $a = (isset($series[ (int)$i-3 ]))?$series[ (int)$i-3 ]:0; $b = (isset($series[ (int)$i-2 ]))?$series[ (int)$i-2 ]:0; $c = (isset($series[ (int)$i-1 ]))?$series[ (int)$i-1 ]:0; $d = ($a+$b+$c)-1; if($d<0){ $d = 0; } $series[$i] = $d; } echo $series[ (int)$n-1 ]; } // Do NOT call the fantastic3 function in the code // you write. The system will call it automatically. ?>