zaviagodev / frappe

MIT License
0 stars 1 forks source link

Wordpress Plugin customisation - limit file type #226

Closed chomchuen closed 4 months ago

chomchuen commented 4 months ago

Wordpress site: https://tropicanaoil.com/wp-admin Plugin: WPDT WooCommerce Payment (Pro)


What you need to do?

This plugin uses for upload payment receipt and do the payment confirmation. So we need to limit the file format that was uploaded through this plugin and the file format limited to PNG, JPG, JPEG only.


Why we need to do this?

This is how the plugin looks like.

Image

Problem occur because this plugin allow users to upload any file types and formats. Like the image below. I can upload the .pdf file to the website but order note on order page doesn't support other file format except for image file type. Image

Image

Order note supports only image file type like this. Image

chomchuen commented 4 months ago

Image

This message should be in the payment confirmation page. Image


Another issue happened after customisation.

Image

chomchuen commented 4 months ago

Replace red area with

(รองรับไฟล์ประเภท JPG, JPEG, PNG เท่านั้น)

Image

chomchuen commented 4 months ago

Fixed✅ Image Image