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

#   Infinite scroll not load the script from listing\_img\_title.php

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

7 years 3 months ago [\#308892](#308892) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Infinite scroll not load the script from listing\_img\_title.php](/forum/2-general-talk-about-hikashop/897924-infinite-scroll-not-load-the-script-from-listing-img-title-php#308892 "-- HikaShop version -- : 4.2.0  Hi, I've activated the feature &quot;Infinite scroll&quot; in the product page but I have the following problem.I have a script in who does not want to load from listing&#95;img&#95;title.php. Is there any way I can load the script?")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 4.2.0

Hi, I've activated the feature "Infinite scroll" in the product page but I have the following problem.I have a script in who does not want to load from listing_img_title.php. Is there any way I can load the script?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5NzkyNC1pbmZpbml0ZS1zY3JvbGwtbm90LWxvYWQtdGhlLXNjcmlwdC1mcm9tLWxpc3RpbmctaW1nLXRpdGxlLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

7 years 3 months ago [\#308904](#308904) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Infinite scroll not load the script from listing\_img\_title.php](/forum/2-general-talk-about-hikashop/897924-infinite-scroll-not-load-the-script-from-listing-img-title-php#308904 "-- HikaShop version -- : 4.2.0  Hi, I've activated the feature &quot;Infinite scroll&quot; in the product page but I have the following problem.I have a script in who does not want to load from listing&#95;img&#95;title.php. Is there any way I can load the script?")*

Hi,

Then, you should also edit the listing_div.php view file to add some javascript code after or before the code: Code:

o.removeClass(container, 'loading'); container.loading = false; window.localPage.infiniteScrollPage++;

so that you can do some processing after the infinite scroll system adds more products to the page.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5NzkyNC1pbmZpbml0ZS1zY3JvbGwtbm90LWxvYWQtdGhlLXNjcmlwdC1mcm9tLWxpc3RpbmctaW1nLXRpdGxlLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

7 years 3 months ago [\#308945](#308945) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Infinite scroll not load the script from listing\_img\_title.php](/forum/2-general-talk-about-hikashop/897924-infinite-scroll-not-load-the-script-from-listing-img-title-php#308945 "-- HikaShop version -- : 4.2.0  Hi, I've activated the feature &quot;Infinite scroll&quot; in the product page but I have the following problem.I have a script in who does not want to load from listing&#95;img&#95;title.php. Is there any way I can load the script?")*

Thanks, I managed to add it, but the following problem arose. Some of the scripts require a different ID for the purpose I use product_id, but when I add it it does not change. Any idea? Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5NzkyNC1pbmZpbml0ZS1zY3JvbGwtbm90LWxvYWQtdGhlLXNjcmlwdC1mcm9tLWxpc3RpbmctaW1nLXRpdGxlLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

7 years 3 months ago [\#308946](#308946) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Infinite scroll not load the script from listing\_img\_title.php](/forum/2-general-talk-about-hikashop/897924-infinite-scroll-not-load-the-script-from-listing-img-title-php#308946 "-- HikaShop version -- : 4.2.0  Hi, I've activated the feature &quot;Infinite scroll&quot; in the product page but I have the following problem.I have a script in who does not want to load from listing&#95;img&#95;title.php. Is there any way I can load the script?")*

Hi,

Well, I don't know. Without looking at the code and the situation it's hard to say anything.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5NzkyNC1pbmZpbml0ZS1zY3JvbGwtbm90LWxvYWQtdGhlLXNjcmlwdC1mcm9tLWxpc3RpbmctaW1nLXRpdGxlLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

7 years 3 months ago -  7 years 3 months ago [\#309019](#309019) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Infinite scroll not load the script from listing\_img\_title.php](/forum/2-general-talk-about-hikashop/897924-infinite-scroll-not-load-the-script-from-listing-img-title-php#309019 "-- HikaShop version -- : 4.2.0  Hi, I've activated the feature &quot;Infinite scroll&quot; in the product page but I have the following problem.I have a script in who does not want to load from listing&#95;img&#95;title.php. Is there any way I can load the script?")*

I found a simple solution to add it as information if someone needs it. To run the code correctly put it in listing_img_title.php Code:

&lt;?php if(((int)$this-&gt;params-&gt;get('infinite_scroll', 0) == 0)) { ?&gt; // Infinite Scroll - No &lt;script type="text/javaScript"&gt; script.... &lt;/script&gt; &lt;?php } ?&gt; &lt;?php if(((int)$this-&gt;params-&gt;get('infinite_scroll', 0) == 1)) { ?&gt; // Infinite Scroll - Yes &lt;script type="text/javaScript"&gt; setTimeout(function(){ var script = document.createElement('script'); script.type = 'text/javascript'; script.text = " script... "; jQuery('.hikashop_products_listing').append(script); }, 100); &lt;/script&gt; &lt;?php } ?&gt;

This create the script for each product and loads the correct ID. ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 7 years 3 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5NzkyNC1pbmZpbml0ZS1zY3JvbGwtbm90LWxvYWQtdGhlLXNjcmlwdC1mcm9tLWxpc3RpbmctaW1nLXRpdGxlLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.079 seconds

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