On my dev machine, I can no longer checkout. After adding an item to the cart, if I View Cart and click on Checkout, it redirects to the same page with a message that "Your Cart is Empty". I've stepped through the code and ac_BasketItems gets cleared when BasketHelper.SaveBasket(BasketGrid) is called, specifically when that method calls item.Save. It was working yesterday but not today.
I'm still looking into what changes I made in code or in the underlying data but I thought someone might be able to tell me the obvious things to check.
Thanks.
HELP! Checkout Button Empties Basket
Re: HELP! Checkout Button Empties Basket
Database full and out of disk space can cause that behavior.
Re: HELP! Checkout Button Empties Basket
I found my error. We don't want customers to select quantity. All our items are personalized and the quantity will always be 1. But making the updowncontrol always non visible screws up its value in Basket.ascx.
Here's the customized code:
I suspect this is a deficiency of the underlying GridView. Guess I'll have to make it visible but css display:none.
Thank you anyway for the suggestion.
Here's the customized code:
Code: Select all
<asp:PlaceHolder ID="ProductQuantityPanel" runat="server" Visible='False'>
<cb:updowncontrol MinValue="0" id="Quantity" runat="server" MaxValue="32767" DownImageUrl="~/images/down.gif" UpImageUrl="~/images/up.gif" Columns="2" MaxLength="5" Text='<%# Eval("Quantity") %>' onFocus="this.select()"></cb:updowncontrol>
</asp:PlaceHolder>
<asp:PlaceHolder ID="OtherQuantityPanel" runat="server" Visible='True' EnableViewState="false">
<%#Eval("Quantity")%>
</asp:PlaceHolder>
Thank you anyway for the suggestion.
Re: HELP! Checkout Button Empties Basket
It doesn't screw it up, it just doesn't get set. The default value of '1' is established in the updown control.
Establishing the quantity value in the code should resolve the issue.
Establishing the quantity value in the code should resolve the issue.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: HELP! Checkout Button Empties Basket
May be it helps
viewtopic.php?f=42&t=9500
viewtopic.php?f=42&t=9500
Re: HELP! Checkout Button Empties Basket
I went with CSS. Very simple to implement and the least impact. Here's what I changed the markup to:
I just added CssClass="HiddenPanel" to the updowncontrol and made OtherQuantityPanel always visible.
Code: Select all
<ItemTemplate>
<asp:PlaceHolder ID="ProductQuantityPanel" runat="server"
Visible='<%#((OrderItemType)Eval("OrderItemType") == OrderItemType.Product)%>'>
<cb:updowncontrol CssClass="HiddenPanel" MinValue="0" id="Quantity" runat="server" MaxValue="32767"
DownImageUrl="~/images/down.gif" UpImageUrl="~/images/up.gif" Columns="2" MaxLength="5"
Text='<%# Eval("Quantity") %>' onFocus="this.select()"></cb:updowncontrol>
</asp:PlaceHolder>
<asp:PlaceHolder ID="OtherQuantityPanel" runat="server" Visible='True' EnableViewState="false">
<%#Eval("Quantity")%>
</asp:PlaceHolder>
</ItemTemplate>