tatar59 Posted November 18, 2020 Share Posted November 18, 2020 I want to show a special message on the order history page based on the order status. But I couldn't find their shortcode. For example, if the order placed is "preparing", I want to show the message that your order is being prepared on the order history page. I want it not to write anything if it is on the way or is delivered or canceled. How can I get the order status in tpl file? I try {if $orders.detail.shipped} <p>your order preparing click here to view live cam</p> {/if} but this code not working. I want order status short code. Link to comment Share on other sites More sharing options...
musicmaster Posted November 19, 2020 Share Posted November 19, 2020 I don't know the solution, but you can see the composition of a variable with print_r. For example {$orders|print_r} or {$orders.detail|print_r} in the tpl file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now