add custom add to cart handler. update for #5923
Merge pull request #6566 from helgatheviking/add-to-cart-handler-2

add custom add to cart handler. update for #5923