susee
This commit is contained in:
parent
32006b24fc
commit
a784c7d9b5
@ -7,7 +7,7 @@ class Member_model extends Model
|
||||
protected $table = 'member';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = ['name', 'last_name' ,'gender', 'mobile','email','username', 'password', 'address' , 'city' , 'state' , 'country' , 'pincode' , 'is_email_verified' , 'verification_code' , 'is_active' , 'created_by','updated_by'];
|
||||
protected $allowedFields = ['name', 'last_name' ,'gender', 'mobile','email','username', 'password', 'address' , 'city' , 'state' , 'country' , 'pincode' , 'is_email_verified' , 'verification_code' , 'is_active' , 'created_by','updated_by','country_code'];
|
||||
|
||||
protected $beforeInsert = ['beforeInsert'];
|
||||
protected $beforeUpdate = ['beforeUpdate'];
|
||||
|
||||
@ -123,6 +123,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
||||
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
||||
|
||||
|
||||
<input id="url" value="<?= base_url() ?>" type="hidden">
|
||||
|
||||
|
||||
@ -617,6 +618,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
||||
|
||||
function uncheck(){ $('#rememberMe').prop('checked', false); $(".payment-title").css('display','none'); $("#fast-checkout").css('display','none'); }
|
||||
</script> -->
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
@ -243,6 +243,7 @@
|
||||
<form id="member-address-save">
|
||||
<input type="hidden" name="id" id="id" value="<?= session()->get('logged_user'); ?>"/>
|
||||
<input type="hidden" id="url" value="<?= base_url(); ?>"/>
|
||||
<input type="hidden" name="country_code" id="country_code" value="<?= $profile[0]['country_code']?>"/>
|
||||
<div class="row information mb-5">
|
||||
|
||||
<div class="col-6 col-lg-6">
|
||||
@ -474,8 +475,11 @@ $(document).ready(function(){
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<!-- International Mobile Number -->
|
||||
<script>
|
||||
|
||||
var country_code = $('#country_code').val();
|
||||
var input = document.querySelector("#mobile");
|
||||
window.intlTelInput(input, {
|
||||
// allowDropdown: false,
|
||||
@ -491,7 +495,7 @@ $(document).ready(function(){
|
||||
// .catch(function() { callback("us"); });
|
||||
// },
|
||||
// hiddenInput: "full_number",
|
||||
initialCountry: "ca",
|
||||
initialCountry: country_code || "us",
|
||||
// localizedCountries: { 'de': 'Deutschland' },
|
||||
// nationalMode: false,
|
||||
// onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user