Add to Cart Button to Login page

New Member
1 0 0

Hi, I just built a site and I want my "add to cart" button to redirect customers to login page if they are not logged in yet. I want the cart to be saved in customer's account, not on the device's cookies, so when the customer logs out, cart must be back to empty.  Any suggestions?