mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -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',
|
||||
data: 'id=' + id + '&quantity=' + quantity,
|
||||
success: function (data) {
|
||||
hideLoader()
|
||||
if (data.status == "success") {
|
||||
var url = window.location.origin;
|
||||
window.location.replace(url + "/cart");
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user