*

pitbull

  • ***
  • 98 posts
Hi i m using Veronika theme and i would like to display the transaction status (Buy, Sell, Rent ...etc) in every item at the home page (Latest Listings) and also at the search result page.
I tried to add that code:

Code: [Select]
<?php echo $transaction?>
but didnt work !

What is the right code??

Thanks in advance.

Marked as best answer by pitbull on January 21, 2018, 07:42:10 PM
*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #1 on: January 20, 2018, 08:50:10 PM »
You can find correct code on header.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #2 on: January 20, 2018, 08:56:20 PM »
You can find correct code on header.php

i already tried that but this isnt work too

 
Code: [Select]
<?php if($item_extra['i_transaction'] <> '') { ?>
            <?php
              $id 
$item_extra['i_transaction'];

              if (
$id == 1) {
                
$transaction __('Sell''veronika');
              } else if (
$id == 2) {
                
$transaction __('Buy''veronika');
              } else if (
$id == 3) {
                
$transaction __('Rent''veronika');
              } else if (
$id == 4) {
                
$transaction __('Exchange''veronika');
              }
            
?>

            <span><?php echo $transaction?></span>
          <?php ?>


could you please help me a little bit ? Thanks

*

pitbull

  • ***
  • 98 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #3 on: January 20, 2018, 09:08:32 PM »
@frosticek

*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #4 on: January 20, 2018, 09:39:49 PM »
@pitbull
Have you copied also variable item_extra?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #5 on: January 20, 2018, 09:56:44 PM »
ok it worked. Thank u @frosticek. Could you mark this as solved ?

*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #6 on: January 20, 2018, 11:52:47 PM »
Welcome
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

abhkhan

  • ***
  • 60 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #7 on: February 23, 2018, 02:17:11 PM »
Can you please explain it what is the complete code to show these statuses on each item?


*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #8 on: February 23, 2018, 10:54:16 PM »
Code above plus line from item.php that assign value to item_extra
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

abhkhan

  • ***
  • 60 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #9 on: February 24, 2018, 05:50:09 AM »
Whic code is needed to copy from item.php and where to add?


*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #10 on: February 24, 2018, 09:47:18 AM »
@abhkhan
open item.php and find first occurence of $item_extra =
that is the line.
you add it as first line in above code.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

abhkhan

  • ***
  • 60 posts
Re: How can i display transaction status in latest items (home page) ?
« Reply #11 on: March 02, 2018, 08:13:27 AM »
thanks for info sir,

 in which file we need to put this code to show these statuses on items in home page and categories?

*

MB Themes

Re: How can i display transaction status in latest items (home page) ?
« Reply #12 on: March 02, 2018, 08:34:01 AM »
@abhkhan
loop-single.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots