mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
edited add cart
This commit is contained in:
parent
7afd45b858
commit
1d0c6d4aea
@ -76,10 +76,9 @@ function addCart(id, quantity) {
|
|||||||
url: '/ajax/addCart',
|
url: '/ajax/addCart',
|
||||||
data: 'id=' + id + '&quantity=' + quantity,
|
data: 'id=' + id + '&quantity=' + quantity,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
hideLoader()
|
|
||||||
if (data.status == "success") {
|
if (data.status == "success") {
|
||||||
var url = window.location.origin;
|
var url = window.location.origin;
|
||||||
window.location.replace(url + "/cart");
|
window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
alert(data.msg);
|
alert(data.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user