I've tried it as you explain in the tutorial. But the redirection leads to the homepage, not the cart page.
Is the variable "prestashop.urls.pages.cart" correct?
$.post(refreshURL, requestData).then(function (resp) {
$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));
if (resp.modal) {
//showModal(resp.modal);
window.location.replace(prestashop.urls.pages.cart);
}
}).fail(function (resp) {
prestashop.emit('handleError', {eventType: 'updateShoppingCart', resp: resp});
});