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

#   Hikashop Shipping Plugin For Rate per kg

##

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

Less More

- Posts: 7
- Thank you received: 1
-
-
-
-

11 years 9 months ago [\#186377](#186377) by [ruchika](/forum/user/35412-ruchika "View ruchika's Profile")  *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186377 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")* was created by *[ruchika](/forum/user/35412-ruchika "View ruchika's Profile")*

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 2.5.11

Hi,
i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly.
Does anyone know how to do this and where to implement this?

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 747
-
- [](http://www.inphase.one)
-

11 years 9 months ago [\#186381](#186381) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186381 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Hi,

Please look here: [ www.hikashop.com/forum/shipping-methods/...g-price-per-1kg.html](http://www.hikashop.com/forum/shipping-methods/870607-shipping-price-per-1kg.html)

Additional explanation in Xavier's post here: [ www.hikashop.com/forum/install-update/87...s-kg-how.html#183902](http://www.hikashop.com/forum/install-update/873627-shipping-setting-by-unit-as-kg-how.html#183902)

And for an example see Nicolas' last post in this thread: [ www.hikashop.com/forum/install-update/87...s-kg-how.html#184142](http://www.hikashop.com/forum/install-update/873627-shipping-setting-by-unit-as-kg-how.html#184142)

Using the search here for e.g. "shipping per kg" or so will give you more.

Documentation on the manual shipping method: [ www.hikashop.com/support/documentation/i...ing-manual-form.html](https://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/31-hikashop-shipping-manual-form.html)

---

BTW, you're on a fairly old HikaShop version, and a meanwhile unsupported Joomla version... time to update? ![;)](/media/kunena/emoticons/11.png ";)")

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

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

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

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

Less More

- Posts: 7
- Thank you received: 1
-
-
-
-

11 years 9 months ago [\#186393](#186393) by [ruchika](/forum/user/35412-ruchika "View ruchika's Profile")  Replied by *[ruchika](/forum/user/35412-ruchika "View ruchika's Profile")* on topic *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186393 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Hi lousyfool,
Thank you for your response!!

i have already seen the links mentioned by you. Also, i have created my own custom plugin for this . i have calculated the shipping price and total order price in the checkout process .
For e.g - if weight is &gt; 400g then shipping price is increased by 2 for every kg.
This final total is shown to user in the checkout page.
the problem is now in the payment price or order price . When a user orders for the product his order full price is the old one but i want to overwrite this by my new calculation.

And regarding old version can't help it . its client's ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc0MjExLWhpa2FzaG9wLXNoaXBwaW5nLXBsdWdpbi1mb3ItcmF0ZS1wZXIta2c/dG1wbD1tYXJrZG93bg==) 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 9 months ago -  11 years 9 months ago [\#186405](#186405) 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 *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186405 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Hello,
Your issue is probably coming from the way you developed your shipping method, note that you'll have to add your final rate like on every **onShippingDisplay** function of your shipping plugin, for example on the Australia post plugin :

> foreach($rates as $finalRate){
> $usable\_rates\[$finalRate-&gt;shipping\_id\]=$finalRate;
> $cache\_usable\_rates\[$finalRate-&gt;shipping\_id\] = $finalRate;
> }

Also, note that you'll probably be able to do what you want by using the manual shipping method options.

Last edit: 11 years 9 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 7
- Thank you received: 1
-
-
-
-

11 years 9 months ago [\#186570](#186570) by [ruchika](/forum/user/35412-ruchika "View ruchika's Profile")  Replied by *[ruchika](/forum/user/35412-ruchika "View ruchika's Profile")* on topic *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186570 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Hi,
thank you ! i will try to add the finalrate as you mentioned . This was missing in my plugin. ![:)](/media/kunena/emoticons/8.png ":)")

Also, i cannot modify the Manual Plugin because i think this would be not a good idea . In my plugin i have an extra field named "Rate per Kg" in the configuration page of the plugin through which user can enter the rate he wants to add to the shipping price after every kg &gt; 0.4kg. Therefore i made my own plugin .

Note: i am developing hikashop plugin for the first time ![:)](/media/kunena/emoticons/8.png ":)")

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

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

Less More

- Posts: 7
- Thank you received: 1
-
-
-
-

11 years 9 months ago [\#186611](#186611) by [ruchika](/forum/user/35412-ruchika "View ruchika's Profile")  Replied by *[ruchika](/forum/user/35412-ruchika "View ruchika's Profile")* on topic *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186611 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

HI please can you tell me what is addRate() in aupost plugin ?

currently i am working on my plugin added the foreach as you mentioned but $rates array is coming blank. Also, "no shipping method found" message is displaying.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc0MjExLWhpa2FzaG9wLXNoaXBwaW5nLXBsdWdpbi1mb3ItcmF0ZS1wZXIta2c/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#186615](#186615) 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 *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186615 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Hello,
The addRate() function of the AuPost plugin will only do the request to the Aupost server to gather rates information for your order.

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

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

Less More

- Posts: 7
- Thank you received: 1
-
-
-
-

11 years 9 months ago [\#186791](#186791) by [ruchika](/forum/user/35412-ruchika "View ruchika's Profile")  Replied by *[ruchika](/forum/user/35412-ruchika "View ruchika's Profile")* on topic *[Hikashop Shipping Plugin For Rate per kg](/forum/28-shipping-methods/874211-hikashop-shipping-plugin-for-rate-per-kg#186791 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.11  Hi, i want to create a plugin to calculate shipping price per kg and also change the total price which a user pays accordingly. Does anyone know how to do this and where to implement this?")*

Thank you everyone for your response . I have made the plugin successfully as i wanted ![:)](/media/kunena/emoticons/8.png ":)")

Thank you all !! ![:)](/media/kunena/emoticons/8.png ":)")

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc0MjExLWhpa2FzaG9wLXNoaXBwaW5nLXBsdWdpbi1mb3ItcmF0ZS1wZXIta2c/dG1wbD1tYXJrZG93bg==) 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.314 seconds

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

[](#top)
