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

Notification

Icon
Error

Dan @ Wolfe
#1 Posted : Friday, June 12, 2009 3:35:40 PM(UTC)
Dan @ Wolfe

Rank: Member

Joined: 8/8/2007(UTC)
Posts: 298

I had been using SP3.2 and using the "BVC2004Inventory" Product Template that was available here as a download.

Well i just completed the upgrade to 5.5 and now I'm getting an error when viewing products that are using the "BVC2004Inventory" Product Template. If i change to the "BVC 2004 Layout" Product Template then the product displays just fine. They are both unmodified files.

here is a copy of the error I'm getting. I seems like it has something to do with the code that displays the inventory #'s?



Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30390: 'BVSoftware.Bvc5.Core.Catalog.ProductInventory.Private Shared Function FindByProductId(bvin As String) As BVSoftware.Bvc5.Core.Catalog.ProductInventory' is not accessible in this context because it is 'Private'.

Source Error:



Line 77:
Line 78: 'New Code
Line 79: Dim inv As Catalog.ProductInventory = Catalog.ProductInventory.FindByProductId(Me.LocalProduct.Bvin)
Line 80: Me.QuantityAvailableLabel.Text = FormatNumber(inv.QuantityAvailable, 0, , 0).ToString
Line 81: 'End New Code


Source File: c:\inetpub\wwwroot\BVtest\BVModules\ProductTemplates\BVC2004Inventory\Product.aspx.vb Line: 79





Any help or information would be greatly appreciated.

Dan
Dan
Richard
#2 Posted : Friday, June 12, 2009 4:25:37 PM(UTC)
Richard

Rank: Member

Joined: 4/28/2003(UTC)
Posts: 141

Dan try this but back up your page first. open BVModules\ProductTemplates\BV2004_Layout\Product.aspx.vb around line 77 you should see this line [2]
Public
[/2]
[2]Overrides[/2][2]Sub[/2][2]ByVal[/2][2]As[/2][2]Boolean[/2][2]

'New Code
[/2]
[2]'Dim inv As Catalog.ProductInventory = Catalog.ProductInventory.FindByBvin(Me.LocalProduct.Bvin)[/2][2]Dim[/2][2]As[/2][2]Me[/2][2]Me[/2][2]'End New Code[/2]

[2][/2]

[2]Find byproductId was changed to [color=black>FindbyBvin[/2]</FONT>

Be sure and back up first.[/color][/2][/color]

[2]Had to make these changes to my BV5.4version [/2]

[2]Richad
[/2]
</FONT>
Dan @ Wolfe
#3 Posted : Friday, June 12, 2009 9:42:55 PM(UTC)
Dan @ Wolfe

Rank: Member

Joined: 8/8/2007(UTC)
Posts: 298

Richard:

Thanks, that solved the error.

Thanks

Dan
Dan
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