• Resolved jujutou

    (@jujutou)


    Good morning,

    I have just downloaded your application to integrate a list of job offers that our company offers, and replace our old system.
    Everything seems to be working well, however I would like to modify the application form to apply for the offer.
    In the free version, the plugin only offers to say “send an email with CV to this email address”.
    However, I would like to directly integrate a form which is already integrated into our site (via Caldera Form), and which allows us to propose a form in the job offer and allows us to have a follow-up in the admin space.

    I would like to replace this message “send an email with CV to this email address” by our plugin (which has a short code).
    How to do ? Which file to modify?
    (I’m a beginner sorry).

    Thank you !
    Cordially

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Cena (a11n)

    (@cena)

    Hi @jujutou ,

    Per ww.wp.xz.cn community guidelines, we are not allowed to support premium plugins (paid add-ons, like Applications) in these forums.ย 

    Please use this form to get support for our paid add-ons:

    https://wpjobmanager.com/support/

    Thanks!

    Thread Starter jujutou

    (@jujutou)

    Hello,

    Precisely, I do not use the premium plugins! I use the free version!
    And I would like to be able to modify the application submission forum in the free version (to put my own form generated with Caldera form)

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @jujutou ,

    The core free WP Job Manager plugin does not include an application submission form. The paid Applications addon includes one.

    The only form provided by the core plugin is the job submission form, so could you clarify which one you mean?

    best,

    Cena

    Thread Starter jujutou

    (@jujutou)

    For example on this page of my site: https://cri1149.fr/poste/agent-de-laboratoire/
    At the end of the job posting, there is a button marked “Postuler”.
    Then a message opens indicating to write to the email address to apply.
    I would like to replace this message with my home form.
    I am looking for where this message is in the plugin files.

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @jujutou ,

    Ah, I see, thank you.

    To that will require custom code, which we don’t support.

    However, basically, you’ll need to override the template of this file:

    WP-Job-Manager/templates/job-application.php

    We have some information about overriding templates here:

    https://wpjobmanager.com/document/template-overrides/

    Best,

    Cena

    Thread Starter jujutou

    (@jujutou)

    Hello,

    Thank you. I doubt you can help me modify the code.
    But you helped me find the file to modify for this parameter. I could not identify the file that induced this function!

    I managed to modify the code to insert my personal form!
    Thank you !

    (I don’t know if I have the right to explain how I made the change?)

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @jujutou ,

    I’m glad that helped you!

    It would be great if you could share how you made the change – other users might find it helpful, but of course that is up to you. ๐Ÿ™‚

    Best,

    Cena

    Thread Starter jujutou

    (@jujutou)

    Of course !

    In the following file: WP-Job-Manager/templates/job-application.php
    You have this code:

    <?php if ( $apply = get_the_job_application_method() ) :
    	wp_enqueue_script( 'wp-job-manager-job-application' );
    	?>
    	<div class="job_application application">
    		<?php do_action( 'job_application_start', $apply ); ?>
    
    		<input type="button" class="application_button button" value="<?php esc_attr_e( 'Apply for job', 'wp-job-manager' ); ?>" />
    
    		<div class="application_details">
    			<?php
    				/**
    				 * job_manager_application_details_email or job_manager_application_details_url hook
    				 */
    				do_action( 'job_manager_application_details_' . $apply->type, $apply );
    			?>
    		</div>
    		<?php do_action( 'job_application_end', $apply ); ?>
    	</div>
    <?php endif; ?>

    The following code is used to display the button under which this scrolls the text.
    <input type=”button” class=”application_button button” value=”<?php esc_attr_e( ‘Apply for job’, ‘wp-job-manager’ ); ?>” />

    and the following code is the message :
    <div class=”application_details”>…</div>

    So you just need to replace this code with your personal form code to embed it. And it works pretty well for me!
    That’s what happens :

    <?php if ( $apply = get_the_job_application_method() ) :
    	wp_enqueue_script( 'wp-job-manager-job-application' );
    	?>
    	<div class="job_application application">
    		<?php do_action( 'job_application_start', $apply ); ?>
    
    		<div class="bt-slide"><input type="button" class="application_button button" value="<?php esc_attr_e( 'Apply for job', 'wp-job-manager' ); ?>" /></div>
    		<div class="blockMasqueform">
    			<?php echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage("[:fr]".do_shortcode( '[caldera_form id="XXXXXXXXXX"]' )."[:][:en]".do_shortcode( '[caldera_form id="XXXXXXXXX"]' )."[:]");?>
    
    		</div>
    		<?php do_action( 'job_application_end', $apply ); ?>
    	</div>
    <?php endif; ?>

    Don’t pay attention to the “qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage”, because I’m using a language changer plugin. But you don’t need that to embed your form.

    And I put XXXXX in the id of the house form (caldera form), you must put your personal id (or your other plugin)

    Hi @jujutou,

    Thanks for providing those steps! I’m sure they will be very helpful for the next user wanting to do something similar. I’m going to go ahead and close the thread now, but feel free to reach out again whenever you need to!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘modify the application submission form’ is closed to new replies.