Rank: Member
Joined: 6/24/2009(UTC) Posts: 15
|
I am currently trying to fix all the problems that might occur on my store before i finally get it up and running so i have been testing some things. and i get an Object reference not set to an instance of an object error myself when trying to make the quantity lower than they minimum quanitity instead of it outputting the error. It seems to work fine when i add it to cart at the minumum quantity and then try and change it in cart but not from the product page.
This is what the error i get says:
Descript<b>ion: </b>[color=#ffffcc>
[tr ][td ]<CODE> Line]Line 156: If quantity < LocalProduct.MinimumQty Then <FONT color=red>Line 157: MessageBox.ShowError(Content.SiteTerms.ReplaceTermVariable(Content.SiteTerms.GetTerm("ProductPageMinimumQuantityError"), "quantity", LocalProduct.MinimumQty.ToString())) [/color]Line 158: args.IsValid = False Line 159: End If</PRE>[/code][/td][/tr]</TABLE> Source File: localhost\BVModules\ProductTemplates\Bvc5\Product.aspx.vb Line: 157
Stack Trace:
[table width="100%" bgColor=#ffffcc][tr ][td ]<CODE> [NullReferenceException: Object reference not set to an instance of an object.] BVModules_ProductTemplates_Bvc5_Product.AddToCartClicked(AddToCartClickedEventArgs args) in C:\inetpub\wwwroot\NeutrikConnectors\BVModules\ProductTemplates\Bvc5\Product.aspx.vb:157 BVModules_Controls_AddToCartButton.btnAdd_Click(Object sender, ImageClickEventArgs e) in C:\inetpub\wwwroot\NeutrikConnectors\BVModules\Controls\AddToCartButton.ascx.vb:42 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +97 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +160 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980 </PRE>[/code][/td][/tr][/table] Thank you for any help you might have
|
|
|
|
Rank: Member
Joined: 4/10/2009(UTC) Posts: 120 Location: Mechanicsville, VA
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Did anyone ever answer this? I am having same issue. |
Tim
|
|
|
|
Rank: Member
Joined: 9/20/2006(UTC) Posts: 92
|
Add the following code to BVModules\ProductTemplates\Bvc5\Product.aspx [code] <uc1:MessageBox ID="MessageBox" runat="server" /> [color=gray> <HR] [/color] Wallace Miller -- Narrowpath Design
Providing installation, custom development, and design services for BVC5 sites 24/7 tech support and consultation service available for BVSoftware E-Commerce 760.728.8679 (phone) [email protected]
|
|
|
|
Rank: Member
Joined: 4/10/2009(UTC) Posts: 120 Location: Mechanicsville, VA
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
That worked. That you so much Wallace!! In my case it was UC10, but alas, it is functioning now. |
Tim
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.