Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dean 7 posts 27 karma points
    Apr 26, 2013 @ 19:41
    Dean
    0

    /base/TC/FormPost.aspx

    Hi,

    I start integrating the TC e-shop...

    I have a problem with the "Cart"... On the information step when i click on the button for shipping/delivery my browser go to http://localhost:12715/base/TC/FormPost.aspx... Where I can fix the problem?

  • Dean 7 posts 27 karma points
    Apr 26, 2013 @ 20:23
    Dean
    0

    One more problem..

    When I add product to chart I must refresh the page to see the product in my chart or on the chart is in "updating"

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Apr 29, 2013 @ 08:26
    Rune Grønkjær
    0

    Hi Dean,

    As for your first problem that's what it's supposed to do. When interacting with Tea Commerce you post forms to the FormPost.aspx. If everything is set up properly the FormPost.aspx will redirect you to either the page you came from or to the page set in a field named "returnUrl".

    Does the FormPost.aspx page throw any errors?

    Your second problem. Sounds like your form has the "ajaxForm" class. When this class is used on the form the Tea Commerce JavaScript will kick in and post the form for you. This means that you will have to use the JavaScript events to update your content. Below is the most used events and how you hook into them. See the Tea Commerce starter kit for examples of exact usage.

    /************************************************************* - SUBSCRIBE TO GENERAL EVENTS *************************************************************/
    TC.bind('beforeCartUpdated'function (formData, jQForm) {
      //Your code here
    });
    TC.bind('afterCartUpdated'function (data, jQForm) {
      //Your code here
    });
    TC.bind('cartUpdateError'function (data, jQForm) {
      //Your code here
    });
    /************************************************************* - SUBSCRIBE TO ORDER LINE EVENTS *************************************************************/
    TC.bind('beforeAddOrUpdateOrderLine'function (formData, jQForm) {
    });
    TC.bind('afterAddOrUpdateOrderLine'function (orderLine, data, jQForm) {
      //Your code here
    });
    TC.bind('afterRemoveOrderLine'function (orderLine, data, jQForm) {
      //Your code here
    });

    /Rune

  • Dean 7 posts 27 karma points
    Apr 29, 2013 @ 09:27
    Dean
    0

    FormPost.aspx error:

     

      <error><![CDATA[MESSAGE:
      Exception has been thrown by the target of an invocation.
     
      STACKTRACE:
      at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
      at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
     
      INNEREXCEPTION:
      System.Data.SqlServerCe.SqlCeException (0x80004005): There was an error parsing the query. [ Token line number = 1,Token line offset = 12,Token in error = FROM ]
      at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
      at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
      at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
      at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
      at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
      at TeaCommerce.Api.Persistence.Repositories.OrderRepository.Save(Order order)
      at TeaCommerce.Api.Models.Order.Save()
      at TeaCommerce.Api.Web.TeaCommerceHelper.AddOrUpdateOrderProperties(Int64 storeId, IDictionary`2 properties)
      at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderProperties(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
      at TeaCommerce.Api.Web.FormPostHandler.FormPost()
      at TeaCommerce.Umbraco.Web.RestExtensions.FormPost()]]></error>
  • Anders Burla 2560 posts 8256 karma points
    Apr 30, 2013 @ 10:06
    Anders Burla
    1

    Hi Dean

    I think this is a bug in 2.0 - try and update to the latest 2.1. Be aware of some breaking changes. More info here:
    http://www.teacommerce.net/en/documentation/revision-history.aspx

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft