               $(location).attr('href',"order_success")
               LocalStorage.clear()
 
+  eventGenerateOrderLink: ->
+    if $(@cartPage).length > 0 
+      $("#Nav-cart").click (event)=>
+        event.preventDefault()
+        link = $(event.target)
+        document.location = "?"+$.param(LocalStorage.dict())
+
+  # eventParseURL: ->
+  #   if $(@cartPage).length > 0
+  #     query = window.location.search.substring(1)
+  #     name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]")
+  #     regex = new RegExp("[\\?&]" + name + "=([^&#]*)")
+  #       results = regex.exec(location.search);
+  #   return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
+
 
   _setOrderType: ->
     activeId = $("label[id^='OrderType-'][class~='Button--state-active']").attr('id').split('-').pop()

      @eventTogglePaymentType()
      @eventUpdateFormValues()
      @eventSubmitForm()


  eventStorePageInit: ->

                            </div>
                          </div>
                        </div>
                        <div class='Grid-cell--1of8 u-textCenter'>
                          <p class='Cart--sumRow'>€ #{ getProductsSum(v.order,v.qty) }</p>
                        </div>  
