Announcement

Collapse
No announcement yet.

CARTERROR Message

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CARTERROR Message

    Right here comes a right puzzler...

    the site we're working on uses one add to cart button per page, 2 products, so 2 quantity boxes. Now when we have both quantities set to zero and add to cart a message appears - fine, as one would expect. Our problem comes in its positioning.

    We've worked out that NETQUOTEVAR:CARTERRORLISTXML drives the error except when there's one add to cart button on the page and that also creates the message, so 2 messages appear. We comment out the NETQUOTEVAR:CARTERRORLISTXML in Act_ProductBody.html and get the one error message we want, though we are unable to move it anywhere, it always appears above the add to cart button.

    How do we either remove from being generated by the add to cart button or move this generated message below the button.

    Regards Garry

    PS our test site is HERE

    just add zero products to the cart and you'll see the message above the add to cart button

    #2
    Hi Garry,

    Back-up your site before making the following changes:

    1. Edit the single cart template "Act_SingleCartButton.html" (Advanced | Template Manager | Section | Single Cart button)
    Insert

    Code:
    <Actinic:CustomErrorList></Actinic:CustomErrorList>
    after:

    Code:
    <P><INPUT TYPE=SUBMIT VALUE="NETQUOTEVAR:BUTTONLABEL" NAME="NETQUOTEVAR:BUTTONNAME"></P>
    Save and close the file.

    2. Open ShoppingCart.pl (found in the site folder) in a text editor such as notepad and search for:

    CartError_List

    Replace this with:

    CustomErrorList

    so it looks like:

    Code:
    $ACTINIC::B2B->SetXML('CustomErrorList', $sGenMessage);
    Save and close the file and then update your site.
    ********************
    Tracey
    SellerDeck

    Comment

    Working...
    X