[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
-
-
-
-

12 years 5 days ago [\#178890](#178890) 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?start=40#178890 "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.")*

Noticed some problems with this hack after a year ![:)](/media/kunena/emoticons/3.png ":)")
As you said, I edited "administrator\components\com_hikashop\helpers\helper.php" file.
My hack set own Delivery cost for each category. But if customer orders many items, Delivery cost is 0. I made video [ example](https://www.youtube.com/watch?v=TK4RrfJpehs&feature=youtu.be).
Delivery cost is 500. And when total order &gt; 4000 it should be 0. But checkout page don't check second time helper.php's function onShippingDisplay, until I change quantity.

Try for test write in helper.php: Code:

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

And it's not affect Checkout page after page refresh, only after Quantity change.

How to update shipping_price after every page refresh?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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 4 days ago -  12 years 4 days ago [\#178948](#178948) 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?start=40#178948 "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.")*

Try change delivery cost on test clear hikashop installation without any hacks.

Captured [ video example](https://www.youtube.com/watch?v=D0AYOt50qMg&feature=youtu.be).

Why only quantity change can update delivery cost? Why it's not updated with page refresh?

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

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 4 days ago [\#178977](#178977) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories?start=40#178977 "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,

HikaShop uses a cache for the shipping.
You can edit the file "administrator/components/com_hikashop/classes/shipping.php" and replace Code:

$shipping_key = sha1(serialize($order_clone).serialize($rates)); if($app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.key',false)){

By Code:

$use_cache = false; $shipping_key = sha1(serialize($order_clone).serialize($rates)); if($use_cache &amp;&amp; $app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.key',false)){

In order to deactivate the shipping cache.

For the next HikaShop release, we will improve that and let the shipping methods indicate if they want to use the shipping cache or not.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjEwLWRlbGl2ZXJ5LWNvc3QtZGVwZW5kaW5nLW9uLWNhdGVnb3JpZXM/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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 4 days ago -  12 years 4 days ago [\#179031](#179031) 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?start=40#179031 "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.")*

Edited this file, but nothing changed. Delivery cost doesn't change, when surf or update page.

In Production I use 2.3.0 version, not latest. It's the same hack there?

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

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 3 days ago [\#179042](#179042) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delivery cost depending on categories](/forum/4-how-to/81210-delivery-cost-depending-on-categories?start=40#179042 "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,

In order to disable the shipping cache : yes.
It is clearly not logical or regarding the code not possible.
If the shipping methods are not returned from cache, HikaShop will re-trigger the shipping plugins.
The other problem is that when you change a shipping method configuration, you change his modification date so it should invalidate the cache.

So I am more thinking about a browser/Joomla cache.

But if you want to test (and I am more than sure that it is working ; you can simply comment this code Code:

/* if($app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.key',false)){ $this-&gt;errors = $errors = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.errors',array()); $shipping_groups = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.shipping_groups',null); $usable_methods = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.usable_methods',null); $order-&gt;shipping_groups =&amp; $shipping_groups; return $usable_methods; } */

and if you still get the same shipping problem ; it will indicate that the problem is coming from another kind of cache (and not the HikaShop one).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

11 years 7 months ago [\#195332](#195332) 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?start=40#195332 "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.")*

I didn't find this in Hikashop 2.3.5 Code:

$shipping_key = sha1(serialize($order_clone).serialize($rates)); if($app-&gt;getUserState(HIKASHOP_COMPONENT.'.shipping.'.$shipping_key.'.key',false)){

What should I change now?

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

11 years 4 months ago [\#207977](#207977) 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?start=40#207977 "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,
Sorry for the late reply.
If you are still having your issue, can you download the last Hikashop version through our website, install it and then change that line : Code:

$use_cache = $config-&gt;get('use_shipping_cache', true);

By : Code:

$use_cache = $config-&gt;get('use_shipping_cache', true); $use_cache = false;

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

10 years 5 months ago [\#240915](#240915) 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?start=40#240915 "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.")*

Updated to 2.6.3 from 2.3.3 and modification stop working.
Unfortunately I don't remember exactly what I did.
Edited \administrator\com_hikashop\helpers\helper.php
Code:

/* START Harry Delivery*/ $session =&amp; JFactory::getSession(); $session_id=$session-&gt;getID(); $link = mysql_connect("localhost", "bduser", "bdpass") or die("Could not connect : " . mysql_error()); mysql_query ("SET CHARACTER SET 'utf8'", $link); mysql_select_db("dbname") or die("Could not select database"); $query = 'SELECT DISTINCT tyr72_hikashop_category.category_name, tyr72_hikashop_category.min_sum, tyr72_hikashop_category.price_delivery FROM tyr72_hikashop_product, ((tyr72_hikashop_cart INNER JOIN tyr72_hikashop_cart_product ON tyr72_hikashop_cart.cart_id = tyr72_hikashop_cart_product.cart_id) INNER JOIN tyr72_hikashop_product_category ON tyr72_hikashop_cart_product.product_id = tyr72_hikashop_product_category.product_id) INNER JOIN tyr72_hikashop_category ON tyr72_hikashop_product_category.category_id = tyr72_hikashop_category.category_id WHERE (((tyr72_hikashop_cart.session_id)="'.$session_id.'"));'; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $query2 = 'SELECT Sum(tyr72_hikashop_cart_product.cart_product_quantity*tyr72_hikashop_price.price_value) AS PRZ, tyr72_hikashop_category.min_sum, tyr72_hikashop_category.category_name, tyr72_hikashop_category.free_delivery, tyr72_hikashop_category.price_delivery FROM tyr72_hikashop_cart INNER JOIN (((tyr72_hikashop_cart_product INNER JOIN tyr72_hikashop_price ON tyr72_hikashop_cart_product.product_id = tyr72_hikashop_price.price_product_id) INNER JOIN tyr72_hikashop_product_category ON tyr72_hikashop_cart_product.product_id = tyr72_hikashop_product_category.product_id) INNER JOIN tyr72_hikashop_category ON tyr72_hikashop_product_category.category_id = tyr72_hikashop_category.category_id) ON tyr72_hikashop_cart.cart_id = tyr72_hikashop_cart_product.cart_id WHERE (((tyr72_hikashop_cart.session_id)="'.$session_id.'")) GROUP BY tyr72_hikashop_category.min_sum, tyr72_hikashop_category.category_id, tyr72_hikashop_category.category_name;'; $result2 = mysql_query($query2) or die("Query failed : " . mysql_error()); $col2_sum = 0; while ($row = mysql_fetch_array($result2, MYSQL_ASSOC)) { if (($row['free_delivery'] &lt;= $row['PRZ']) AND ($row['free_delivery'] &lt;&gt; 0)) {$col2_sum-= $row['price_delivery'];} } while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$col2_sum += $line['price_delivery'];} mysql_free_result($result); mysql_free_result($result2); mysql_close($link); /* END Harry Delivery*/

And then:
Code:

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

But don't work now. Something changed?

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

10 years 5 months ago [\#240916](#240916) 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?start=40#240916 "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.")*

Sorry. I didn't notice that DB name has changed. Check again now.

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

10 years 5 months ago [\#240917](#240917) 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?start=40#240917 "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.")*

> Jerome wrote: For the next HikaShop release, we will improve that and let the shipping methods indicate if they want to use the shipping cache or not.Regards,

You did this changes? Where I can disable shipping price cache in menu?

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

10 years 5 months ago [\#240919](#240919) 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?start=40#240919 "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.")*

Noticed now that shipping prices are different on checkout page. One (OK) is change when change it in Adnin panel -&gt; Shipping methods and then just reload page. But another (wrong) changes only when change quantity in checkout. How to change both by page refresh?
[ ![hikacart.gif](/forum/attachment/31613) ](/forum/attachment/31613 "hikacart.gif")

- [ ![hikacart.gif](/forum/attachment/31613) ](/forum/attachment/31613 "hikacart.gif") [ ](/forum/attachment/31613?download=1 "hikacart.gif")

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

10 years 5 months ago [\#240921](#240921) 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?start=40#240921 "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,

> Unfortunately I don't remember exactly what I did.
> Edited \\administrator\\com\_hikashop\\helpers\\helper.php

You'll have to add that modification through the file "administrator/components/com_hikashop/classes/shipping.php"

> How to change both by page refresh?

Can you make sure that your "Auto submit shipping and payment methods selection" option is set to "Yes" via "Hikashop-&gt;System-&gt;Configuration-&gt;Checkout"

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

10 years 5 months ago [\#241030](#241030) 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?start=40#241030 "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,
>
> > How to change both by page refresh?
>
> Can you make sure that your "Auto submit shipping and payment methods selection" option is set to "Yes" via "Hikashop-&gt;System-&gt;Configuration-&gt;Checkout"

[ ![img-2016-05-25-08-29-16.png](/forum/attachment/31630) ](/forum/attachment/31630 "...5-08-29-16.png")

- [ ![img-2016-05-25-08-29-16.png](/forum/attachment/31630) ](/forum/attachment/31630 "...5-08-29-16.png") [ ](/forum/attachment/31630?download=1 "...5-08-29-16.png")

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

10 years 5 months ago [\#241050](#241050) 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?start=40#241050 "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.")*

> For the next HikaShop release, we will improve that and let the shipping methods indicate if they want to use the shipping cache or not.Regards,
>
> You did this changes? Where I can disable shipping price cache in menu?

The shipping cache can be disabled by the shipping plugin itself when it requires that.
So supposes that you're using the manual shipping plugin.
You would have to edit the file plugins/hikashopshipping/manual/manual.php file and add the line:
var $use_cache = false;
after the line:
class plgHikaShopshippingManual extends hikashopShippingPlugin {
so that the cache would be automatically disabled for all the payment methods of that plugin, without changing any code or setting.

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

10 years 5 months ago -  10 years 5 months ago [\#241134](#241134) 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?start=40#241134 "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:
>
> > For the next HikaShop release, we will improve that and let the shipping methods indicate if they want to use the shipping cache or not.Regards,
> >
> > You did this changes? Where I can disable shipping price cache in menu?
>
> The shipping cache can be disabled by the shipping plugin itself when it requires that.
> So supposes that you're using the manual shipping plugin.
> You would have to edit the file plugins/hikashopshipping/manual/manual.php file and add the line:
> var $use\_cache = false;
> after the line:
> class plgHikaShopshippingManual extends hikashopShippingPlugin {
> so that the cache would be automatically disabled for all the payment methods of that plugin, without changing any code or setting.

Added but nothing changed. When change shipping method cost in backend, it doesn't change in checkout until change quantity.

Maybe you can check it. I can give test access.

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

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

10 years 5 months ago [\#241218](#241218) 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?start=40#241218 "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 had a hard time trying to reproduce the problem as I don't see the shipping methods selection area, I can click on the button, I don't read your language, etc.
I don't understand why I get "Стоимость доставки зависит от выбранного заведения." instead of the shipping price. There is no system in HikaShop for that.

What the shipping methods caching system does is that when nothing changes in the cart, the shipping methods displayed in the shipping methods selection interface are not updated. When it is turned off, the shipping methods will be recalculated for that view of the checkout.
However, it doesn't act on the shipping method selected for the cart. When it is selected, its data is stored in the session so that it can be directly used on the cart view without having to calculate all the shipping methods.
So if you're talking about the shipping fee in the cart, adding the use_cache attribute in your shipping method won't change anything. It will only change for the shipping methods selection area where the price of each shipping methods available is displayed for the customer to select one among them.

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

10 years 5 months ago [\#241254](#241254) 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?start=40#241254 "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.")*

The topic was how to make it's own delivery cost for every category, and with your advices I made it by editing \administrator\com_hikashop\helpers\helper.php file [ here](https://www.hikashop.com/forum/4-how-to/81210-delivery-cost-depending-on-categories.html?start=40#240915)

[ ![hika.gif](/forum/attachment/31676) ](/forum/attachment/31676 "hika.gif")

In Shipping method delivery cost update OK when page refresh. But Total value calculated not with this value (920). Total use Shipping (900) under Subtotal. I thought this values (Shipping and Shipping Method) should be the same, but they are not.

- [ ![hika.gif](/forum/attachment/31676) ](/forum/attachment/31676 "hika.gif") [ ](/forum/attachment/31676?download=1 "hika.gif")

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

10 years 5 months ago [\#241277](#241277) 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?start=40#241277 "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,

As I said, in my previous message, that's normal that the rate in the cart doesn't change if the data in the session is not updated.
It's different from the cache system.

But I don't see why that is a problem.
What you're talking about will only happen when you change shipping fees in the backend, and it's not something you change much normally.

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

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