Create a shortcode for Woocommerce view-order.php template
-
Hello, I want to create a shortcode for
view-order.phptemplate, which is located in my child them path:child-theme/Woocommerce/myaccount/view-order.php. I’ve added the following shortcode but it’s not working.<?php echo do_shortcode('[su_template name="woocommerce/myaccount/view-order.php"]');?>I have tried putting
view-order.phpin my child theme:child-theme/view-order.phpbut it’s not working as well.<?php echo do_shortcode('[su_template name="view-order.php"]');?>
The topic ‘Create a shortcode for Woocommerce view-order.php template’ is closed to new replies.