BV Commerce Forum
»
BV Commerce Support
»
General Support
»
variant weight, height, width, and length not used in calculation
Rank: Member
Joined: 9/30/2003(UTC) Posts: 53
|
I believe I found a strange bug regarding product variants. I discovered that the variants always use the core product's values for the shipping parameters. It's driving me nuts. As soon as the parentID is set in the ConvertDataRow() function, the product variant values instantly change to the parent product's values. Because of this, shipping is not computed correctly. I can't seem to find an event that is causing this and stepping through the code doesn't indicate that there is any event being raised when the parentID is changed for a variant.
Has this been looked into? Can anyone reproduce this? Any solutions?
|
|
|
|
Rank: Member
Joined: 9/30/2003(UTC) Posts: 53
|
I think I got it figured out. The weight was changed for the variant (just didn't look closely enough). I'm changing the Properties in the class for the other 3 values to pull the variant's shipping dimensions which are not editable in the admin section (soon they will be and this issue will be resolved). :smile:
|
|
|
|
Rank: Member
Joined: 9/30/2003(UTC) Posts: 53
|
Wow, I discovered that to add a single product to the cart takes 29 trips to the database. Simply stepping through the debugger and putting a break on ConvertDataRow function which was hit 29 times before the cart page finally displayed it's one and only product with 2 variants. Maybe you guys should not use the Microsoft Recommended Practices (they are against pointers, which I feel is an incredibly bad suggestion - they are trading performance for stability, but if you do pointers right, it's actually easier to debug)
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
miracle cat,
Which service pack are you running. There was a lot of optimization done to the cart page later.
|
|
|
|
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.