edit listing form
-
How to edit listing form if I want to remove Ad Type and Prices?
Also, how to remove “Payment” tab on My Account page if no charges will be applied for listing on the site?
-
How to edit the fields show at “Contact Details” of the listing form? Like removing state, country, address, etc.
Next version I will try to give this control wait till next week.
Thanks
Can you also make it to be flexible to create different listings? Shortcodes to show listings by category.
Is it okay?
Hello,
Please update your plugin to latest version.
Use this hook to remove full “contact details” Section
function remove_classified_listing_actions(){
remove_action(‘rtcl_listing_form’, array(\Rtcl\Controllers\ListingHook::class, ‘listing_contact’), 30);
}
add_action(‘init’,’remove_classified_listing_actions’);Also, you can use special category to list the listing by shortcode.
[rtcl_listings category=”4,5,6″]
Thanks
Where should I put the code “function remove_classified_listing_actions(){
remove_action(‘rtcl_listing_form’, array(\Rtcl\Controllers\ListingHook::class, ‘listing_contact’), 30);
}”?Hi,
Write this hook in your theme function.php file
Thanks
Put in which line?
Can’t this function be integrated in the plugin?
Hello,
at your theme folder, you can find the functions.php file.
like => wp-content/themes/your-theme/functions.php
if you have child theme then => wp-content/themes/your-child-theme/functions.php
Thanks
Can you please make it flexible in the plugin that we can edit the fields show at “Contact Details” of the listing form? Like removing state, country, address, or adding custom fields etc.?
Hello,
Our plugin main purpose in for classified so here user post there ads and customer find them using there location, address, email, phone no etc. Contact information is mandatory for classified ads also location some ads are related to location like customer can find his near ads.
We already give some fields control. For State/ City it is mandatory you can use only one or remove all by Hooks.
For developer friendly we have template override option and keep more Hooks (WordPress default feature for developer) so you can do what you need I think.
For contact info remove we gave you Hooks just add that in your theme function.php file.
Thanks
I don’t mean to remove all contact detail fields but need the flexibility to customize the fields.
By override the layout you can customize as your need.
Which customization you need please explain detail?
Thanks
I want to do customization at the plugin and can change when I needed. I can’t always ask you every time I change anything.
Yes you can do just override the layout file move it into your theme file and work.
If need any technical help ask me I will tell or need will add hook can you can do all in customization.
Thanks
The topic ‘edit listing form’ is closed to new replies.