           "quantity": 1
         }
         # save to local storage & update the nav counter
-        @saveToCart(key, item)
+        @saveToCart(JSON.stringify(key), item)
         @eventUpdateCartNavCounter()
+        console.log LocalStorage.raw()
 
   eventClearCart: ->
     @clearCartButton.click (event)=>

          $(tr).remove()

        # update total
        total = if LocalStorage.length() > 0 then @_sumAll((v['price'] for v in LocalStorage.values())) else 0
        $("td[id='CartSum--total'").text("#{ total }")
     
        # update header
        @eventUpdateCartNavCounter()

      @eventUpdateCartNavCounter()

  eventUpdateCartNavCounter: ->
    counter = if LocalStorage.length() > 0 then LocalStorage.length() else ""
    $(@cartNavCounter).text("#{ counter }")

  eventUpdateConfig: ->
    if $("#Store").length > 0
