Re-copy method attempt_cart_add from 2-0-stable