If Status id
« on: March 09, 2016, 12:31:26 AM »
Hello, i have a Question:
I would like to make some changes in the template, but I dont know helper for "status id".

Can you help me, I want to do something like this script:

<?php if( status_id () ==1 ) { ?>
------ script-----------
<?php } ?>

Thank you!

Marked as best answer by sergej.zaharenko on March 09, 2016, 11:43:32 PM
*

MB Themes

Re: If Status id
« Reply #1 on: March 09, 2016, 06:39:13 AM »
@Sergej Zaharenko
You can get all status information with following code:
Code: [Select]
$status = ModelLS::newInstance()->getStatusByItemId($item_id);
Then you can show name i.e.:
Code: [Select]
echo $status['status_name'];
Do not forget to define $item_id
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: If Status id
« Reply #2 on: March 09, 2016, 11:42:53 PM »
Super, thank you, i have it!=)

*

MB Themes

Re: If Status id
« Reply #3 on: March 10, 2016, 07:57:47 AM »
@Sergej Zaharenko
Welcome ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots