Prestashop testimonial link - prestashop

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/

Related

VSCode does not show HTML attributes in .vue files but shows in html files

I have spent 3 hours figuring out what's going on but could not find it out. I am new to HTML and intellisense help me know many attributes of a tag on the go. However, with .vue files html attributes are not being shown up.
a) Attributes being shown up in "index.html"
b) No attributes hints in "TodoItem.vue"
I have already installed Vetur, HTML CSS Support and Vue VSCode Snippets extension from marketplace.
First, install Vetur extension after that go to
File > Preferences > Settings
In the list find and open Extensions find Vetur, scroll down and find Template Interpolation Service (must be checked).
I found it.
you need to install this official extension to get tailwind css hints.
Tailwind CSS IntelliSense
everything will come true

How to add an upload FileField in the Silverstripe User Forms module

I have a Silverstripe website where the admins can create online forms using the userform module.
On an older website I do work for the userform has a form option for 'File Upload Field'.
On my current website I've downloaded the latest version of the userform module but the option for file upload is not listed in the form options. Does anyone know what I'm missing/ what I need to do to give admins the ability to add a file uploader to the page?
Here's an image of the available options,
Silverstripe form dropdown
It looks like the EditableFileField currently requires the Secure Assets Module to work. If the Secure Assets Module is not installed, the File Upload Field does not appear.
For Silverstripe Userforms module 4.5 and Silverstripe 3.6, if you really really don't want to install Secure Assets Module to enable File upload field just as me, you can create a secureassets.yml file in mysite/_config folder and add some yml configuration as below:
---
Name: userformsnosecurityoverride
After:
- '#userformsnosecurity'
Except:
ModuleExists: secureassets
---
EditableFileField:
hidden: false
This will override the default settings and make the file upload field visible.

I can't display a module in Prestashop

I have a problem about displaying a module in front-office when it was grafted.
 
Via the back office, I can graft the module on the hook that interests me, but when I display the front office, my module refuses to display. (No error, in short, everything looks good, but the contents of the tpl file is not displayed).
To display something on Prestashop via custom module, please make sure following things has been followed:
Your module must be installed.
If you are using hooks in your module to display something or performing any action then those hooks must be registered with your module. Otherwise, Prestashop will not execute hook content of your module.

Uploading of file on Prestashop order page

I need to allow uploading a file (pdf or jpg) for customers on the order page (shopping-cart.tpl).
How can I make this file upload widget and attach it to the order so it appears in back office.
My Prestashop version is 1.6.0.14
The only solution I found was this module (not free) http://addons.prestashop.com/es/21373-file-uploads.html
In another webpage I found the free solution (or atleasts I hope it helps to you):
https://www.prestashop.com/forums/topic/456742-free-module-file-upload-let-customers-upload-other-files-besides-images/
It works in a Prestashop 1.6.x.x with a free, personalized and overloaded theme.
If anyone can find more modules, will be welcome!
You can upload a jpg file by default (activating the option in product page in backoffice), but not a PDF. This is the reason you must use a module, to modify prestashop default "only upload images".
With the module I post in last modification, you can do this, including select the extensions you allow to upload.
Instructions:
1. go to the link above.
2. download the module .rar file
3. go to prestashop admin menu>modules>add new module>upload the .rar you just downloaded
4. go to module search input in modules section, search fileupload, and click in install button.
5. Select the extensions you need allow to the users to upload.
6. Check if the "upload/personalization" option is activated for each product you need to allow uploads.
NOTE: This module modifies the CORE of Prestashop, can cause inestabilities (I tryied and worked in a 1.6.x.x prestashop at 18/05/2016)

PrestaShop Using Default Module Instead of Theme Module

Today I starting design theme for prestashop and i'm Beginner on that.
i have a Question about Theme Module
i have Some module for my new Theme Located here:
prestashop/theme/mytheme/Module
and i want customize that for my new theme.
but the prestashop not using My Module instead using default module Located here:
Prestashop/Module/
What's Wrong and how to Fix this?
From the PrestaShop documentation:
Overriding a module's behavior
The modules are usually in the following format:
/modules/my_module/my_module.tpl
/modules/my_module/my_module.css
/modules/my_module/my_module.js
Since PrestaShop 1.5, they can and should also be in the following format:
/modules/my_module/views/templates/front/my_module.tpl
/modules/my_module/views/templates/front/my_module.css
/modules/my_module/views/templates/front/my_module.js
PrestaShop allows you to override or replace certain front-office module files
with new ones within the same theme. The override is governed by the
theme: once it contains a /modules folder (or more!), PrestaShop will
browse its content for files which have the same name and path as
those of existing modules, and replace these with the new ones.
This means, for PrestaShop 1.4-compatible modules:
/themes/my_theme/modules/my_module/my_module.tpl
/themes/my_theme/css/modules/my_module/my_module.css
/themes/my_theme/js/modules/my_module/my_module.js
Since PrestaShop 1.5, the path is slightly longer
/themes/my_theme/modules/my_module/views/templates/front/my_module.tpl
/themes/my_theme/css/modules/my_module/views/templates/front/my_module.css
/themes/my_theme/js/modules/my_module/views/templates/front/my_module.js
In general, the proper path to override a .tpl, .js or .css file
depends on the module's own path. That is the reason why if PrestaShop
1.5 has to work with a module without a view folder, it will need the same override path.
In short, you can keep overriding code in 1.5 just
as you did in 1.4.
The new files will be used when the customer loads
your shop.
Contrary to the override code that is to be placed manually
in the /override folder, module overrides are enabled as soon as the
module is installed. During installation, overriding code is merge
with those already in place (if any), otherwise they are copied to the
/override folder at the root of the PrestaShop folder.