I am trying to add js file in all pages prestashop 1.1.0 ?
I am not sure if i need to add page.tpl file in theme to & then add script code in it.
Any thoughts ?
At yout file /themes/classic/templates/_partials/head.tpl you can add your <script>script.js</script>, but in prestashop the best way to add a custom script is adding it to /themes/classic/assets/js/custom.js
Related
I am new to Odoo and I need to know what is the basic steps of adding a new module.
More specifically I need to know how to add custom modules to the addons-path.
In Odoo document they explain this step as this
$ ./odoo-bin --addons-path=../custom,../enterprise/,addons
but did not work for me.
For adding a new module you should do these steps:
Build your module with your written code or scaffold command.
Add the module path in your config file at addons-path = '',''
Change your URL like this: http://localhost:8091/web?debug=1
Go to apps and from up tabs
Select update app list and refresh your page.
Now you can see your module in the apps.
If you are not getting your custom module in Odoo after adding the path then you can try to add the full path of your folder into addons-path.
To get the full path of your custom folder just right-click on the folder and go to properties and find the path of your folder.
Also, you have to make sure to Apply the Update App list in your Odoo App Dashboard after restarting the server with custom addons.
When i click on check spelling option, popup comes and it keeps loading.
I tried using
config.removePlugins='scayt'; in config.js file
and its not helping.
in JS file config.js
in config.toolbarGroups do you try to remove Scayt ?
I want to add robots.txt and sitemap.xml to the project, what is proper way to do that on Spartacus? Is it autogenerated or should we add it manually?
Neither of those are autogenerated. You can generate them and add those manually to your shell app as you would with any angular application.
I am using single file Vue components in my app. What I'd like to do is add a new section, . Then, at build time, compile all of these configs into a single config file.
Is there a simple way to do this?
Thanks,
It turns out this is possible using Custom Blocks.
I'm using a theme with testimonial slider in homepage and I've figured out that there in the module folder a file called all_testimonial.tpl and something about an upload form.
So I guess that there is a way to have a page with all testimonials with the upload form.
But I'm not able to understand how could use that tpl.
Do you have any suggestions?
TPL file is a file extension for a template file format in general.
In Prestashop, Smarty is a template parser written in PHP
Take a have a look at these websites
https://www.smarty.net/
https://www.smarty.net/docsv2/en/smarty.for.designers
It would be difficult to answer which module for testimonial slider you are using in theme and which PrestaShop version website is using.
But I would say to have a look at the Prestashop Hooks
To see List of Hooks -> For a full list of Hooks
To see Module Development Changes -> https://build.prestashop.com/news/module-development-changes-in-17/