[Skip to main content](#vessel-content)

#   How do I change shipping cost based on a formula?

##

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 10 months ago [\#326790](#326790) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#326790 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")* was created by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.10
-- PHP version -- : 7.4.13
-- Browser(s) name and version -- : Edge

Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc.
Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

5 years 10 months ago [\#326837](#326837) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#326837 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hello,

Firstly, can you give us more information about :
- how do you exactly want to configure your shippings throush some screenshots for example
- what do you exactly mean by "boxes", are they products and do they have a defined weight / dimensions ?

Thank you,
Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 10 months ago [\#326880](#326880) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#326880 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

We are selling bottled beers, in a pack of 12, so each box will have a weight (10kgs), and dimensions(Width 20.9cm,Height 20.5cm,Depth 20.2cm
). Our courier charges by weight, so 1 or 2 boxes is 7.99, 3 or 4 is 14.98 etc.
Will there be some up to date documentation soon, as I'm guessing the 'Formula' field may do what I need, but I have found zero information about it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

5 years 10 months ago [\#326899](#326899) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#326899 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hello,

If your courier charge a fixed price by weight, the solution will be to set the "Formula" filed to : {weight} * PRICE_PER_WEIGHT
You'll just have to replace PRICE_PER_WEIGHT by the price per weight.

Else, the best solution will probably be to directly use that plugin which will do the job :
[ www.hikashop.com/marketplace/product/136...ghts-by-obsidev.html](https://www.hikashop.com/marketplace/product/136-shipping-weights-by-obsidev.html)

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 10 months ago [\#327083](#327083) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#327083 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Thanks for the help Mohamed! Can you point me to the documentation that tells me which variables, and expressions can be used in the formula field please?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

5 years 10 months ago -  5 years 10 months ago [\#327117](#327117) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#327117 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hello,

This input is new with the HikaShop **4.4**, and unfortunately we are a little late on documentation, let's try to detail this and give you some concrete case.
List of tags :
**{price}** = Shipping price
**{volume}** = Current volume of the order
**{weight}** = Current weight in the order
**{quantity}** = Current quantity of product in the cart

From this you can create this kind of :
**Example :**
{weight}*10-{quantity}
Which means for a weight of 5 kg and 3 products which leads to this operation :
**5 \* 10 - 3 =&gt; 47 €**
**OR**
Let's say that you have set in your shipping method a price of 2 € per Kg
Example :
{price}*{weight}
**2 \* 5 =&gt; 10 €**

Hope this will help you to achieved what you need.
Regards

Last edit: 5 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [evansnp](/forum/user/59837-evansnp "View evansnp's Profile"), [levelup](/forum/user/61801-levelup "View levelup's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 10 months ago [\#327160](#327160) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#327160 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hi Phillip! Perfect! that's really useful ![:-)](/media/kunena/emoticons/9.png ":-)")

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 8 months ago [\#329175](#329175) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#329175 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

I've got a bit further by using the information that you kindly gave me, but I need to be able to use some basic maths functions like INT, MOD, CEIL etc. My problem is that our shipping company charges in units of weight i.e. 7.50 per 25Kg (or part of). Our boxes weigh 10Kg each, so 2 boxes could be shipped for 7.50, but 3 boxes would be 15.00 etc. The formula that I would like to achieve is:

**ceil({weight}/25) \* 7.5**

Is this possible?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

5 years 8 months ago [\#329205](#329205) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#329205 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hi,

I checked the code of the library we're using for that and it doesn't seem to support ceil.
However, I think you could add that easily.
In the file administrator/components/com_hikashop/inc/expression.php you have this list of supported PHP functions: Code:

var $fb = array( // built-in functions 'sin','sinh','arcsin','asin','arcsinh','asinh', 'cos','cosh','arccos','acos','arccosh','acosh', 'tan','tanh','arctan','atan','arctanh','atanh', 'sqrt','abs','ln','log');

So I think you could just add the functions you need in there providing they only use one parameter.
And while you can't cast numbers into integers, you can use the intval() function for that so you could also add in that same array of allowed functions.
Modulo is supported since you can use the % operator.

Let us know how it goes so that we could add these extra functions to the list so that you won't have issues updating in the future.

The following user(s) said Thank You: [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 8 months ago [\#329213](#329213) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#329213 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Thanks Nicolas, I'll give it a try.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 8 months ago [\#329214](#329214) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#329214 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

That's worked perfectly thanks! I've only added 'ceil' as that's the only one I needed. Thanks for the remarkably quick solution ![:-)](/media/kunena/emoticons/9.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

5 years 8 months ago [\#329224](#329224) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#329224 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hi,

Thanks for your feedback. We'll add that to the next version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 2 months ago [\#334846](#334846) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#334846 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hi Support. Did this feature get added to the new release?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

5 years 2 months ago [\#334848](#334848) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#334848 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Hi,

Yes. And not just ceil. We've added all these functions to it:
'ceil', 'intval', 'floor', 'round', 'exp'

The following user(s) said Thank You: [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")**
- [![evansnp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59837-evansnp "View evansnp's Profile") Topic Author
- [ Offline](/forum/user/59837-evansnp)

Less More

- Posts: 13
- Thank you received: 1
-
-

5 years 2 months ago [\#334859](#334859) by [evansnp](/forum/user/59837-evansnp "View evansnp's Profile")  Replied by *[evansnp](/forum/user/59837-evansnp "View evansnp's Profile")* on topic *[How do I change shipping cost based on a formula?](/forum/28-shipping-methods/901388-how-do-i-change-shipping-cost-based-on-a-formula#334859 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.10 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Edge  Our shipping company will charge 7.99 for shipping 1 or 2 boxes, 14.98 for 3 to 4 ... etc. Using the manual plugin, how do I do this? I've noticed a 'Formula' field, but all of the documentation doesn't seem to be up to date with the 4.4.0 release.")*

Thanks a million! I'll update my site then ![:-)](/media/kunena/emoticons/9.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3NoaXBwaW5nLW1ldGhvZHMvOTAxMzg4LWhvdy1kby1pLWNoYW5nZS1zaGlwcGluZy1jb3N0LWJhc2VkLW9uLWEtZm9ybXVsYT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.497 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
