Jump to content

Formatos de archivo permitidos en campo personalizado de archivo (PDF)


Recommended Posts

Cuando agrego un campo personalizado de tipo archivo solo me admite imágenes gif, png y jpg. ¿Esto es modificable?. Necesitaría que admitiera PDF pero he dado una vuelta por la configuración y no lo he encontrado...

 

En caso de tener que recurrir a modificar el código ¿sabrían decirme qué archivos habría que modificar para echarle un vistazo?. No soy programador, pero con paciencia y saliva...

 

La versión que estoy utilizando es la 1.5.6.2

 

Gracias.

Link to comment
Share on other sites

  • 1 month later...

Aquí: http://prestadev.nl/en/mod/contributions/9-pdf-product-customization-override.html en principio tienes un aporte gratuito para eso o al menos eso parece.

Eso no funciona con Prestashop 1.5.6.2, ni siquiera se muestra en los módulos. Lo mejor que he encontrado es esto http://mypresta.eu/modules/ordering-process/customer-files-upload.html pero no es gratis (aún). Espero que eventualmente los programadores de Prestashop incluyan una configuración para aceptar formatos PDF, AI, INND, PSD, ZIP, RAR entre otros en próximas versiones...hay muchas tiendas con este detalle sin resolver.

Link to comment
Share on other sites

Eso no funciona con Prestashop 1.5.6.2, ni siquiera se muestra en los módulos.

 

Yo lo estuve probando en su momento y funcionaba,  no es un modulo al menos en antaño no lo era, son archivos a copiar,  pero funcionar me funcionaba, ahora yo lo estuve probando hace tiempo en una de la 1.5, no lo he probado en la ultima de la 1.5

Link to comment
Share on other sites

Yo lo estuve probando en su momento y funcionaba,  no un modulo al menos en antaño no lo era, son archivos a copiar,  pero funcionar me funcionaba, ahora yo lo estuve probando hace tiempo en una de la 1.5, no lo he probado en la ultima de la 1.5

En el paquete de descarga, vienen las instrucciones de como copiar el aporte en tu tienda:

 

Check if you already have a ProductController.php present in your webservers Prestashop /override/controller/front location.

 

If so:

Unpack the package

Merge the contents of /override/controller/front/ProductController.php with the contents of /override/controller/front/ProductController.php from the package

Upload all files and folders from the package except the override folder to your webservers Prestashop root.

Upload the /themes/default/product.tpl file from the package to the folder of the active theme on your webserver.

Change the translation of the Frontend translations->product sentence 'Allowed file formats are: GIF, JPG, PNG' and Error translations 'Image format not recognized, allowed formats are: .gif, .jpg, .png' to match the newly allowed extensions (GIF, JPG, PNG, PDF, ZIP, RAR, GZ, TAR)

Delete the /cache/class_index.php file on your webserver

 

You're good to go.

If not:

Unpack the package and upload all files and folders from the package to your webservers Prestashop root.

Upload the /themes/default/product.tpl file from the package to the folder of the active theme on your webserver.

Change the translation of the Frontend translations->product sentence 'Allowed file formats are: GIF, JPG, PNG' and Error translations 'Image format not recognized, allowed formats are: .gif, .jpg, .png' to match the newly allowed extensions (GIF, JPG, PNG, PDF, ZIP, RAR, GZ, TAR)

Delete the /cache/class_index.php file on your webserver

You're good to go.

  • Like 1
Link to comment
Share on other sites

Diablos tengo que aceptar que no lo leí  :blush:. Deja ver si brega.

 

Considerando todo creo que esos formatos debieran estar incluidos por defecto como lo esta en BigCommerce, 3DCart, Magento, etc...gente a mi me gusta Prestashop porque lo he tratado todo. Esto se adapta a mi tienda como si fuera hecha pa' ella y a la gente le gusta (aunque no sea la gran cosa) pero siguen faltando detallitos.

Link to comment
Share on other sites

Diablos tengo que aceptar que no lo leí  :blush:. Deja ver si brega.

Prueba las instrucciones, a ver si funciona y ahí suerte xDDDD

 

Considerando todo creo que esos formatos debieran estar incluidos por defecto como lo esta en BigCommerce, 3DCart, Magento, etc...gente a mi me gusta Prestashop porque lo he tratado todo. Esto se adapta a mi tienda como si fuera hecha pa' ella y a la gente le gusta (aunque no sea la gran cosa) pero siguen faltando detallitos.

Ya, pero yo no tengo culpa de que no vayan incluidos, soy un simple usuario como tu.

  • Like 1
Link to comment
Share on other sites

Lo se man no te preocupes...me encanta que cada vez vayan creciendo más y mejorando cosas del pasado, chacho si el 6% de la población tuvieran al menos ese entusiasmo por mejorar y fueran como algunas de las empresas que ponen al usuario en primer plano este mundo fuera mucho mejor.

Link to comment
Share on other sites

Ay bendito! Yo nunca puse lo del displayImage.php, que burro fui. Gracias a "nadie" por la ayuda (mmmm eso sonó weird), voy a ponerlo en un post que abrí hace unos días como resuelto.

Entonces ¿parece que funciona al final? ¿no?

 

Saludos,

Link to comment
Share on other sites

Oopss tengo un problema! Se desaparecen las categorías cuando entro a los productos. Que puede ser eso?

¿Desaparecen en que sentido? ¿Se queda la pantalla blanca (http://www.prestashop.com/forums/topic/232476-%C2%BFqu%C3%A9-hacer-cuando-se-queda-la-pantalla-en-blanco-en-prestashop/) ? ¿O simplemente se ve la pantalla pero sin categorías? ¿Te ha ocurrido a partir de copiar los ficheros que has copiado para usar el aporte del que se habla en el tema en cuestión?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...