<p>Yes this is definitely possible.</p>
<p>We don't use any of Commerce's in-built shipping stuff - fields or calculation, as it's too limited for our needs (not Commerce's fault - we have very complicated shipping requirements!).</p>
<p>You will want to write yourself a custom module with either a full custom shipping calculator, or an adjuster for shipping.</p>
<p>You'd use an adjuster if you don't need to present any options to the user, and a full shipping calculator if you do.  If the latter, as long as you implement the interfaces for Rules and Methods, you can do just about anything you wants and present it to the user any way you want.  Can be a little tough to get going, but is very flexible once you've got it working.</p>
<p>Docs for this are here:
<a href="https://craftcms.com/docs/commerce/3.x/shipping-methods.html" rel="nofollow noreferrer">https://craftcms.com/docs/commerce/3.x/shipping-methods.html</a></p>

CC BY-SA 4.0
2020-12-11T10:22:45.520Z
Ok, thanks Jeremy for you response (:
sorry for my delay in replying
David Saenz
CC BY-SA 4.0
2020-12-04T23:59:55.563Z
2020-12-11T21:44:56.540Z
2020-12-11T21:44:56.540Z
Jeremy Daalder
<p>One of the shipping companies that my client will use works by distance.
This company offers an api where you tell the pickup address and the shipping address. You also specify what type of package to carry (small or medium).
When I have a complete address, I make the call to the API of this company and it returns the shipping cost to me.</p>
<p>Given the particularity of this shipping company, I would like to be able to specify the price of the shipping cost without depending on any shipping method of the system itself. Is this possible?</p>
<p>thanks in advanced</p>

<craft-pro><plugin-craftcommerce3><shipping>
Custom shipping cost
# Custom shipping cost

(Asked by: username_0 on 2020-12-02)

One of the shipping companies that my client will use works by distance.
This company offers an api where you tell the pickup address and the shipping address. You also specify what type of package to carry (small or medium).
When I have a complete address, I make the call to the API of this company and it returns the shipping cost to me.

Given the particularity of this shipping company, I would like to be able to specify the price of the shipping cost without depending on any shipping method of the system itself. Is this possible?

thanks in advanced

**Tags:** craft-pro, plugin-craftcommerce3, shipping


---

## 1 answers

### Answer by username_1 on 2020-12-04. Score: 2

Yes this is definitely possible.

We don't use any of Commerce's in-built shipping stuff - fields or calculation, as it's too limited for our needs (not Commerce's fault - we have very complicated shipping requirements!).

You will want to write yourself a custom module with either a full custom shipping calculator, or an adjuster for shipping.

You'd use an adjuster if you don't need to present any options to the user, and a full shipping calculator if you do. If the latter, as long as you implement the interfaces for Rules and Methods, you can do just about anything you wants and present it to the user any way you want. Can be a little tough to get going, but is very flexible once you've got it working.

Docs for this are here:
<https://craftcms.com/docs/commerce/3.x/shipping-methods.html>

> **Comments:**
> **username_0**: Ok, thanks Jeremy for you response (: sorry for my delay in replying  

---

