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

#   I need Ajax response code on checkout

##

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

Less More

- Posts: 95
- Thank you received: 0
-
-

8 years 9 months ago [\#288403](#288403) by [naveedm](/forum/user/45494-naveedm "View naveedm's Profile")  *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288403 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")* was created by *[naveedm](/forum/user/45494-naveedm "View naveedm's Profile")*

-- url of the page with the problem -- : [ test.drtuba.eu/shop/cart/checkout](http://test.drtuba.eu/shop/cart/checkout)
-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.3
-- PHP version -- : 5.6.26
-- Browser(s) name and version -- : mozila firfox
-- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.

Hello Team,

I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.

So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.

Please have a look this website url.
[ test.drtuba.eu/shop/](http://test.drtuba.eu/shop/)

Thanks

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

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 9 months ago [\#288404](#288404) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288404 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hi,

You can use such javascript code: Code:

window.Oby.registerAjax(['checkout.shipping.updated'], function(params){ // your code for when shipping method selection is updated });

If you check the different show_block_ view files of the view "checkout", you'll find similar pieces of code which register javascript code to do stuff when something changes (mainly refresh some of the blocks when some other blocks are changed).

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

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

Less More

- Posts: 95
- Thank you received: 0
-
-

8 years 9 months ago [\#288528](#288528) by [naveedm](/forum/user/45494-naveedm "View naveedm's Profile")  Replied by *[naveedm](/forum/user/45494-naveedm "View naveedm's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288528 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hi,
I know about it, But I need place where I can replace value after ajax responded.
But here values getting before ajax responded. So please let me know file where ajax making or code that is called last.

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

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 9 months ago [\#288531](#288531) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288531 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hi,

No, this code is triggered after the AJAX call, not before.... but maybe we're not talking about the same thing ?
What javascript code do you need to run exactly ? For what purpose ?

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

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

Less More

- Posts: 95
- Thank you received: 0
-
-

8 years 9 months ago [\#288561](#288561) by [naveedm](/forum/user/45494-naveedm "View naveedm's Profile")  Replied by *[naveedm](/forum/user/45494-naveedm "View naveedm's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288561 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

But when I am adding some code after ajax it is calling before ajax response.

I want to update bottom price that is showing top of Place order Button,
I have added it. SO I want to do when any event change like qunatiry update, shipping method or any other what changes total price I want to update bottom price as well.
Please have a look screenshot :http://prntscr.com/ij1ic8

My website URL : [ test.drtuba.eu/shop/](http://test.drtuba.eu/shop/)

Thanks in advance.

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

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 9 months ago [\#288567](#288567) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288567 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hi,

So from what I understand, you want to add your javascript at the end of the "show_block_cart" view file via the menu Display&gt;Views. That way, your javascript will be executed each time the cart view is refreshed. And it will refresh each time the full total changes.

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

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

Less More

- Posts: 95
- Thank you received: 0
-
-

8 years 9 months ago [\#288573](#288573) by [naveedm](/forum/user/45494-naveedm "View naveedm's Profile")  Replied by *[naveedm](/forum/user/45494-naveedm "View naveedm's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288573 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hello ,
Please reply me I need your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5Mzg4NC1pLW5lZWQtYWpheC1yZXNwb25zZS1jb2RlLW9uLWNoZWNrb3V0P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 9 months ago [\#288588](#288588) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#288588 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hello,

I'm sorry but Nicolas did reply ; so I don't know what you're asking...

---

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

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 3 months ago [\#296001](#296001) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#296001 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Hi,

How could i add some javascript after checkout guest user information submit?

Basically i need to execute some js after this button submit:
Code:

&lt;button type="submit" onclick="window.checkout.submitLogin(2,1, 'register'); return false;" class=" btn btn-primary btn-xs-wide hikabtn_checkout_login_register" id="hikashop_register_form_button"&gt;Next&lt;/button&gt;

Couldn't find any register ajax for this.

Thanks

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 3 months ago [\#296002](#296002) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[I need Ajax response code on checkout](/forum/25-install-update/893884-i-need-ajax-response-code-on-checkout#296002 "-- url of the page with the problem -- :   test.drtuba.eu/shop/cart/checkout  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.3 -- PHP version -- : 5.6.26 -- Browser(s) name and version -- : mozila firfox -- Error-message(debug-mod must be tuned on) -- : I need to modify ajax response of checkout.  Hello Team,  I want to update some fields at the time of ajax response but I unable to find ajax code where it is updating html elements.  So Please let me know where I can get it and how I can change values so my custo html elemnt can get values. (LIKE TOTAL PRICE after change shipping method.  Please have a look this website url.   test.drtuba.eu/shop/  Thanks")*

Please ignore found it ![:)](/media/kunena/emoticons/3.png ":)")

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

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