Rank: Member
Joined: 2/15/2007(UTC) Posts: 37
|
When a product has multiple product variations and a specific combination is not available and error occurs when selecting the N/A combination from the storefront.
For example, create two choices (drop-down) SIZE and COLOR with the options of Small, Large; White, Blue respectively. Once you save the next page displays the 4 combinations with check-boxes. Uncheck Small Blue: Small White *available* Small Blue *NOT AVAILABLE* Large White *available* Large Blue *available*
Once you save the choice combination and View In Store, select the Small Blue option. Depending on the product template you have selected by default you might or might not receive the notification that the product combination is not available. After that combination has been selected, you cannot add that item to the cart or wishlist without a few different errors displaying.
We have a custom product template that displays the "Currently Selected Combination Is Not Available." message, but 1. the message will not go away after deselecting the NA combination and 2. when attempting to add the item to the cart get an "Invalid postback or callback argument." error.
If using BVC5 template, you will not get any message notifying you of the NA product combination and when attempting to add the item to the cart or wishlist get the error:
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 133: Else Line 134: PricePanel.Visible = False Line 135: MessageBox.ShowInformation("Currently Selected Combination Is Not Available.") Line 136: End If Line 137:
Source File: ***********\Bvc5\BVModules\ProductTemplates\Bvc5\Product.aspx.vb Line: 135
We have confirmed this error on an "out of the box" version of BVC5 SP2 as well as our modified version.
Thank you in advance for your help and prompt resolution to this issue, Alex
|
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hello Alex.
It seems to be an issue with the message box control on the page. We should have a fix posted on Tuesday. |
|
|
|
|
Rank: Member
Joined: 2/15/2007(UTC) Posts: 37
|
Nick, Just to make sure it is clear, the error is not solely tied to the message box control. We resolved that issue and are still experiencing problems. 1. When the NA combination is selected, the error message appears, yet when unselected it remains. 2. After selecting a NA combination, the following error shows when trying to Add an item to the cart or wishlist.
Server Error in '/Bvc5' Application. Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Feel free to contact me directly if you need further details, Alex |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Sorry for the delay, I am looking into this now and will get a fix out shortly. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 7/17/2007(UTC) Posts: 24
|
Was a fix ever released for this and if so where do i find it ?
I have been building a prototype site based on BVC5 SP2 and i have a similar problem when i have 2 drop down boxes and a disabled combination. I don't get an error but i don't get the "Currently Selected Combination Is Not Available" message either. If someone selects an invalid combination, nothing happens - but it looks like its been accepted because the last combination and the price panel is still shown.
I tried debugging the code but it never seems to hit the code which might throw the "Currently Selected Combination Is Not Available" because when changing variant on the web page (once the default combination has been shown) this part of the code is excluded by the "if not page.ispostback " condition. Presumably the client side ajax code is doing the updates rather than the main pageload event getting called.
Thanks
Richard
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
I'm reading through this thread and I believe I'm experiencing this. Has there been a fix established for this? http://forums.bvcommerce.com/default.aspx?f=78&m=50538 is the problem I'm experiencing. No error message appearing when no choices are selected and add to cart button pressed. |
|
|
|
|
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.