• Resolved Anonymous User 15521305

    (@anonymized-15521305)


    Hello, I want to create a shortcode for view-order.php template, 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.php in my child theme: child-theme/view-order.php but 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.