I have another problem with DeleteLineItem: it works ok untill the last orderLine is deleted. After that site loses content (displays empty pages), but xslt are executed, I've checked this in debug mode.
I can restore this by reverting db files only. But this error is session related: so when I open site in another browser, it looks like it should.
Do you get any additional information in umbracoLog? You want to delete items in reverse if you are deleting multiple at once. So you want ot start with the highest index and move down from there.
Could you post a screenshot of what's happening? Are all pages losing content or jsut the basket page? Are you using the standard store or something completely custom?
Problem with DeleteLineItem
Hello.
I have another problem with DeleteLineItem: it works ok untill the last orderLine is deleted. After that site loses content (displays empty pages), but xslt are executed, I've checked this in debug mode.
I can restore this by reverting db files only. But this error is session related: so when I open site in another browser, it looks like it should.
Here is the code:
<xsl:variable name="deleteCartItemIndex" select="umbraco.library:RequestForm('deleteCartItemIndex')"/>
<xsl:variable name="deleteLineItemResult" select="CommerceLibrary:DeleteLineItem($deleteCartItemIndex)"/>
<xsl:variable name="pipelineResult" select="CommerceLibrary:ExecuteBasketPipeline()"></xsl:variable>
$deleteCartItemIndex = "0" in last case, when you are deleting last item in basket.
Can anyone suggest what could be the reason?
Do you get any additional information in umbracoLog? You want to delete items in reverse if you are deleting multiple at once. So you want ot start with the highest index and move down from there.
Could you post a screenshot of what's happening? Are all pages losing content or jsut the basket page? Are you using the standard store or something completely custom?
is working on a reply...