This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
How to show region in item-edit.php
« on: December 04, 2022, 04:20:08 PM »
Hi Osclass team

Today i'm struggling to show region in item-edit.php page. In item-post.php "osc_user_region()" works perfectly but the region it's not showing up, when editing item. Do I need to insert some code to item-edit.php file?

Thanks for suggestions :-)

*

MB Themes

Re: How to show region in item-edit.php
« Reply #1 on: December 06, 2022, 03:10:42 PM »
osc_item_region - it's one related to item.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to show region in item-edit.php
« Reply #2 on: December 06, 2022, 08:31:08 PM »
osc_item_region - it's one related to item.

Hi, thanks for suggestion.

I tried "osc_item_region()" but it's not working.

I want to show users region, when user is editing ad.

When user is posting ad, his region is shown up with this code "<?php echo osc_user_region(); ?>", but the user region is not showing up, when the edit button is used.


Marked as best answer by Aleš Tomažič on December 07, 2022, 07:53:49 PM
*

MB Themes

Re: How to show region in item-edit.php
« Reply #3 on: December 07, 2022, 11:43:24 AM »
Maybe it is not filled?
You can try:
Code: [Select]
$user = User::newInstance()->findByPrimaryKey(osc_logged_user_id());
echo @$user['s_region'];
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to show region in item-edit.php
« Reply #4 on: December 07, 2022, 07:55:28 PM »
Maybe it is not filled?
You can try:
Code: [Select]
$user = User::newInstance()->findByPrimaryKey(osc_logged_user_id());
echo @$user['s_region'];

Hi, it's working  :P :P :P

Thank you again, much appreciated.