shortcode, php
-
Thank you very much for useful plugin. I used it at a separate page, but now I would like to insert it on the product page.
I found file, to where I should put the code in – short-description.php.
But shortcode [front-end-pm] doesn’t work!
<?php echo do_shortcode(‘[front-end-pm]’); ?>
PLEASE, check the code below.<?php /* @version 4.0.0 */ if(!defined('ABSPATH')) { exit; } global $product; global $post; ?> <span class="itnz"><?php if ( $product->backorders_allowed() == '1' and $product->get_stock_quantity() == '0' ) { echo 'ИЗГОТОВЛЕНИЕ ТОЛЬКО НА ЗАКАЗ!'; }//Проверяю доступность заказа и оставшееся кол-во - 02.05.2018 ?></span> <div class="item-details"> <?php the_content(); ?> </div> <?php echo do_shortcode('[front-end-pm]'); ?>The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘shortcode, php’ is closed to new replies.