Forum

How to put phone nu...
 
Notifications
Clear all

How to put phone number to " PUBLISH A LISTING " page

7 Posts
3 Users
0 Likes
389 Views
(@monavdyli)
Posts: 6
Active Member
Topic starter
 

Hello everybody

can somebody please tell me how to put the phone number to the ItemPost ( Publish a listing ) page

there is only email at seller information

Iam using Letgo theme

The sigma had it already but i dont really know how to import that code from there, as it seems its different

Thanks in advance <3 

 
Posted : 15/06/2021 7:15 am
(@fre2mansur)
Posts: 47
Member
 

If you want give the flexibility to the user, that they can post different phone number for each post, you can simply create custom fields. Or go to user-profile.php get the phone number field and paste in to the item-post.php. 

 
Posted : 15/06/2021 9:57 am
(@carlhuge)
Posts: 47
Eminent Member
 
Posted by: @monavdyli

Hello everybody

can somebody please tell me how to put the phone number to the ItemPost ( Publish a listing ) page

there is only email at seller information

Iam using Letgo theme

The sigma had it already but i dont really know how to import that code from there, as it seems its different

Thanks in advance <3 

I don't know if I'm allowed to post a link , admin to delete if not.

Look here is something similar but different. 

https://easyosclass.com/demo/justforyou/

Good luck

 

 

 
Posted : 15/06/2021 1:37 pm
(@monavdyli)
Posts: 6
Active Member
Topic starter
 

@administrator

When i try to copy the code from userprofile to itempost i get an php error, with costum fields the phone number shows under the post details not on the sellers info

 

@carlhuge Yes, this seems good, can u give me the code ?

 
Posted : 15/06/2021 2:16 pm
(@monavdyli)
Posts: 6
Active Member
Topic starter
 

@Administrator

the code is 

<?php UserForm::mobile_text(osc_user()); ?>

it shows the field on item post , but not on the listing page

i tried to change userform to ItemForm, and remove the osc_user() 

then i get a error code

Fatal error: Uncaught Error: Call to undefined method ItemForm::contact_mobile_text() in C:\xampp\htdocs\oc-content\themes\letgo\item-post.php:245 Stack trace: #0 C:\xampp\htdocs\oc-includes\osclass\helpers\hDefines.php(288): require() #1 C:\xampp\htdocs\oc-includes\osclass\controller\item.php(798): osc_current_web_theme_path('item-post.php') #2 C:\xampp\htdocs\oc-includes\osclass\controller\item.php(94): CWebItem->doView('item-post.php') #3 C:\xampp\htdocs\index.php(97): CWebItem->doModel() #4 {main} thrown in C:\xampp\htdocs\oc-content\themes\letgo\item-post.php on line 245

i tried even to change the mobile to phone (contact_phone_text)

the field gets working on item post

but not on the listing page

 

 
Posted : 15/06/2021 2:22 pm
(@fre2mansur)
Posts: 47
Member
 

You need to change the osc_user() to osc_logged_user_id().

 

I think there is a plugin for that. 

Try the telephone plugin drom here https://osclasscommunity.com/community/downloads/old-plugins-download/#post-3081

Let me know if its not work.

 
Posted : 16/06/2021 3:27 am
(@carlhuge)
Posts: 47
Eminent Member
 

@monavdyli , I don't have the code or the theme, you have to ask the developer.

I just showed you an alternative, you need to enter a code in the theme in ItemPost, ItemEdit and UserAccount.

Depending on which osclass version and theme you may have a different code is required. 

 
Posted : 16/06/2021 9:54 am
Share: