tagnavi
Forum Replies Created
-
Custom fields extension is a paid addon, isnt there a way to create a new form scheme for free(through php code)?
- This reply was modified 2 years, 10 months ago by tagnavi.
thanks @gwin
can i add a search form for custom fields without using the Custom fields extension.
- This reply was modified 2 years, 10 months ago by tagnavi.
thanks @gwin
thanks @gwin
that worked and satisfied the requirement,
Can i get a reference to the doc, where i can understand about the code(above) and the parameters that are used in that, so that it helps me in future while making changes in icons or adding any other contact options .
and also, i used Like-Dislike plugin to add the like option to the ads, but even after enabling the like option for classified post type, no changes is displayed in the frontend, do i need to make any other changes??
- This reply was modified 2 years, 11 months ago by tagnavi.
Can u please specify where the above code should be placed?
add_filter( "wpadverts/block/details/contact-options", function( $options ) { $options["msteam"] = array( "text" => "MsTeam", "icon" => "fas fa-phone-alt", "class" => "my", "type" => "secondary", "order" => 1, "options" => array( "mobile" => "text-and-icon", "desktop" => "text-and-icon" ), "attr" => [ "onclick" => "window.location.href='https://teams.microsoft.com/l/chat/0/[email protected]'" ] ); return $options; },100000); add_filter( "wpadverts/block/details/atts", function( $atts ) { $atts["contact"] = $atts["contact"] ?? array(); $atts["contact"][] = array( "name" => "msteam" ); return $atts; });in the above code, i am able to redirect to the chat in teams, but what should be replaced with ‘[email protected]’ to get that particular ad post’s seller email id?
thanks @gwin ,
That helped me in adding a custom field in the classified.
i have a requirement like , in the contact button(the code u have given above ) of microsoft teams, it should automatically check the sellers email and redirect to the microsoft teams chat corresponding to that email id. please help me in achiveing this. (different ads have different sellers)
(same like using mailto: it redirects to sending mails, here it is required to open the teams chat , so that the selling user and buyer can chat in teams)
Thanks @gwin
The above code displays an option as MSteam, but i am not able to locate where the seller can enter their teams link.
While adding a new ad, in the contact information section, only contact person, email, and phone number fields are there.
There may be multiple users posting ads, so need a field in the contact information section, to add the user’s(seller) microsoft teams link.
thanks @gwin ,
I am able to add the comment option now.
- Any other plugins that can be used to add the “like” option??
2. Is there a possibility to add the sellers microsoft teams link (in the contact section) ??(suppose the classified website is linked with an organisation)
3. On what basis does the search option work? ( because i added a product in the bike category, but when i searched with the keyword bike, that product was not visible)
- This reply was modified 2 years, 11 months ago by tagnavi.