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

#   setInterval not on hikashop\_checkout\_page

##

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

Less More

- Posts: 8
- Thank you received: 1
-
-

11 years 7 months ago -  11 years 7 months ago [\#195819](#195819) by [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")  *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#195819 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")* was created by *[ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")*

-- url of the page with the problem -- : [ scale-fpv.de/index.php/produkte/warenkorb](http://scale-fpv.de/index.php/produkte/warenkorb)
-- HikaShop version -- : Essential: 2.4.0
-- Joomla version -- : 3.4.1
-- Browser(s) name and version -- : Mozilla

Hello everyone,

I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.

The Function work on every side of the page, but not in the hikashop_checkout_page.

the DIV was set is #content2_mdl_end see the code below.
Code:

var conToHeight = setInterval(function () { var con2height = $('#content2').height() - 8; $('#content2_mdl_end').height(con2height); }, 500);

So where is my mistake?

PS.: You only see the #content2_mdl_end div if you have anything in your card.

Last edit: 11 years 7 months ago by [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile"). Reason: Forget to say:

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

11 years 7 months ago [\#195821](#195821) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#195821 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")*

Hi,

The link to your website does not work.
About your javascript issue, you should check your browser javascript console in order to see if you have errors.

Regards,

---

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

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

11 years 7 months ago [\#195936](#195936) by [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")  Replied by *[ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")* on topic *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#195936 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")*

Hi,

about the link,
the link: [ ](http://scale-fpv.de/index.php/produkte/warenkorb)[ scale-fpv.de/index.php/produkte/warenkorb](http://scale-fpv.de/index.php/produkte/warenkorb)
work if I klick in, but you see the problem only if you have something in your cart. So include something e.g. from [ ](http://scale-fpv.de/index.php/produkte/schrauben)[ scale-fpv.de/index.php/produkte/schrauben](http://scale-fpv.de/index.php/produkte/schrauben)

[ ![scale&#95;setinterval.png](/forum/attachment/23293) ](/forum/attachment/23293 "...etinterval.png")

And in my console I have found a TypeError: Code:

TypeError: el is null checked = el.checked,

which is from warenkorb (Zeile 286, Spalte 5) and on line 286
Code:

function displayRegistration(el) { var value = el.value, [b]286 checked = el.checked,[/b] name = document.getElementById("hikashop_registration_name_line"), username = document.getElementById("hikashop_registration_username_line"), pwd = document.getElementById("hikashop_registration_password_line"), pwd2 = document.getElementById("hikashop_registration_password2_line"), registration_div = document.getElementById("hikashop_checkout_registration"), login_div = document.getElementById("hikashop_checkout_login_form");

- [ ![scale&#95;setinterval.png](/forum/attachment/23293) ](/forum/attachment/23293 "...etinterval.png") [ ](/forum/attachment/23293?download=1 "...etinterval.png")

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

11 years 7 months ago [\#195937](#195937) by [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")  Replied by *[ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")* on topic *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#195937 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")*

if someone is logged in, the script is running, as well on the cart.

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

11 years 7 months ago [\#195939](#195939) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#195939 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")*

Hi,

Thanks for the report.
For the moment you can edit the file "components/com_hikashop/views/order/view.html.php" and replace Code:

$js = ' function displayRegistration(el) {

Into Code:

$js = ' function displayRegistration(el) { if(!el) return;

To avoid the javascript issue.
The patch will also be in HikaShop and we will investigate on why the function is called with a wrong element.

Regards,

---

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

The following user(s) said Thank You: [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

11 years 7 months ago [\#196042](#196042) by [ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")  Replied by *[ChrisRolly](/forum/user/34904-chrisrolly "View ChrisRolly's Profile")* on topic *[setInterval not on hikashop\_checkout\_page](/forum/33-customers/875871-setinterval-not-on-hikashop-checkout-page#196042 "-- url of the page with the problem -- :   scale-fpv.de/index.php/produkte/warenkorb  -- HikaShop version -- : Essential: 2.4.0 -- Joomla version -- : 3.4.1 -- Browser(s) name and version -- : Mozilla  Hello everyone,  I have wrote an small JavaScript function, to set the height of two DIVs dynamic, so that they looks like the same.  The Function work on every side of the page, but not in the hikashop&#95;checkout&#95;page.  the DIV was set is #content2&#95;mdl&#95;end see the code below.  So where is my mistake?  PS.: You only see the #content2&#95;mdl&#95;end div if you have anything in your card.")*

"components/com_hikashop/views/order/view.html.php" I coud not find the code in this file but in this one:
"components/com_hikashop/views/checkout/view.html.php"
and I changed it and it works very well, thank you very much.

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

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

[](#top)
