• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

jkrulewi
#1 Posted : Tuesday, June 30, 2009 7:06:19 AM(UTC)
jkrulewi

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 &lt; 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
ttillman
#2 Posted : Sunday, December 20, 2009 5:34:50 PM(UTC)
ttillman

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
Narrowpath
#3 Posted : Sunday, December 20, 2009 8:29:47 PM(UTC)
Narrowpath

Rank: Member

Joined: 9/20/2006(UTC)
Posts: 92

Add the following code to BVModules\ProductTemplates\Bvc5\Product.aspx


[code]
&lt;uc1:MessageBox ID="MessageBox" runat="server" /&gt;

[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]
ttillman
#4 Posted : Monday, December 21, 2009 10:10:08 AM(UTC)
ttillman

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012