Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend

This commit is contained in:
suseendhiran17 2023-05-11 15:37:15 +05:30
commit 323d68f4a0
2 changed files with 4 additions and 4 deletions

View File

@ -399,7 +399,7 @@ class Member_controller extends BaseController
$insert_data = $this->creditsModel->save($credits_data); $insert_data = $this->creditsModel->save($credits_data);
if($insert_data) if($insert_data)
{ {
$this->creditsModel->where('id',$creditsDataValue['id'])->delete(); $this->cartModel->where('id',$creditsDataValue['id'])->delete();
} }
} }
echo true; echo true;

View File

@ -41,7 +41,7 @@ $(document).on('click','.use_points',function(){
$("#mytable").load(window.location + " #mytable"); $("#mytable").load(window.location + " #mytable");
} }
else { else {
alert(response);
} }
}, },
error: function(jqXHR, textStatus, err) { alert('text status '+textStatus+', err '+err) } 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(){ $(document).on('click','.checkout',function(){
alert(1);
$.ajax({ $.ajax({
type: "post", type: "post",
url: "<?php echo base_url(); ?>cart_checkout", url: "<?php echo base_url(); ?>cart_checkout",
//data: formData, //data: formData,
json: true, json: true,
success: function(response) { success: function(response) {
alert(response);
if (response == true) { if (response == true) {
$("#mytable").load(window.location + " #mytable"); $("#mytable").load(window.location + " #mytable");
$("#mycarttable").load(window.location + " #mycarttable"); $("#mycarttable").load(window.location + " #mycarttable");