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

#   Delivery cost depending on categories

##

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 6 months ago -  13 years 6 months ago [\#101656](#101656) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#101656 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")* was created by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")*

I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo).
How can i arrange for each category to have its own delivery cost and amount of minimal order?

For example:

| Category | Delivery cost | Minimal order |
|---|---|---|
| AUTOMOBILE | 15$ | 300$ |
| COMPUTING | 25$ | 150$ |
| FASHION | 7$ | 100$ |

For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.

That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.

Last edit: 13 years 6 months ago by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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
-
-
-

13 years 6 months ago [\#101667](#101667) 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 *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#101667 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Hi,

1. Regarding the delivery cost per category, the best solution would be to :
- Create 3 shipping methods (one shipping method per category)
- Use the "**Use the prices per product**" option of your manual shipping method.
- Set a price for each and a minimum quantity products through the "**Shipping prices**" tab of each product's page regarding their category.

2. Regarding the maximum order price, I think that you'll just have to set a minimum price in your manual shipping methods and the users won't be able to finish the checkout under that price.

Hope this will help you a little.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 6 months ago [\#101824](#101824) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#101824 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> Mohamed Thelji wrote: Hi,
>
> 1\. Regarding the delivery cost per category, the best solution would be to :
> \- Create 3 shipping methods (one shipping method per category)
> \- Use the "**Use the prices per product**" option of your manual shipping method.
> \- Set a price for each and a minimum quantity products through the "**Shipping prices**" tab of each product's page regarding their category.
>
> 2\. Regarding the maximum order price, I think that you'll just have to set a minimum price in your manual shipping methods and the users won't be able to finish the checkout under that price.
>
> Hope this will help you a little.

If I set a price for each products and then add two products from one category, total delivery cost will count twice. But should count once despite how many products I added from this category, one or all. ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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
-
-
-

13 years 6 months ago [\#101999](#101999) 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 *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#101999 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Ok, but unfortunately you cannot for the moment restrict shipping methods based on categories.
You could set a volume/weight for the products in that category and use volume/weight restrictions in order to choose what shipping method you'll display regarding products categories. Moreover I think that the best solution was to use the prices per product option.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 6 months ago [\#103792](#103792) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#103792 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Edit hikashop_category table. Add fields min_sum (for the minimum amount) and price_delivery (for the amount of delivery price for that category).

Then edit components/com_hikashop/views/checkout/tmpl/cart.php

Add there:
Code:

&lt;?php $session =&amp; JFactory::getSession(); $session_id=$session-&gt;getID(); ?&gt; &lt;?php $link = mysql_connect("localhost", "user", "pass") or die("Could not connect : " . mysql_error()); mysql_query ("SET CHARACTER SET 'utf8'", $link); mysql_select_db("db_name") or die("Could not select database"); $query = 'SELECT DISTINCT hje52_hikashop_category.category_name, hje52_hikashop_category.min_sum, hje52_hikashop_category.price_delivery FROM hje52_hikashop_product, ((hje52_hikashop_cart INNER JOIN hje52_hikashop_cart_product ON hje52_hikashop_cart.cart_id = hje52_hikashop_cart_product.cart_id) INNER JOIN hje52_hikashop_product_category ON hje52_hikashop_cart_product.product_id = hje52_hikashop_product_category.product_id) INNER JOIN hje52_hikashop_category ON hje52_hikashop_product_category.category_id = hje52_hikashop_category.category_id WHERE (((hje52_hikashop_cart.session_id)="'.$session_id.'"));'; $query2 = 'SELECT Sum(hje52_hikashop_cart_product.cart_product_quantity*hje52_hikashop_price.price_value) AS PRZ, hje52_hikashop_category.min_sum FROM hje52_hikashop_cart INNER JOIN (((hje52_hikashop_cart_product INNER JOIN hje52_hikashop_price ON hje52_hikashop_cart_product.product_id = hje52_hikashop_price.price_product_id) INNER JOIN hje52_hikashop_product_category ON hje52_hikashop_cart_product.product_id = hje52_hikashop_product_category.product_id) INNER JOIN hje52_hikashop_category ON hje52_hikashop_product_category.category_id = hje52_hikashop_category.category_id) ON hje52_hikashop_cart.cart_id = hje52_hikashop_cart_product.cart_id WHERE (((hje52_hikashop_cart.session_id)="'.$session_id.'")) GROUP BY hje52_hikashop_category.category_id, hje52_hikashop_category.min_sum; '; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $result2 = mysql_query($query2) or die("Query failed : " . mysql_error()); ?&gt; &lt;?php while ($row = mysql_fetch_array($result2, MYSQL_ASSOC)) { if ($row['min_sum'] &gt; $row['PRZ']) { echo "&lt;div class=\"error_sum\"&gt;The total of your order is too low for all the possible shipping methods.&lt;/div&gt;"; } } ?&gt; &lt;?php $col2_sum = 0; print "&lt;table class=\"chekout_price_table_th\"&gt;\n"; print "&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Minimum amount&lt;/th&gt;&lt;th&gt;Delivery cost&lt;/th&gt;&lt;/tr&gt;\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $col2_sum += $line['price_delivery']; print "\t&lt;tr&gt;\n"; foreach ($line as $col_value) { print "\t\t&lt;td class=\"chekout_price_table\"&gt;$col_value&lt;/td&gt;\n"; } print "\t&lt;/tr&gt;\n"; } print "&lt;/table&gt;\n"; mysql_free_result($result); mysql_free_result($result2); mysql_close($link); ?&gt;

And Code:

&lt;td class="hikashop_cart_total_value"&gt; &lt;span class="hikashop_checkout_cart_final_total"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax+$col2_sum,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt;

Now it count delivery for every category separately.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 6 months ago [\#103835](#103835) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#103835 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Can you advice, where I shold past $col2_sum variable, to calculate it in admin panel too?
How can I insert it in hikashop_order.order_shipping_price field for the order? In which file calculating delivery cost?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

13 years 6 months ago [\#103851](#103851) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#103851 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

It would be better to modify the plugins/hikashopshipping/manual/manual.php file to handle custom shipping fee calculation in the onShippingDisplay function rather than trying to edit all the code of HikaShop which will use the shipping price.
Because with the way you're modifying the code, your payment methods won't get the shipping price. The emails neither, the invoice neither and the backend edition neither etc.

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

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

13 years 5 months ago [\#104092](#104092) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#104092 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> nicolas wrote: It would be better to modify the plugins/hikashopshipping/manual/manual.php file to handle custom shipping fee calculation in the onShippingDisplay function rather than trying to edit all the code of HikaShop which will use the shipping price.
> Because with the way you're modifying the code, your payment methods won't get the shipping price. The emails neither, the invoice neither and the backend edition neither etc.

Thanks. After Code:

foreach($dbrates as $k =&gt; $rate){ if($rate-&gt;shipping_type=='manual' &amp;&amp; !empty($rate-&gt;shipping_published)){ $rates[]=$rate;

add Code:

$rates[0]-&gt;shipping_price=$col2_sum;

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#142829](#142829) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#142829 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> nicolas wrote: It would be better to modify the plugins/hikashopshipping/manual/manual.php file to handle custom shipping fee calculation in the onShippingDisplay function rather than trying to edit all the code of HikaShop which will use the shipping price.
> Because with the way you're modifying the code, your payment methods won't get the shipping price. The emails neither, the invoice neither and the backend edition neither etc.

What file I should edit in Hikashop 2.2.3 version? There is no onShippingDisplay function now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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
-
-
-

12 years 9 months ago [\#142855](#142855) 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 *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#142855 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Hi,
The file that you'll ave to edit will be the "*administrator\\components\\com\_hikashop\\helpers\\**helper.php***" file, but note that the "onShippingDisplay" is generic and used for each shipping method, so a solution can be to copy the onShippingDisplay of the file helper.php through your manual.php and edit it as you want.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143162](#143162) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143162 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> Mohamed Thelji wrote: Hi,
> The file that you'll ave to edit will be the "*administrator\\components\\com\_hikashop\\helpers\\**helper.php***" file, but note that the "onShippingDisplay" is generic and used for each shipping method, so a solution can be to copy the onShippingDisplay of the file helper.php through your manual.php and edit it as you want.

Can you help me please?
I copy my code from manual.php to helper.php, but it don't work anymore.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago -  12 years 9 months ago [\#143163](#143163) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143163 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

In 2.1.1 I inserted in function **onShippingDisplay(&amp;$order,&amp;$dbrates,&amp;$usable\_rates,&amp;$messages)** my SQL query at the beginning, and modify (add line) Code:

foreach($dbrates as $k =&gt; $rate){ if($rate-&gt;shipping_type=='manual' &amp;&amp; !empty($rate-&gt;shipping_published)){ $rates[]=$rate; $rates[0]-&gt;shipping_price=$col2_sum; } }

In 2.2.3 it don't work.

Delivery price output was **echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;shipping-&gt;shipping\_price,$this-&gt;shipping-&gt;shipping\_currency\_id);**. Now I look it's **$shipping\_price += $shipping-&gt;shipping\_price;**
Maybe in 2.2.3 I should change something else?

Last edit: 12 years 9 months ago by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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
-
-
-

12 years 9 months ago [\#143221](#143221) 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 *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143221 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Hello,
Can you show me how did you set your "onShippingDisplay" function, so that I will maybe be able to understand the issue that you are having ?

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143271](#143271) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143271 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> Mohamed Thelji wrote: Hello,
> Can you show me how did you set your "onShippingDisplay" function, so that I will maybe be able to understand the issue that you are having ?

I did as I did in previous version. Edit helper.php instead manual.php.

Inseart my query at the beginning. Code:

function onShippingDisplay(&amp;$order, &amp;$dbrates, &amp;$usable_rates, &amp;$messages) { /* START Harry Delivery*/ $session =&amp; JFactory::getSession(); $session_id=$session-&gt;getID(); $link = mysql_connect("localhost", "*user*", "*pass*") or die("Could not connect : " . mysql_error()); mysql_query ("SET CHARACTER SET 'utf8'", $link); mysql_select_db("*BD*") or die("Could not select database"); $query = 'SELECT DISTINCT jqp92_hikashop_category.category_name, jqp92_hikashop_category.min_sum, jqp92_hikashop_category.price_delivery FROM jqp92_hikashop_product, ((jqp92_hikashop_cart INNER JOIN jqp92_hikashop_cart_product ON jqp92_hikashop_cart.cart_id = jqp92_hikashop_cart_product.cart_id) INNER JOIN jqp92_hikashop_product_category ON jqp92_hikashop_cart_product.product_id = jqp92_hikashop_product_category.product_id) INNER JOIN jqp92_hikashop_category ON jqp92_hikashop_product_category.category_id = jqp92_hikashop_category.category_id WHERE (((jqp92_hikashop_cart.session_id)="'.$session_id.'"));'; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $col2_sum = 0; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$col2_sum += $line['price_delivery'];} mysql_free_result($result); mysql_close($link); /* END Harry Delivery*/ $config =&amp; hikashop_config();

And
Code:

foreach($dbrates as $k =&gt; $rate) { if($rate-&gt;shipping_type == $this-&gt;name &amp;&amp; !empty($rate-&gt;shipping_published)) { $rates[] = $rate; $rates[0]-&gt;shipping_price=$col2_sum; } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

12 years 9 months ago [\#143360](#143360) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143360 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Instead of:
$rates[] = $rate;
$rates[0]-&gt;shipping_price=$col2_sum;

you should rather do:
$rate-&gt;shipping_price=$col2_sum;
$rates[] = $rate;

For the rest, it looks ok to me.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143371](#143371) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143371 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

In options
[ ![h19c4588.gif](/forum/attachment/15213) ](/forum/attachment/15213 "h19c4588.gif")

set Manual shipping cost - 100
[ ![h234b6ae.gif](/forum/attachment/15214) ](/forum/attachment/15214 "h234b6ae.gif")

But on site still see Shipping - 0
[ ![h4e752a7.gif](/forum/attachment/15215) ](/forum/attachment/15215 "h4e752a7.gif")

- [ ![h19c4588.gif](/forum/attachment/15213) ](/forum/attachment/15213 "h19c4588.gif") [ ](/forum/attachment/15213?download=1 "h19c4588.gif")
- [ ![h234b6ae.gif](/forum/attachment/15214) ](/forum/attachment/15214 "h234b6ae.gif") [ ](/forum/attachment/15214?download=1 "h234b6ae.gif")
- [ ![h4e752a7.gif](/forum/attachment/15215) ](/forum/attachment/15215 "h4e752a7.gif") [ ](/forum/attachment/15215?download=1 "h4e752a7.gif")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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
-
-
-

12 years 9 months ago [\#143415](#143415) 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 *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143415 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Hi,
I think that you should replace this line : Code:

$rate-&gt;shipping_price=$col2_sum;

By : Code:

$rate-&gt;shipping_price+=$col2_sum;

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143417](#143417) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143417 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Add **print\_r($shipping);** in */components/com\_hikashop/views/checkout/tmpl/cart.php*Code:

stdClass Object ( [shipping_id] =&gt; 1 [shipping_type] =&gt; manual [shipping_zone_namekey] =&gt; [shipping_tax_id] =&gt; 0 [shipping_price] =&gt; 0.00000 [shipping_currency_id] =&gt; 81 [shipping_name] =&gt; Курьерская доставка [shipping_description] =&gt; [shipping_published] =&gt; 1 [shipping_ordering] =&gt; 3 [shipping_params] =&gt; stdClass Object ( [shipping_percentage] =&gt; 0 [shipping_per_product] =&gt; 0 [shipping_price_per_product] =&gt; [shipping_min_price] =&gt; [shipping_max_price] =&gt; [shipping_price_use_tax] =&gt; 1 [shipping_virtual_included] =&gt; 1 [shipping_override_address] =&gt; 0 [shipping_override_address_text] =&gt; [shipping_min_weight] =&gt; [shipping_max_weight] =&gt; [shipping_weight_unit] =&gt; kg [shipping_zip_prefix] =&gt; [shipping_min_zip] =&gt; [shipping_max_zip] =&gt; [shipping_zip_suffix] =&gt; [shipping_min_volume] =&gt; [shipping_max_volume] =&gt; [shipping_size_unit] =&gt; m ) [shipping_images] =&gt; [shipping_access] =&gt; all [shippingkey] =&gt; 0,1 [shipping_warehouse_id] =&gt; 0 [shipping_price_with_tax] =&gt; 0.00000 [shipping_price_orig_with_tax] =&gt; )

**\[shipping\_price\] =&gt; 0.00000**, but in pnpMyAdmin I see in jqp92_hikashop_shipping table shipping_price is not 0.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143421](#143421) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143421 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

> Mohamed Thelji wrote: Hi,
> I think that you should replace this line :
>
> Code:
>
> $rate-&gt;shipping_price=$col2_sum;
>
>
>
> By : Code:
>
> $rate-&gt;shipping_price+=$col2_sum;

Nothing has changed.

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

12 years 9 months ago [\#143452](#143452) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories#143452 "I have some categories in a shop: AUTOMOBILE, FASHION, COMPUTING, PICTURES, limited (hikashop demo). How can i arrange for each category to have its own delivery cost and amount of minimal order?  For example:  Category  Delivery cost  Minimal order  AUTOMOBILE  15$  300$  COMPUTING  25$  150$  FASHION  7$  100$  For example, the minimal amount of your order in AUTOMOBILE category is 300 USD, while the minimal order for FASHION category is 100 USD. Delivery price for AUTOMOBILE is 15 USD and for FASHION is 7 USD. The total for delivery is 22 USD.  That is, if you select, at least, one item from a category, the delivery price will increase by the amount of delivery price for that category. The order will not be placed until you purchase the number of items for the minimum amount of order for that category.")*

Now when open checkout - get error "No shipping method found".
But I have one shipping method in options.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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.141 seconds

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