AddScriptParts is not working in nopcommerce 4.3

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
I am developing a nopcommerce 4.3 plugin in that I am referencing the js file by AddScriptParts in view form.
Now, by giving link of script file, plugin features is working very well while if I give the path of js file and add in AddScriptParts then plugin features is not working.

Added AddScriptParts code (Which is not working),
Html.AddScriptParts(ResourceLocation.Footer, "~/Plugins/../Content/CSS/jquery.min.js");
Html.AddScriptParts(ResourceLocation.Footer, "~/Plugins/../Content/CSS/xyz.min.js");


Added JS file link(Which is working very well)
<script  src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"   integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://../xyz.min.js"></script>


But I want to add in AddScriptParts. How can I do?
3 года назад
Even if we set resource property copy to output directory to "Copy always" resources linked using Html.AddScriptParts doesn't load to the html
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.