Skip to content

Commit

Permalink
feat: on lightbox checkout page redirect to generic error page if use…
Browse files Browse the repository at this point in the history
…r abort checkout
  • Loading branch information
Thiago-Medeiros committed Jan 24, 2018
1 parent cee23f5 commit 11bfb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
success: function () {
window.location.href = "<?= $url ?>";
},
abort: function (error) {
//todo error page
abort: function () {
window.location.href = "<?= get_permalink(get_page_by_path('pagseguro/order-error')); ?>";
}
}
);
Expand Down

0 comments on commit 11bfb83

Please sign in to comment.