Add notice to cart
-
Hello
First of all, the plugin is looking great!
I’m having a small issue though, is there a way to add a notice in the cart popup?
In my shop the customer is only able to add products to the cart from one category at a time. This means that they should get a notification when they are trying to add a ‘wrong’ product.
In my functions.php I added the following code which adds a WP notice, however it’s not showing up in the cart and the cart popup ‘acts’ as if the product was added successfully even though it wasn’t: https://pastebin.com/iHRArG4N
So basically my question is if I can hook into something to add a Cartpops notice at the top of my cart saying ‘You can only add products of the same category’.
Thanks a lot!
- The topic ‘Add notice to cart’ is closed to new replies.