Jump to content

Current order status and carrier name - variables [PS 1.7]


Andrejkov

Recommended Posts

Hello,

I need to make some changes in order-detail.tpl file. To do this i need to use {IF} {ELSE} condition.

I Want to do something like this:

1. 

{if {$order.carrier.ID} == 1}

AAAAA

{else}

BBBBB

{/if}

2. 

	{if {$order.history.current.ostate.id} == 1}

	AAAAA

	{else}

	BBBBB

	{/if}

What variable i should use in {if} condition to get:

1.  Order carrier ID

2. Order current status ID

Regards

 

 

Edited by Andrejkov (see edit history)
Link to comment
Share on other sites

2 hours ago, AddWeb Solution said:

Hi,
Use something like

{if $order.carrier.id == 1}
    ABC
{else}
    BBBBB
{/if}

 

For this, use something like below

{if $order.current_state == 1}
    ABC
{else}
    BBBBB
{/if}

 

Thanks! and let me know If it works!

Hi,

{if $order.carrier.id == 1} -> Works fine.

{if $order.current_state == 1} -> doesnt work :(

When i use: {$order|dump} i have(attachment)

state.thumb.png.50a61889125687662cddecfd882462e2.png

So $order.current_state == 6 should work but it doesn't :(

Regards

 

Edited by Andrejkov
add image (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...