Uploading of file on Prestashop order page - file-upload

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)

Related

Can't upload theme to Prestashop

So I purchased a prestashop theme from TemplateMonster and the zip file is 324MB and when I try to upload the file in admin, I get an error that the file is too large. I know I can change php settings and maybe get it to work, but I figured I would just ftp it to my server, but filezilla drops the connection when I try to upload it. First, before I change php settings, will it work with such a large file? Also, when I look inside the zip file, I see a .sql file, a psd.zip, readme_en.zip, and 2 other zip files. Do all these files need to be uploaded? Just asking because I'm not sure why the PSD.zip file would need to be included.
413 Request Entity Too Large
Probably the main theme package contains additional assets, but in order to have your theme installed in Prestashop you just need the "main" ZIP theme
(the one that once unzipped contain folders like /assets /templates /modules etc.)
Then you can choose to upload it from your backoffice (you need to set the PHP max_upload_filesize accordingly) or copy the zip directly in your /themes directory and choose the "Import with FTP" option for the "Themes & Logo > Theme > Add new theme" backoffice page.
If you're having trouble with that method too, you can use the "Import from the web"
method by uploading your ZIP in a reachable public URL

Prestashop testimonial link

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/

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.

DNN 7 issue with SupportedModules attribute

I'm an experienced (ASP.NET|Java|PHP|web) developer, new to DotNetNuke.
Currently I'm following a blog tutorial to try to get an Angular module up-and-running in my local installation of DNN 7 (http://www.bitboxx.net/Blog/Post/505/DNN-module-development-with-AngularJS-Part-1#)
My environment: Windows 2012 Server R2, SQL Server 2016 Express, Visual Studio 2015 and DNN 7 on IIS 8.
DNN nuke runs fine.
I installed the downloaded module from the blog to my DNN. I'm having problems to run the HelloWorld example (at the bottom of the 2nd part of the course).
Through some trial-and-error I found out this has to do with the [SupportedModules] attribute on the controller.
Without this attribute it runs fine, but with the attribute it won't.
How does DNN determine the name of the module? The "installation" process was no more then unzipping the modules contents to the DesktopModules directory within my DNN directory (in inetput\wwwroot).
Do I need to install/configure the modules in Settings > Extensions?
Or am I missing some other point with regards to the DNN 7's security?
Thanks in advance for any help/thoughts!
Yes, you need to install the module through the Extensions mechanism in DNN. This will register the module so DNN is aware of the module as well as make sure the files get copied to the right places, in accordance with the installation manifest (the .dnn file you should find inside that .zip file)
However, looking at the blog article you referenced, I don't see an actual installation zip file anywhere. The only download I found was for the project as a whole. You would need to package your compiled solution into an installable zip file (with a .dnn manifest file) or you need to manually register your extension from the Extensions page.
On that page you should click the "Create New Extension" button which will walk you through supplying details for the module. Choose Module as the Extension Type
Only a few of the items are required. The "Name" you use for the module will be the name you use in SupportedModules. It will also default your folder name (the folder in /DesktopModules) to the module name. Friendly Name, incidentally, is what will be displayed in menus and such.
Once you've created the module it should be registered with DNN. You will probably need to restart your AppPool and website for the change to take effect.
FYI, SupportedModules isn't strictly required. If you're building this for a client and not building this for distribution.
Hope this helps.

installing an extension using vqmod

I recently installed VQmod for opencart and I've tried to add my first vQmod xml file.
The VQmod installation was successful and I see the message
VQMOD ALREADY INSTALLED!
when I visit the /vqmod/install/ URL as expected
The extension I tried to install can be found here
I added the xml file to the root folder of my site and the /vqmod/xml/ folder but I don't see a change. No new module appears in the modules page and I don't see the extension working as expected. I also don't get any error messages
The file needs to be in the /vqmod/xml/ folder as you've rightly done (the root of the folder one can be deleted as it's not required). As for the mod not showing up, vQmods don't add modules to anywhere - they virtually edit files in certain spots. From the looks of the extension you need to go to CATALOG > PRODUCTS in your admin and then you will notice you can edit products there. A few of things to check
You are using the correct version for your OpenCart install and that it is compatible
If you don't, you'll need to get that version instead
You have files in /vqmod/vqcache/ and that if you delete them and refresh your OpenCart store, the files regenerate
If they don't, check the permissions on the directory and that you have the OpenCart version of vQmod, including the /vqmod/xml/vqmod_opencart.xml file
You have no errors from the mod (see /vqmod/logs/ followed by the day name such as Tue.log)
If you do, contact the developer to get a fix if they can. Remember that while vQmods can work well together, that depends largely on the competence of the developer to make it as dynamic as possible. Conflicts can always occur however
download the VQMOD from this link https://code.google.com/p/vqmod/downloads/list
upload the ZIP file (case of server)
extract the ZIP file and past root folder directory (in case of localhost)
exp (site folder name is shop (shoo/vqmod))
run on url (http:/open/vqmod/install/)
exit