# Shipping price by initial weight and display total price

## Recommended Posts

Hello.

I'm trying to achieve shipping cost calculated by initial weight and not total weight.

Example:

Product X Weight 1,5kg

Product Y Weight 3kg

Shipping cost from 0 to 2kg is 5\$ and shipping cost from 2 to 5kg is 8\$

Now, when I add product X to cart, it use 0 to 2kg range and shipping cost for one product is 5\$. When I add another product X, I want to multiply cost ignoring total weight so for two X products it will be 10\$ for three X products it will be 15\$, etc..
When I add product Y to cart, it will use 2 to 5kg range and shipping cost for one product is 8\$ but when I add three of this product it will cost 24\$ (8\$*3).

And I want presta to display total price in product page and cart (price of product + shipping price).

Is there a way or some or module to do that?

Regards.

##### Share on other sites

need to customize classes/Cart.php/Carrier.php

## Create an account

Register a new account