Split: Business Owner / Associate

This topic contains 28 replies, has 5 voices, and was last updated by  Kiran 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #394313

    Joy
    Buyer
    Post count: 1076

    Can the snippet be adjusted to apply to a specific listing form? I am using CPT and owners would not apply for certain categories.

    Thank you.

    #394387

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if ( 'gd_place' == get_post_type() ) { // remove action here }

    Thanks

    #394437

    Joy
    Buyer
    Post count: 1076

    This should remove it then? But it’s not…

    
    
    if ( 'gd_hike' == get_post_type() ) { remove_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form', 1); }
    

    Am I doing it wrong? Thank you.

    #394478

    Giri
    Expired Member
    Post count: 3155

    Hi Joy,

    You may have to use init action for that.

    
    
    add_action('init', 'init_remove_gd_cliam_fields');
    function init_remove_gd_cliam_fields() {
    	if ( 'gd_hike' == get_post_type() ) {
    		remove_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form', 1);
    	}	
    }
    #394514

    Joy
    Buyer
    Post count: 1076

    I get this error when I try to use this snippet:

    The snippet has been deactivated due to an error on line 4:
    syntax error, unexpected ‘geodir_before_main_form_fields’ (T_STRING)

    #394515

    Paolo
    Site Admin
    Post count: 31206

    Please provide a link and admin credentials and we’ll check.

    Thanks

    #394517

    Joy
    Buyer
    Post count: 1076
    This reply has been marked as private.
    #394521

    Joy
    Buyer
    Post count: 1076

    Ahh, paolo can you please mark my post as private or delete it? Thank you.

    #394602

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    #396306

    Joy
    Buyer
    Post count: 1076

    Checking on this again. Any update on the issue?

    Thank you.

    #396358

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #396360

    Joy
    Buyer
    Post count: 1076

    Got it. Thank you.

    I think I am being misunderstood though for my request.

    On the “Add Listing” form, there is a section for the business owner/associate option on the form. I would like to remove that option on the form for a new listing. The claim listing is not in question.

    Thank you.

    #396361

    Paolo
    Site Admin
    Post count: 31206

    That’s part of the claim listing add-on. If someone select Yes for that question, the listing is automatically claimed.

    #396362

    Joy
    Buyer
    Post count: 1076

    Listing claim abilities are turned off for these particular post types. So the “claim listing” button doesn’t appear on one of these listing types.

    So to clarify, if someone wants to add a listing – not one that they own, just add a listing to the directory, they must state if they are a business owner or an associate? The place types that I am trying to remove this option from are public locations, so there isn’t really a business owner or associate. Some are state or county owned. If the person trying to submit a listing is not a business owner or associate, how can the listing be completed?

    Thank you.

    #396363

    Joy
    Buyer
    Post count: 1076

    According to the original post, the user was able to achieve what they were trying to do.

    https://wpgeodirectory.com/support/topic/business-owner-associate/

Viewing 15 posts - 1 through 15 (of 29 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket