shipping by weight

is there any setting for shipping by weight with rounding up function in cscart? for example



if the total weight of products in cart is 1.1 lbs and the shipping rate is $3 per lbs. what i want to be the result is 2 lbs x $3 = $6



thank you

Hello Tecotepo,



Yes, there is a way. In this case I advise you to follow the instruction from this article in our Knowledge Base: CS-Cart Documentation — CS-Cart 4.15.x documentation





Anastasiya Kozlova

CS-Cart Support Team

yes, i set order weight in that way. but what cs-cart do is



weight * per_lbs_shipping_cost



but what i need is the



ceil(weight) * per_lbs_shipping_cost



for example



total weight in cart is 1.1 lbs and the shipping cost is $3 per lbs



in cs-cart the result is



1.1 * 3 = $3.3



what i need is



ceil(1.1) * 3 = $6



any solution for this?



thank you


[quote name='CS-Cart Support team' timestamp='1311330242' post='117969']

Hello Tecotepo,



Yes, there is a way. In this case I advise you to follow the instruction from this article in our Knowledge Base: CS-Cart Documentation — CS-Cart 4.15.x documentation





Anastasiya Kozlova

CS-Cart Support Team

[/quote]

Hello tecotepo,



I am sorry for misunderstanding. Unfortunately, there is no way to configure the default CS-Cart store to work in this way. Some code modifications are required to implement this feature. We would be happy to assist you in this matter within our technical support service. Please contact us via Customer Help Desk if you have support credits or an active support period.





Pavel Zyukin

CS-Cart Support team

@tecotepo here is my solution



#cs-cart v3.0.3

on core/fn.cart.php

search for [color=#ff0000]function fn_calculate_shipping_rate($package, $rate_value)[/color]

and above [color=#ff0000]$rate_value = unserialize($rate_value);[/color]

you add [color=#008000]$package['W'] = ceil($package['W']);[/color]



works for me just fine