   validate: (options = {})->
     @checkErrors()
     @refreshErrorsDisplay(options)
+    !@errors.length
 
   checkErrors: ->
     @errors = []
-    console.log 'CHECK ERRORS'
-    console.log 'sellable_id', @$('[name$="[sellable_id]"]').val(), @sellableChosen()
-    console.log 'quantity', @$('[name$="[quantity]"]').val(), @quantityFilled()
-
     @errors.push('choose') unless @sellableChosen()
     @errors.push('quantity') unless @quantityFilled()
 



Stall.onDomReady ->
  $('body').on 'ajax:beforeSend', '[data-add-to-cart-form]', (e) ->
    Stall.AddToCartForm.create($(e.currentTarget))

    @errorMessages = @$el.data('error-messages')

  sendRequest: ->
    unless (v = @validate(submit: true)) and (e = !@errors.length)
      console.log 'sendRequest', v, e
      return false
    @setLoading(true)
    true

