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);
|
$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;
|
||||||
|
|||||||
@ -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");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user