Hello, my name is Mirella and I am from Italy. Please bear with me as I communicate through Google Translate. I am facing some issues with shipping costs while using Simplecart. My customers have varying shipping costs based on the items they purchase. The website will be selling bottles of wine that come in different weights. I tried creating a function with your assistance to calculate shipping costs, but there seems to be an error when multiplying the weight by the quantity. It's not working as expected. I apologize for any confusion, as this is my first time writing on this platform and English is not my strong suit.
me.shipping = function()
{
var totalWeight = 0;
totalWeight += item.weight*item.quantity;
if(totalWeight <= 3000){
return 19.00;
}
if((totalWeight >= 10000)) {
return 23.00;
}
if((totalWeight <= 20000)){
return 24.00;
}
if((totalWeight <= 30000)){
return 26.00;
}
if((totalWeight <= 50000)){
return 32.00;
}
if((totalWeight <= 75000)){
return 35.00;
}
if((totalWeight <= 100000)){
return 39.00;
}
}