HomeHome Product Discus... Product Discus...RazorCartRazorCartMaking the add to cart popup message clickableMaking the add to cart popup message clickable
Previous
 
Next
New Post
5/10/2017 8:58 PM
 
Is the pop up that confirms the product has been added to the cart available in one of the templates? We want to make it clickable to take the user directly to their cart if they wish. 

We are using angular-toastr which is an AngularJS Directive for toastr JS library. You can find the global configuration in: \DesktopModules\RazorCart\Core\Content\Scripts\razorcart.core.js:24

What you need to add is [onTap: function()]

onTap: function () { window.location.href = '/checkout'; }
 
An you can also add this at the notification level (which I recommend):
 \DesktopModules\MVC\RazorCart\ProductList\Scripts\razorcart.list.js:156

toastr.success('Successfully added ' + product.ModelName + ' to cart.', vm.storeName, { onTap: function () { window.location.href = '/checkout'; } });
 
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartMaking the add to cart popup message clickableMaking the add to cart popup message clickable