Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Dmitry 6 posts 26 karma points
    Nov 14, 2011 @ 16:10
    Dmitry
    0

    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?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 29, 2011 @ 08:51
    Søren Spelling Lund
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft