<input type="text" name="denomination" value="<?php echo $formdata->denomination; ?> "> <label>Address</label> <input type="text" name="address" value="<?php echo $formdata->address; ?> "> <label>City</label> <input type="text" name="city" value="<?php echo $formdata->city; ?> "> <label>State</label> <? echo state_dropdown('state'); ?> <label>Zip</label> <input type="text" name="zip" maxlength="5" value="<?php echo $formdata->zip; ?> "> <label>Church Phone Number</label> <input type="text" name="location_phone" value="<?php echo $formdata->location_phone; ?> "> </div><!-- end span4 --> <div class="span4"> <!-- <h2 style="font-size:16px">Preferred Area Code</h2> <input type="text" name="area_code" value="" class="input-mini" maxlength="3">
<tr> <td> <label for=""><?php _e('State', 'dokan'); ?> <span class="dokan-tooltips-help tips" title="<?php _e('The state you ship to', 'dokan'); ?> "> <i class="fa fa-question-circle"></i></span></label> <select name="dps_state_to[<?php echo $country; ?> ][]" class="dokan-form-control dps_state_selection"> <?php state_dropdown($states[$country], $state, true); ?> </select> </td> <td> <label for=""><?php _e('Cost', 'dokan'); ?> <span class="dokan-tooltips-help tips" title="<?php _e('Shipping price for this state', 'dokan'); ?> "> <i class="fa fa-question-circle"></i></span></label> <div class="input-group"> <span class="input-group-addon"><?php echo get_woocommerce_currency_symbol();
/** * Load State via ajax for shipping * @return html Set of states */ function load_state_by_country() { $country_id = $_POST['country_id']; $country_obj = new WC_Countries(); $states = $country_obj->states; ob_start(); if (!empty($states[$country_id])) { ?> <tr> <td> <label for=""><?php _e('State', 'dokan'); ?> </label> <select name="dps_state_to[<?php echo $country_id; ?> ][]" class="dokan-form-control dps_state_selection" id="dps_state_selection"> <?php state_dropdown($states[$country_id], '', true); ?> </select> </td> <td> <label for=""><?php _e('Cost', 'dokan'); ?> </label> <div class="input-group"> <span class="input-group-addon"><?php echo get_woocommerce_currency_symbol(); ?> </span> <input type="text" placeholder="9.99" class="form-control" name="dps_state_to_price[<?php echo $country_id; ?> ][]"> </div> </td> <td width="15%"> <label for=""></label> <div> <a class="dps-add" href="#"><i class="fa fa-plus-circle fa-2x"></i></a> <a class="dps-remove" href="#"><i class="fa fa-minus-circle fa-2x"></i></a> </div> </td> </tr> <?php // } } else { ?> <tr> <td> <label for=""><?php _e('State', 'dokan'); ?> </label> <input type="text" name="dps_state_to[<?php echo $country_id; ?> ][]" class="dokan-form-control dps_state_selection" placeholder="State name"> </td> <td> <label for=""><?php _e('Cost', 'dokan'); ?> </label> <div class="input-group"> <span class="input-group-addon"><?php echo get_woocommerce_currency_symbol(); ?> </span> <input type="text" placeholder="9.99" class="form-control" name="dps_state_to_price[<?php echo $country_id; ?> ][]"> </div> </td> <td width="15%"> <label for=""></label> <div> <a class="dps-add" href="#"><i class="fa fa-plus-circle fa-2x"></i></a> <a class="dps-remove" href="#"><i class="fa fa-minus-circle fa-2x"></i></a> </div> </td> </tr> <?php } $data = ob_get_clean(); wp_send_json_success($data); }