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

#   No update shipping costs in checkout when changing shipping method

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

9 years 4 months ago [\#272693](#272693) by [evn64](/forum/user/40786-evn64 "View evn64's Profile")  *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272693 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")* was created by *[evn64](/forum/user/40786-evn64 "View evn64's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Safari 10.1

If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually.
Unfortunately this doesn't work in my website.

For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.

Do you have an idea what goes wrong here?

Rgds, Eric

- [ ![Schermafbeelding2017-06-25om15.50.54.png](/forum/attachment/38888) ](/forum/attachment/38888 "...om15.50.54.png") [ ](/forum/attachment/38888?download=1 "...om15.50.54.png")

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

9 years 4 months ago [\#272704](#272704) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272704 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hello,

Can you please check your view "checkout / show_block_shipping" and look for the line Code:

var url = "&lt;?php echo hikashop_completeLink('checkout&amp;task=submitblock&amp;blocktask=shipping'.$this-&gt;cartIdParam.'&amp;Itemid='.$this-&gt;itemid, 'ajax', false, true); ?&gt;",

The second parameter of the function is "ajax" and it allows to generate an URL in Ajax context.
But in your website, the result URL is "tmpl=component", while it should be "tmpl=ajax" or "tmpl=raw".

So because the parameter "tmpl" is wrong, the return is not what the shipping system is expecting and that's why the cart is not refreshing.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

9 years 4 months ago [\#272739](#272739) by [evn64](/forum/user/40786-evn64 "View evn64's Profile")  Replied by *[evn64](/forum/user/40786-evn64 "View evn64's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272739 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hello Jerome,

I have checked the view 'checkout/show_block_shipping'. But the line there is exactly as in your example.

I have checked the function that builds the URL: hikashop_completeLink in administrator/components/com_hikashop/helpers/helper.php
Code:

function hikashop_completeLink($link, $popup = false, $redirect = false, $js = false, $frontend = false){ if($popup) $link .= '&amp;tmpl=component';

I put an 'echo $link' under this line to see what this function does. And it echoed an URL with &amp;tmpl=ajax on the end. But in looking in the script there was still '&amp;tmpl=component' at the end of the URL.

However changing the second line to Code:

if($popup) $link .= '&amp;tmpl=ajax';

did the trick and the URL in the script has '&amp;tmpl=ajax' at the end and then the checkout refreshes fine, like you said it would. But I can't imagine such a newbie-non-programmer hack is the solution for my problem. So I removed all the changes.

So I'm still puzzled. Do I need to change something in the configuration of Hikashop? Or is something else wrong?

Rgds, Eric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDg4MC1uby11cGRhdGUtc2hpcHBpbmctY29zdHMtaW4tY2hlY2tvdXQtd2hlbi1jaGFuZ2luZy1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

9 years 4 months ago [\#272754](#272754) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272754 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hi,

The beginning of the hikashop_completeLink function is not like that.
It is: Code:

function hikashop_completeLink($link, $popup = false, $redirect = false, $js = false, $frontend = false){ if($popup === 'ajax') $link .= '&amp;tmpl=raw'; else if($popup) $link .= '&amp;tmpl=component';

If you don't have that code, then either you have an old version of HikaShop and not the 3.1.1, or you have the latest but the file administrator/components/com_hikashop/helpers/helper.php was not updated during the update for some reason.
At the top of that file, you'll find the version of HikaShop for which that file was generated on our end so you can check that.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

9 years 4 months ago [\#272785](#272785) by [evn64](/forum/user/40786-evn64 "View evn64's Profile")  Replied by *[evn64](/forum/user/40786-evn64 "View evn64's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272785 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hello Nicolas,

I have checked and at the top it says 3.1.1. To be sure I have downloaded Hikashop Business edition this morning again and unpacked it. When looking in de file 'back/helpers/helper.php it says on line 918:
Code:

function hikashop_completeLink($link, $popup = false, $redirect = false, $js = false, $frontend = false){ if($popup) $link .= '&amp;tmpl=component'; $link = 'index.php?option='.HIKASHOP_COMPONENT.'&amp;ctrl='.$link; $config = hikashop_config(); $app = JFactory::getApplication(); if($frontend &amp;&amp; $app-&gt;isAdmin()){ static $mainurl = ''; static $otherarguments = false; if(empty($mainurl)){ $urls = parse_url(HIKASHOP_LIVE); if(isset($urls['path']) AND strlen($urls['path'])&gt;0){ $mainurl = substr(HIKASHOP_LIVE,0,strrpos(HIKASHOP_LIVE,$urls['path'])).'/'; $otherarguments = trim(str_replace($mainurl,'',HIKASHOP_LIVE),'/'); if(strlen($otherarguments) &gt; 0) $otherarguments .= '/'; }else{ $mainurl = HIKASHOP_LIVE; } } if($otherarguments &amp;&amp; strpos($link,$otherarguments) === false){ $link = $otherarguments.$link; } $ret = $mainurl.$link; }else{ $ret = JRoute::_($link,!$redirect); } if($js) return str_replace('&amp;amp;', '&amp;', $ret); return $ret; }

See attachment.

Kind regards, Eric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDg4MC1uby11cGRhdGUtc2hpcHBpbmctY29zdHMtaW4tY2hlY2tvdXQtd2hlbi1jaGFuZ2luZy1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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")
- [ Online](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

9 years 4 months ago [\#272799](#272799) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#272799 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hi,

Ah yes, I see. I was looking at a wrong branch on our versionning system.
I see the issue is a error with the handling of the merges.
I4ve added a patch to the install package on our website. It should work fine now.

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

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

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

9 years 4 months ago -  9 years 4 months ago [\#273508](#273508) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#273508 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hi,
I had the same problem and now it is solved.
Plugins shipping and pay, when select and refresh during checkout, not work fine.

Plugins pay
- HikaShop bank transfer payment plugin
- HikaShop Paypal payment plugin
- HikaShop collect on delivery payment plugin

Plugins shipping
- HikaShop manual shipping plugin

Updating the version today July 07, problem solved .
My version &gt; hikashop_business_v3.1.1_2017-07-07

Attached my configuration legacy  [ ![legacy-settings.png](/forum/attachment/39102) ](/forum/attachment/39102 "...y-settings.png")

---

Javier Ballester

- [ ![legacy-settings.png](/forum/attachment/39102) ](/forum/attachment/39102 "...y-settings.png") [ ](/forum/attachment/39102?download=1 "...y-settings.png")

Last edit: 9 years 4 months ago by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile").

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

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

9 years 4 months ago [\#273633](#273633) by [vyatka](/forum/user/45953-vyatka "View vyatka's Profile")  Replied by *[vyatka](/forum/user/45953-vyatka "View vyatka's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#273633 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

have the same problem

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

9 years 4 months ago [\#273719](#273719) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No update shipping costs in checkout when changing shipping method](/forum/27-checkout/890880-no-update-shipping-costs-in-checkout-when-changing-shipping-method#273719 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Safari 10.1  If I understand correctly the new checkout from Hikashop 3.x updates the checkout form without refreshing the page manually. Unfortunately this doesn't work in my website.  For testing I have made a clean Joomla install, installed only Hikashop and used the Protostar template. Attached is an image of the legacy settings.  Do you have an idea what goes wrong here?  Rgds, Eric")*

Hello,

Can you please provide the HikaShop version number (and build number) you're using ?
See : [ www.hikashop.com/support/documentation/5...onfig.html#main\_main](https://www.hikashop.com/support/documentation/54-hikashop-config.html#main_main)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDg4MC1uby11cGRhdGUtc2hpcHBpbmctY29zdHMtaW4tY2hlY2tvdXQtd2hlbi1jaGFuZ2luZy1zaGlwcGluZy1tZXRob2Q/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.073 seconds

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