BV Commerce Forum
»
BV Commerce Support
»
General Support
»
BUG: editing a backordered product from the cart (5.3.2-5.4)
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
When editing a backordered item from the cart (i.e. clicking the product from the cart), both the Add to Cart and Save buttons are shown. The bug is in the /BVModules/Controls/AddToCartButton.ascx.vb file. What's happening is the CheckForBackOrder() function is un-hiding the Add to Cart button after it has been hidden in Page_Load. Normally this is the correct behavior except when you are editing a product from the cart. Below is the code fix that we implemented. An additional If statement was added around line 33 (denoted below with a <DEVELISYS> comment). Code: Private Sub CheckForBackOrder() If Not WebAppSettings.DisableInventory Then If TypeOf Me.Page Is BaseStoreProductPage Then Dim p As BaseStoreProductPage = CType(Me.Page, BaseStoreProductPage) Select Case p.LocalProduct.InventoryStatus Case Catalog.ProductInventoryStatus.NotAvailable btnAdd.Visible = False btnAdd.UpdateAfterCallBack = True Case Else If Request.QueryString("LineItemId") Is Nothing Then ' <DEVELISYS> bug fix to keep btnAdd hidden when editing a cart item </DEVELISYS> btnAdd.Visible = True btnAdd.UpdateAfterCallBack = True End If End Select End If End If End Sub
|
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
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.