Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend
This commit is contained in:
commit
323d68f4a0
@ -399,7 +399,7 @@ class Member_controller extends BaseController
|
||||
$insert_data = $this->creditsModel->save($credits_data);
|
||||
if($insert_data)
|
||||
{
|
||||
$this->creditsModel->where('id',$creditsDataValue['id'])->delete();
|
||||
$this->cartModel->where('id',$creditsDataValue['id'])->delete();
|
||||
}
|
||||
}
|
||||
echo true;
|
||||
|
||||
@ -41,7 +41,7 @@ $(document).on('click','.use_points',function(){
|
||||
$("#mytable").load(window.location + " #mytable");
|
||||
}
|
||||
else {
|
||||
|
||||
alert(response);
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, err) { alert('text status '+textStatus+', err '+err) }
|
||||
@ -72,14 +72,14 @@ $(document).on('click','.Addtocart',function(){
|
||||
|
||||
|
||||
$(document).on('click','.checkout',function(){
|
||||
alert(1);
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "<?php echo base_url(); ?>cart_checkout",
|
||||
//data: formData,
|
||||
json: true,
|
||||
success: function(response) {
|
||||
alert(response);
|
||||
|
||||
if (response == true) {
|
||||
$("#mytable").load(window.location + " #mytable");
|
||||
$("#mycarttable").load(window.location + " #mycarttable");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user