• hi! I have difficulties with the button of enquiry.Jquery conflicts with another plugin. To fix it, i copy the form from the form template into the tab template, it appears correctly but I can’t send the information.
    any suggestions?

    
    			<form action="" method="post" id="wcfm_enquiry_form" class="enquiry-form" novalidate="">
    			
    				<?php if( !is_user_logged_in() ) { ?>
    					<p class="wcfm_popup_label">
    						<strong for="author"><?php _e( 'Name', 'wc-frontend-manager' ); ?> <span class="required">*</span></strong> 
    					
    
    					<input id="enquiry_author" name="customer_name" type="text" value="" class="wcfm_popup_input">
    					
    					<p class="wcfm_popup_label">
    						<strong for="email"><?php _e( 'Email', 'wc-frontend-manager' ); ?> <span class="required">*</span></strong> 
    					
    
    					<input id="enquiry_email" name="customer_email" type="email" value="" class="wcfm_popup_input">
    					<div class="wcfm_clearfix"></div>
    					<p class="comment-notes" style="margin-left:39%;"><span id="email-notes"><?php _e( 'Your email address will not be published.', 'wc-frontend-manager' ); ?></span>
    
    					<div class="wcfm_clearfix"></div>
    				<?php } ?>
    				
    				<p class="wcfm_popup_label">
    					<strong for="comment"><?php _e( 'Your enquiry', 'wc-frontend-manager' ); ?> <span class="required">*</span></strong>
    				
    
    				<textarea id="enquiry_comment" name="enquiry" class="wcfm_popup_input wcfm_popup_textarea"></textarea>
    				
    				<?php
    			
    				if( !empty( $wcfm_enquiry_custom_fields ) ) {
    					foreach( $wcfm_enquiry_custom_fields as $wcfm_enquiry_custom_field ) {
    						if( !isset( $wcfm_enquiry_custom_field['enable'] ) ) continue;
    						if( !$wcfm_enquiry_custom_field['label'] ) continue;
    						$field_value = '';
    						$wcfm_enquiry_custom_field['name'] = sanitize_title( $wcfm_enquiry_custom_field['label'] );
    						$field_name = 'wcfm_enquiry_meta[' . $wcfm_enquiry_custom_field['name'] . ']';
    						$field_id   = md5( $field_name );
    					
    						if( !empty( $wcfmvm_custom_infos ) ) {
    							if( $wcfm_enquiry_custom_field['type'] == 'checkbox' ) {
    								$field_value = isset( $wcfmvm_custom_infos[$wcfm_enquiry_custom_field['name']] ) ? $wcfmvm_custom_infos[$wcfm_enquiry_custom_field['name']] : 'no';
    							} else {
    								$field_value = isset( $wcfmvm_custom_infos[$wcfm_enquiry_custom_field['name']] ) ? $wcfmvm_custom_infos[$wcfm_enquiry_custom_field['name']] : '';
    							}
    						}
    						
    						// Is Required
    						$custom_attributes = array();
    						if( isset( $wcfm_enquiry_custom_field['required'] ) && $wcfm_enquiry_custom_field['required'] ) $custom_attributes = array( 'required' => 1 );
    					
    					}
    				}
    				?>
    				
    	
    				<div class="wcfm_clearfix"></div>
    				<div class="wcfm-message" tabindex="-1"></div>
    				<div class="wcfm_clearfix"></div>
    				
    				<p class="form-submit">
    					<input name="submit" type="submit" id="wcfm_enquiry_submit_button" class="submit" value="<?php _e( 'Submit', 'wc-frontend-manager' ); ?>"> 
    					<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" id="enquiry_product_id">
    					<input type="hidden" name="vendor_id" value="<?php echo $vendor_id; ?>" id="enquiry_vendor_id">
    				
    	
    				<input type="hidden" name="wcfm_nonce" value="<?php echo wp_create_nonce( 'wcfm_enquiry' ); ?>" />
    				<div class="wcfm-clearfix"></div>
    			</form>
    	
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    If you copy this form anywhere it will not work.

    Inquiry only works from popup.

    Thread Starter jennifersanchez

    (@jennifersanchez)

    Thanks i would have been a long time trying.
    Last question, is it possible to add a hook to refresh the page after sending the enquery with the popup? im posting the enqueries in the tab and i can’t solve this point.

    regard!

    Plugin Author WC Lovers

    (@wclovers)

    What exactly you are trying to do using Inquiry, can you please describe me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘enquiry form’ is closed to new replies.