Thanks Matthew! I did just what you said and gutted the minicart xml package.
Code:
<?xml version="1.0" standalone="yes" ?>
<package version="2.1" displayname="Display Cart Subtotal" debug="false" includeentityhelper="false">
<!-- ###################################################################################################### -->
<!-- Copyright AspDotNetStorefront.com, 1995-2010. All Rights Reserved. -->
<!-- http://www.aspdotnetstorefront.com -->
<!-- For details on this license please visit the product homepage at the URL above. -->
<!-- THE ABOVE NOTICE MUST REMAIN INTACT. -->
<!-- -->
<!-- ###################################################################################################### -->
<PackageTransform>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:aspdnsf="urn:aspdnsf" exclude-result-prefixes="aspdnsf">
<xsl:output method="html" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="aspdnsf:CartSubTotalSCD()" disable-output-escaping="yes" />
</xsl:template>
</xsl:stylesheet>
</PackageTransform>
</package>
I also copied the CartSubTotal call in the xsltextensionbase.cs and renamed it something different incase I wanted to use the mini cart in the future.
Everything seems to work great at first then unexpectedly the xml package throws an error causing additional errors and my site craps out and I have to touch the web.config to restart it.
Below is the initial error:
Code:
XmlPackageException Error has occured on xml package: showcartsubtotal.xml.config
Details
Page URL:/c-10-tiny-temptations.aspx
Source:AspDotNetStorefrontCore
Message:Object reference not set to an instance of an object.
Stack Trace:
at AspDotNetStorefrontCore.DB.Scalar`1.ExecuteScalar(SqlCommand cmd) in C:\9013\ASPDNSFCore\DB.cs:line 810
at AspDotNetStorefrontCore.AppLogic.GetStateID(String StateAbbreviation) in C:\9013\ASPDNSFCore\AppLogic.cs:line 7098
at AspDotNetStorefrontCore.Shipping.ShippingMethodIsValid(Int32 ShippingMethodID, String StateAbbrev, String CountryName) in C:\9013\ASPDNSFCore\Shipping.cs:line 115
at AspDotNetStorefrontCore.ShoppingCart.AnalyzeCartForFreeShippingConditions(Int32 AddressID) in C:\9013\ASPDNSFCore\ShoppingCart.cs:line 8078
at AspDotNetStorefrontCore.ShoppingCart..ctor(SqlTransaction DBTrans, Int32 SkinID, Customer ThisCustomer, CartTypeEnum CartType, Int32 OriginalRecurringOrderNumber, Boolean OnlyLoadRecurringItemsThatAreDue, Boolean IsAjaxMiniCart) in C:\9013\ASPDNSFCore\ShoppingCart.cs:line 688
at AspDotNetStorefrontCore.ShoppingCart..ctor(SqlTransaction DBTrans, Int32 SkinID, Customer ThisCustomer, CartTypeEnum CartType, Int32 OriginalRecurringOrderNumber, Boolean OnlyLoadRecurringItemsThatAreDue) in C:\9013\ASPDNSFCore\ShoppingCart.cs:line 593
at AspDotNetStorefrontCore.ShoppingCart..ctor(Int32 SkinID, Customer ThisCustomer, CartTypeEnum CartType, Int32 OriginalRecurringOrderNumber, Boolean OnlyLoadRecurringItemsThatAreDue) in C:\9013\ASPDNSFCore\ShoppingCart.cs:line 589
at AspDotNetStorefrontCore.XSLTExtensionBase.CartSubTotalSCD() in C:\9013\ASPDNSFCore\XSLTExtensionBase.cs:line 4054
Is anyone else experiencing issues/random errors in the system log when using the ajax minicart?
Thanks!