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?
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
});
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>
/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?
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"
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.
/Rune
FormPost.aspx error:
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
is working on a reply...