hook_cart_actions API updated. JavaScript updated to enable/disable secondary actions