Copied to clipboard

Flag this post as spam?

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


  • Palle Hansen 143 posts 396 karma points
    Feb 20, 2014 @ 20:03
    Palle Hansen
    0

    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

     

  • Palle Hansen 143 posts 396 karma points
    Feb 20, 2014 @ 20:15
    Palle Hansen
    0

    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:

    Error Loading Razor Script (file: Cart confirmation) c:\www\xxx.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)
    1,85155850813441 0,955247
    macro Error loading MacroEngine script (file: /cart/step-confirmation.cshtml, Type: ''
    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)




  • Anders Burla 2560 posts 8256 karma points
    Feb 21, 2014 @ 08:19
    Anders Burla
    0

    Try remove the Macro tag from the step-confirmation razor file. It might be that you dont have that file.

    Kind regards
    Anders

  • Palle Hansen 143 posts 396 karma points
    Feb 26, 2014 @ 08:00
    Palle Hansen
    0

    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.


  • Anders Burla 2560 posts 8256 karma points
    Feb 26, 2014 @ 08:36
    Anders Burla
    0

    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

  • Palle Hansen 143 posts 396 karma points
    Feb 26, 2014 @ 09:48
    Palle Hansen
    100

    Thanks.
    That did the trick.

Please Sign in or register to post replies

Write your reply to:

Draft