В документации SimpleCart существует множество способов, позволяющих настроить стоимость доставки.В частности, я увидел, что почти точно то, что я думаю (сообщение было трудно прочитать), вы хотите:
CartItem.prototype.shipping=function(){
// we are using a 'size' field to calculate the shipping,
// so we first make sure the item has a size
if(this.size){
if( this.size == 'small' ){
return this.quantity*5.00;
} else if( this.size == 'large') {
return this.quantity*7.50;
} else {
return this.quantity*10.00;
}
} else {
// use a default of $2.00 per item if there is no 'size' field
return this.quantity*2.00;
}
}
Это показывает, как вы можете редактировать расчет доставки.Этот пример, как и многие другие, доступен по документации их сайта по адресу: http://simplecartjs.com/documentation.html