Issue: Add to Cart Fails in Certain Browsers

Issue:  Add to Cart Fails in Certain Browsers

Applies To:  Vibe AJAX Quick Order/Bulk Order Add-on for AspDotNetStorefront

Symptoms:  When attempting to add an item to the cart using the quick order/bulk order page, nothing happens and the item is not added to the cart in some browsers.  Additionally, some browsers may report javascript errors.

Cause:  This can occur if you have failed to place the minicart panel into an AJAX update panel, or the AJAX update panel has the wrong ID assigned.

Resolution:  Ensure that the minicart is wrapped in an AJAX update panel with an ID of pnlShoppingCart.  Below is the manual section which explains how to accomplish this task:

As this AddOn will be modifying the contents of your shopping cart, you may want the number of cart items that is displayed on the page to update with the new items you've added or removed using the AddOn. To do so, you'll need to open up the MasterPage (by default, this is located at App_Templates/Skin_1/template.master) and locate the asp:Panel called "pnlShoppingCart". It should look something like this:

<asp:Panel ID="pnlShoppingCart" runat="server">
    <a runat="server" class="cart" href="~/shoppingcart.aspx">Shopping Cart (<asp:Literal ID="ltrNumCartItems" runat="server" Text='<%$ Tokens:Num_Cart_Items %>' />)</a>
</asp:Panel>

Replace this section of code with an asp:UpdatePanel by the same name:

<asp:UpdatePanel ID="pnlShoppingCart" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <a runat="server" class="cart" href="~/shoppingcart.aspx">Shopping Cart (<asp:Literal ID="ltrNumCartItems" runat="server" Text='<%$ Tokens:Num_Cart_Items %>' />)</a>
    </ContentTemplate>
</asp:UpdatePanel>

and the number of cart items will update as you add and remove items from the shopping cart.


Add Feedback