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
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.
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
@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 ?
@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
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.
@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.