i'm try to build a prestashop theme. i dowload the prestashop theme from the prestashop development repository on github.
i install the theme on my local development prestashop and all work fine but the carousel al work but if i click on the arrows left or right it will refreh the page instead of going on the next slide.
here is the slider.tpl file code
{if $homeslider.slides}
<div id="carousel" data-ride="carousel" class="carousel slide" data-interval="{$homeslider.speed}" data-wrap="{(string)$homeslider.wrap}" data-pause="{$homeslider.pause}" data-touch="true">
<ol class="carousel-indicators">
{foreach from=$homeslider.slides item=slide key=idxSlide name='homeslider'}
<li data-target="#carousel" data-slide-to="{$idxSlide}"{if $idxSlide == 0} class="active"{/if}></li>
{/foreach}
</ol>
<ul class="carousel-inner" role="listbox">
{foreach from=$homeslider.slides item=slide name='homeslider'}
<li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}" role="option" aria-hidden="{if $smarty.foreach.homeslider.first}false{else}true{/if}">
<a href="{$slide.url}">
<figure>
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" loading="lazy">
{if $slide.title || $slide.description}
<figcaption class="caption">
<h2 class="display-1 text-uppercase">{$slide.title}</h2>
<div class="caption-description">{$slide.description nofilter}</div>
</figcaption>
{/if}
</figure>
</a>
</li>
{/foreach}
</ul>
<div class="direction" aria-label="{l s='Carousel buttons' d='Shop.Theme.Global'}">
<a class="left carousel-control" href="#carousel" role="button" data-slide="prev" aria-label="{l s='Previous' d='Shop.Theme.Global'}">
<span class="icon-prev hidden-xs" aria-hidden="true">
<i class="material-icons"></i>
</span>
</a>
<a class="right carousel-control" href="#carousel" role="button" data-slide="next" aria-label="{l s='Next' d='Shop.Theme.Global'}">
<span class="icon-next" aria-hidden="true">
<i class="material-icons"></i>
</span>
</a>
</div>
</div>
{/if}
can someone tell me how to solve this problem?
theme.js:4740 JQMIGRATE: jQuery 3.0.0+ REQUIRED
theme.js:4747 JQMIGRATE: Migrate is installed with logging active, version 3.1.0
theme.js:4772 JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos
migrateWarn @ theme.js:4772
get @ theme.js:4785
(anonymous) @ jquery-ui.min.js:5
(anonymous) @ jquery-ui.min.js:5
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
get @ theme.js:4785
(anonymous) @ jquery-ui.min.js:5
(anonymous) @ jquery-ui.min.js:5
theme.js:4772 JQMIGRATE: jQuery.fn.mouseup() event shorthand is deprecated
migrateWarn @ theme.js:4772
jQuery.fn.<computed> @ theme.js:5176
(anonymous) @ jquery-ui.min.js:5
(anonymous) @ jquery-ui.min.js:5
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
jQuery.fn.<computed> @ theme.js:5176
(anonymous) @ jquery-ui.min.js:5
(anonymous) @ jquery-ui.min.js:5
theme.js:4772 JQMIGRATE: jQuery.fn.delegate() is deprecated
migrateWarn @ theme.js:4772
delegate @ theme.js:5205
f @ jquery-ui.min.js:8
e @ jquery-ui.min.js:8
(anonymous) @ jquery-ui.min.js:9
(anonymous) @ jquery-ui.min.js:9
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
delegate @ theme.js:5205
f @ jquery-ui.min.js:8
e @ jquery-ui.min.js:8
(anonymous) @ jquery-ui.min.js:9
(anonymous) @ jquery-ui.min.js:9
theme.js:2524 Uncaught TypeError: Cannot read property 'quantityWanted' of undefined
at createProductSpin (theme.js:2524)
at HTMLDocument.<anonymous> (theme.js:2456)
at u (core.js:39)
at Object.fireWith [as resolveWith] (core.js:39)
at Function.ready (core.js:39)
at HTMLDocument.H (core.js:39)
createProductSpin @ theme.js:2524
(anonymous) @ theme.js:2456
u @ core.js:39
fireWith @ core.js:39
ready @ core.js:39
H @ core.js:39
theme.js:4772 JQMIGRATE: jQuery.event.fixHooks are deprecated and removed: resize
migrateWarn @ theme.js:4772
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
favicon.ico:1 GET http://localhost/prestashop/img//prestashop/img/favicon.ico?1598427341 403 (Forbidden)
favicon.ico:1 GET http://localhost/prestashop/img//prestashop/img/favicon.ico?1598427341 403 (Forbidden)
DevTools failed to load SourceMap: Could not load content for http://localhost/prestashop/themes/core.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
theme.js:4772 JQMIGRATE: jQuery.event.fixHooks are deprecated and removed: webkitTransitionEnd
migrateWarn @ theme.js:4772
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
trigger @ core.js:39
(anonymous) @ core.js:39
each @ core.js:28
each @ core.js:28
trigger @ core.js:39
triggerTransitionEnd @ theme.js:3482
(anonymous) @ theme.js:3468
setTimeout (async)
f @ theme.js:3467
j._slide @ theme.js:3645
j.next @ theme.js:3594
j.nextWhenVisible @ theme.js:3596
i @ core.js:28
setInterval (async)
j.cycle @ theme.js:3602
j._slide @ theme.js:3645
j.next @ theme.js:3594
j.nextWhenVisible @ theme.js:3596
i @ core.js:28
setInterval (async)
j.cycle @ theme.js:3602
(anonymous) @ theme.js:3652
each @ core.js:28
each @ core.js:28
j._jQueryInterface @ theme.js:3648
(anonymous) @ theme.js:3668
each @ core.js:28
each @ core.js:28
(anonymous) @ theme.js:3667
dispatch @ core.js:39
g.handle @ core.js:39
load (async)
add @ core.js:39
(anonymous) @ core.js:39
each @ core.js:28
each @ core.js:28
ce @ core.js:39
on @ core.js:39
(anonymous) @ core.js:136
n @ core.js:1
(anonymous) @ core.js:88
n @ core.js:1
(anonymous) @ core.js:64
n @ core.js:1
(anonymous) @ core.js:64
n @ core.js:1
(anonymous) @ core.js:1
(anonymous) @ core.js:1
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
trigger @ core.js:39
(anonymous) @ core.js:39
each @ core.js:28
each @ core.js:28
trigger @ core.js:39
triggerTransitionEnd @ theme.js:3482
(anonymous) @ theme.js:3468
setTimeout (async)
f @ theme.js:3467
j._slide @ theme.js:3645
j.next @ theme.js:3594
j.nextWhenVisible @ theme.js:3596
i @ core.js:28
setInterval (async)
j.cycle @ theme.js:3602
j._slide @ theme.js:3645
j.next @ theme.js:3594
j.nextWhenVisible @ theme.js:3596
i @ core.js:28
setInterval (async)
j.cycle @ theme.js:3602
(anonymous) @ theme.js:3652
each @ core.js:28
each @ core.js:28
j._jQueryInterface @ theme.js:3648
(anonymous) @ theme.js:3668
each @ core.js:28
each @ core.js:28
(anonymous) @ theme.js:3667
dispatch @ core.js:39
g.handle @ core.js:39
load (async)
add @ core.js:39
(anonymous) @ core.js:39
each @ core.js:28
each @ core.js:28
ce @ core.js:39
on @ core.js:39
(anonymous) @ core.js:136
n @ core.js:1
(anonymous) @ core.js:88
n @ core.js:1
(anonymous) @ core.js:64
n @ core.js:1
(anonymous) @ core.js:64
n @ core.js:1
(anonymous) @ core.js:1
(anonymous) @ core.js:1
theme.js:4772 JQMIGRATE: jQuery.event.props.concat() is deprecated and removed
migrateWarn @ theme.js:4772
get @ theme.js:4785
fix @ core.js:39
jQuery.event.fix @ theme.js:5129
dispatch @ core.js:39
g.handle @ core.js:39
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
get @ theme.js:4785
fix @ core.js:39
jQuery.event.fix @ theme.js:5129
dispatch @ core.js:39
g.handle @ core.js:39
theme.js:4772 JQMIGRATE: jQuery.event.fixHooks are deprecated and removed: mouseover
migrateWarn @ theme.js:4772
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
theme.js:4774 console.trace
migrateWarn @ theme.js:4774
jQuery.event.fix @ theme.js:5121
dispatch @ core.js:39
g.handle @ core.js:39
theme.js:5124 Uncaught TypeError: jQuery.event.addProp is not a function
at Object.jQuery.event.fix (theme.js:5124)
at HTMLDivElement.dispatch (core.js:39)
at HTMLDivElement.g.handle (core.js:39)
jQuery.event.fix @ theme.js:5124
dispatch @ core.js:39
g.handle @ core.js:39
this is the log i get in the browser console
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites.
The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
JQuery is arguably the most popular JavaScript library with so many features for modern development. JQuery is a fast and concise JavaScript library created by John Resig in 2006. It is a cross-platform JavaScript library designed to simplify client-side HTML scripting. Over 19 million websites are currently using jQuery! Companies like WordPress, Facebook, Google, IBM and many more rely on jQuery to provide a kind of web browsing experience.
https://jquery.com/
HTML (English "hyper text markup language" - hypertext markup language) is a special markup language that is used to create sites on the Internet.
Browsers understand html perfectly and can interpret it in an understandable way. In general, any page on the site is html-code, which the browser translates into a user-friendly form. By the way, the code of any page is available to everyone.
https://www.w3.org/html/
Welcome to the Q&A site for web developers. Here you can ask a question about the problem you are facing and get answers from other experts. We have created a user-friendly interface so that you can quickly and free of charge ask a question about a web programming problem. We also invite other experts to join our community and help other members who ask questions. In addition, you can use our search for questions with a solution.
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.