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

Notification

Icon
Error

jbailey
#1 Posted : Friday, September 26, 2008 3:04:35 PM(UTC)
jbailey

Rank: Member

Joined: 1/26/2007(UTC)
Posts: 57

We have been having some problems with product weight in product variations.


Firstly, I should mention that using kilograms for product weight makes life very difficult. It would have been much easier to work in grams! As an example, if a product is 3 grams, we have to input a weight of 0.003. It is very easy to get the number of zeros wrong. However, I think it is too late to change this now in BVC.



Secondly, when editing product variations, it rounds the weight to 2 decimal places. Therefore, 0.003 becomes 0.00 in the product variations when you enter the value by typing it in. However, if you enter the weight in product variations by clicking the little green arrow in the main product edit page, the weight is entered into the database correctly even though it shows 0.00 on the product variations page.



This bug has caused the total order shipping weight and therefore shipping cost to be calculated as zero in the store, which has quite a lot of very light-weight products!



Jenny
Jenny Bailey
Discover IT (UK) Ltd
www.discoverit.co.uk
jbailey
#2 Posted : Wednesday, October 15, 2008 7:40:44 AM(UTC)
jbailey

Rank: Member

Joined: 1/26/2007(UTC)
Posts: 57

If anyone is interested, you can fix this bug by changing this line of code

<SPAN lang=EN-GB style="COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB">Dim<SPAN lang=EN-GB style="FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"> weight <SPAN style="COLOR: blue">As <SPAN style="COLOR: blue">String = product.ShippingWeight.ToString(<SPAN style="COLOR: #a31515">"N", WebAppSettings.SiteCulture)<SPAN lang=EN-GB style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-GB"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

to this:

<SPAN lang=EN-GB style="COLOR: blue; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB">Dim<SPAN lang=EN-GB style="FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-GB"> weight <SPAN style="COLOR: blue">As <SPAN style="COLOR: blue">String = Math.Round(product.ShippingWeight, 3)<SPAN lang=EN-GB style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-GB"><o:p></o:p>



in BVAdmin/Catalog/ProductCombinationsEdit.aspx.vb.



The ToString was truncating to 2 decimal places.



I hope this will be included in the next bugfix release.



Jenny
Jenny Bailey
Discover IT (UK) Ltd
www.discoverit.co.uk
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