Calling the url from backend with out payment this is on the page: Error loading MacroEngine script (file: cart/google-ecommerce-tracking.cshtml) Error loading MacroEngine script (file: /cart/step-confirmation.cshtml)
My cancel url is working fine.
I'm using: accepturl and cancelurl. The payment gateway is Quickpay.
If I remove this: if ( TC.HasCurrentFinalizedOrder( storeId ) ) { order = TC.GetCurrentFinalizedOrder( storeId ); totalQuantity = order.OrderLines.Sum( o => o.Quantity ); }
The error goes away, but after complete an ordre, the page shows nothing except: Your cart is empty.
From your error I see that you must be running at least Tea Commerce 2.2.0 and HasCurrentFinalizedOrder was removed in that version. So change so you just use GetCurrentFinalizedOrder - it will return null if nothing is present. http://documentation.teacommerce.net/revision-history/
Accepturl isn't doing right
Hi.
I'm not getting to the right accpeturl after my payment.
I'm getting this url:
http://www.domainname.dk/base/TC/PaymentContinue/1/QuickPay/04be13d9-038e-47e5-a139-4bce80939290.aspx
Calling the url from backend with out payment this is on the page:
Error loading MacroEngine script (file: cart/google-ecommerce-tracking.cshtml) Error loading MacroEngine script (file: /cart/step-confirmation.cshtml)
My cancel url is working fine.
I'm using:
accepturl and cancelurl.
The payment gateway is Quickpay.
Im using TC vers. 2.1.3.
/Palle
Ah it shuold be:
continueurl, but now it's showing this:
Error loading MacroEngine script (file: cart/google-ecommerce-tracking.cshtml) Error loading MacroEngine script (file: /cart/step-confirmation.cshtml)
This is the debug text:
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType[T](String virtualPath)
at System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType[T](String virtualPath)
at System.Web.WebPages.WebPageBase.CreateInstanceFromVirtualPath(String virtualPath, IVirtualPathFactory virtualPathFactory)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
c:\www\geilsk.dk\www\Public\macroScripts\cart\step-confirmation.cshtml(14): error CS0117: 'TeaCommerce.Umbraco.Web.TC' does not contain a definition for 'HasCurrentFinalizedOrder'
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType[T](String virtualPath)
at System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType[T](String virtualPath)
at System.Web.WebPages.WebPageBase.CreateInstanceFromVirtualPath(String virtualPath, IVirtualPathFactory virtualPathFactory)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
at umbraco.macro.loadMacroScript(MacroModel macro)
at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
Try remove the Macro tag from the step-confirmation razor file. It might be that you dont have that file.
Kind regards
Anders
If I remove this:
if ( TC.HasCurrentFinalizedOrder( storeId ) ) {
order = TC.GetCurrentFinalizedOrder( storeId );
totalQuantity = order.OrderLines.Sum( o => o.Quantity );
}
The error goes away, but after complete an ordre, the page shows nothing except: Your cart is empty.
From your error I see that you must be running at least Tea Commerce 2.2.0 and HasCurrentFinalizedOrder was removed in that version. So change so you just use GetCurrentFinalizedOrder - it will return null if nothing is present.
http://documentation.teacommerce.net/revision-history/
Kind regards
Anders
Thanks.
That did the trick.
is working on a reply...