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);
if($insert_data)
{
$this->creditsModel->where('id',$creditsDataValue['id'])->delete();
$this->cartModel->where('id',$creditsDataValue['id'])->delete();
}
}
echo true;

View File

@ -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");