Code

Discussion on WooCommerce Upload Files

Discussion on WooCommerce Upload Files

Cart 7,567 sales
Recently Updated

vanquish supports this item

Supported

4906 comments found.

Hi, I would like to translate the plugin into FR language. I created new files .po and .mo with this syntax “woocommerce-files-upload-fr_FR” into the languages folder. But it doesn’t work. I also translated the “Texts” options in the back-office

To ask for support, you need to use a valid an account with a valid purchase and support liceses associated with.

Hey,

We are using Version 55.1 | By Lagudi Domenico in our Word Press Woocommerce store (Version 4.1.1).

We have a webhook in woocommerce triggered by a new order. The payload is sent to a backend URL which stores the order information and processes the uploaded files.

When a small file (under 50MB) is uploaded the provided payload has the “_wcuf_upload_files” metadata, see example: https://drive.google.com/open?id=16mNVHSZ8WpRglhFKHgqE_x0RTk45Yb2j But when a larger file is uploaded (we tested 400-600MB) those fields are not provided in the payload. However, we do see the file in the dropbox integrated. https://drive.google.com/open?id=18L1BTfTWH0KoaY1GjUdVNhBI4euxDL5S

The above array is the only one in the payload which is unexpected.

This behaviour is a complete blocker for us as it breaks our application architecture.

Can you please assist us to troubleshooting this issue? Is there any tuning that can solve it?

Thank you.

Ok, no problem!

now the plugin triggers the ‘wcuf_upload_process_completed’ action that passes as a parameter the order_id.

please update to the latest 55.2 version. You can manually download the new version via CodeCanyon or receive as an automatic update by installing and configuring the Envato updater plugin: https://goo.gl/pkJS33 (here the guide that explains how to configure: https://envato.com/market-plugin/ ). To manually update just deactivate and delete the old plugin version and then install the new one. Don’t worry you won’t lose any data :)

I hope it works! Let me know!

Was it ok?

if so, please consider leaving the 5 stars, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Have a great day! :)

Thank you. It didnt worked for me. Only local uploading is working right now with big files.

Hello, I use the system I bought. But I noticed something today. The file is loading, but the broken visual icon appears in the image instead of viewing it. I couldn’t add a photo here. But you can try and upload a photo when you see the photo upload area by experimenting as if you were purchasing a product on my www.fotoavm.com site. How do I fix the problem? you can see the problem in the link below

https://www.fotoavm.com/wp-content/uploads/2020/05/photo-not-visible.png

Please do not send same message regarding the same issue using different channel. It won’t make you acquire more priority.

To ask for support, you need to have a valid support license.

Meanwhile make sure you are running the latest plugin version (55.1) and that no 3rd party plugin are interfering. Make also sure to roll back to the last know configuration when the plugin was working.

Note also that the image preview is served by the server, so that issue most likely depends on a server issue, so there isn’t much I can do.

Try to investigate the server error log to have more clues about its malfunctioning and eventually contact the server maintained to have it fixed.

Hello

Even after filling in, this field always has a red border. How do I change the color? I’m using the Feedback box.https://monosnap.com/file/8toDT56AY0qHHlgy5OH1NiZWqeMxDx

I also needed to have two boxes instead of one. One box for Names and one for Dates. It’s possible?

Best regards

I’m really sorry, but there isn’t an easy way to achieve that that can be suggested in few lines via a comment :(

The plugin is not designed for that.

Hello again

I’ve pasted the code but it hasn’t changed. https://monosnap.com/file/Dd8L1hFGtpEaccHr4iIwv3bteeidKE

Make sure that the priority of that rule is higher than the default one by proper define the correct order.

Try eventually using the !important directive
.wcuf_feedback_textarea:required
{
    border: 1px solid blue !important;
}

Hi,

I am still having problems with your plugin, my guess is that there are problems with transmitting the files through your plugin. I checked the server, everything is ok. When I upload a certain amount of files I get Internal server error. Can I send you the files that I upload and a link with a product to make a test?

Ok clear, if you enabled the DropBox option, the issue then may be related to the transfer process by your server to the dropbox service.

Make sure that your server is not killing the PHP scripts while the copy process is still transmitting the data to the DropBox service. Try eventually to increase the PHP execution time parameter.

If still not working, try giving a look to the server error log to have more clues which actually causing the generic 500 server error log and have it fixed by the server maintainer.

Can you activate your dropbox option on your demo site so that I can make a test? Or can I send you some files so that you can make a test with dropbox enabled?

Note that the issue you are experiecing most likely depends on how the server is configured.

For example, if you are trying to upload a 10GB file and the PHP execution time is only 30 seconds, you will still experience the issue even on a test server. I would suggest investigating the server error log to have more clues about the cause of the error and make sure that your PHP settings are properly configured for big file transfers.

However, if you send me a private message (click on my name then use the low-right box) reporting your email address, I can give you access to a private demo site where you can set your dropbox key and perform a test. For the reasons I’ve reported earlier, however, it could have not much sense to perform that kind of test.

Hello,

is it possible to change the crop and upload buttom color? If yes can you pls write it down the css name of this element?

thnaks

Yes. If you analyze that element with the browser inspector tool you will find its class. It should be the wcuf_upload_drag_and_drop_area.

Just re-define its border attribute with the settings you need. Now it should be:
.wcuf_upload_drag_and_drop_area 
{
    border: 2px dashed #bbb;
}

Thanks a lot!

You’re welcome! :)

Please, If you enjoyed my efforts to assist you and/or my plugin consider leaving the 5 stars, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Have a great day! :)

Hello Error checking is only done after writing the 3D Secure code, which does not seem correct. How do I validate all checkout fields first and then ask for the 3D Secure code?

Hello,
I’m not sure to understand your scenario. To which 3D secure code are you referring? The plugin hasn’t any “3D secure code verification” or “checkout fields” validation features.

Dear Support,

I have two questions:

1, now, you able to add the product to the chart without upload the file. I can’t see the required upload message, but I set yes in the options.

2, if you uploaded the image, after put it to the cart, the upload zone doesn’t appaer again in the product page, so cant upload a new photo. This method is working as well in your product: https://www.codecanyon.eu/wcuf/product/product-4/ my product is: https://fotoblokk.hu/termek/fotoblokk/

Thanks your support!

Gabpr

  1. Make sure you have enabled the option to display the field before the product is added to the cart and the mandatory option. Make also sure you have not altered in any way the product page or the product type management. Try eventually disabling all the other 3rd parties plugins to see if any is interfering
  2. for this scenario you have to enable the add multiple times the products to cart option through the special menu. In that way, you can add the same product to cart and each instance can have its own files

Hello,

i can change the text of the buttons if one file is uploaded. But it wont work for multiple files. I want to change the text “Crop” and “Crop and upload” Thank you!

button id : wcuf_single_crop_button_0 and button wcuf_crop_button wcuf_remove_button_extra_content wcuf_crop_upload_button

Hello,
dynamic text can be customized (and translated) via the Text menu.

The other texts can be translated via the .pot translation file located in the language folder inside the plugin. Just use a po editor (like https://poedit.net/ ), create a .po file for your language, translate the strings you need, and save. It will create a .mo file that you have to save back with the .mo file into the language folder

The .po and .mo file must be named as woocommerce-files-upload-ru_RU.po and woocommerce-files-upload-de_DE.mo (where de_DE is the language code for Germany) 

Hi, I am using WPML translation plugin. I translated all areas except “Upload Images (Required)” section. how can i translate this area via WPML? Thanks in advance. Best Regards, Ozan

Hi Ozan,
for that kind of question on how translate static strings of a plugin via WPML, you should ask to their support team.

What I can say is that the static text have to be translated using the .pot translation file located in the language folder inside the plugin. Just use a po editor (like https://poedit.net/ ), create a .po file for your language, translate the strings you need and save. It will create a .mo file that you have save back with the .mo file into the language folder

Hello, how are you? I’m having a problem with a plugin that I’m trying to solve. When sending a 204 page PDF file, it ends up counting only 2 in the plugin. Do you know any way to solve this? Here’s a video trying to explain what’s going on.

https://www.youtube.com/watch?v=lmR4u-sImOA

Hi,
as reported in the plugin description page, the PDF must be properly encoded in order to allow the plugin to count the page. Please, make also sure to be running the latest 55.1 version that has also an improved function to count PDF pages, it may help.

Hello,

Would you have any suggestions for this problem? or cancel the purchase when this happens? I have the plugin updated in version 55.1. The plugin is excellent, I use it for a while on my site, but I end up losing some sales because of that :(

I’m really sorry but unfortunately there isn’t any way to detect if the number of pages matches the real number if the PDF is not properly encoded. This is why the requirement has been explicitly reported in the plugin description page.

In the latest plugin version, other than extracting the page count from the metadata, the plugin eventually tries to detect the page number via the Imagick PHP library. If both methods fail, there isn’t much to do.

The page count is performed in the WCUF_Media.php at line 744. You can try eventually to modify that function by using a 3rd party library. If you find any 3rd party library that is capable of properly reading the page count, just invoke it that function.

Hello there, Thank you for a very useful plugin. Is it possible to add a prefix to the uploaded file name, that is a sequence? As an example, if I am uploading 20 files, i need them numbered from 01 to 20. Thank you very much!

I’m sorry, it is not possible.

Altight thank you for that.

Just to let you know, I have updated the filename in WCUF_File.php to include a microtime timestamp. It is this allowed me sort the images without the need for additional coding. I know there’s someone that suggested it sometime back in this page, so I felt like sharing.

With regards to my previous inquiry, is it possible to automatically rotate all portrait photos to landscape at the time of upload? This will make it easier for users to use a single crop frame.

Thanks!

Thank you for letting me know!

Regardint the rotation, you can edit the WCUF_File.php and add at line 459 a custom code to manipulate the just uplaoded file. the file path is held by the $data[‘tmp_name’] variable.

The function that rotates the iamge is defined in the WCUF_Media.php at line 25: ajax_rotate_image(). It however has not been designed to be directly invoked on a file path.

Please help me get this plugin working asap.

Please do not open different thread regarding the same topic. It won’t make acquire you more priority. Process help request is not and instant service, it may require some time.

this plugin is not being displayed on my site after being installed and configured

and could you provide more details about the configuration you are using?

Make sure you have not enabled any option to restrict field visibility (by user role, payment gateway, order status,...). Give also a check to the browser error console to see if any error is reported.

Hi. I’ve been receiving javascript error notice related with my Rank Math CEO plug-in.

https://hizliresim.com/DpuXu9

I’m not sure what’s this related with, how can I fix it?

As you can read from the description, it seem that plugin is interfering with its javascript files.

Please go to the Options menu and enable the Force reloading 3rd party javascript libraries option. Then try again accessing the page to see if you still getting the error.

Note also that even if you are getting that error but you are still able to create, edit and save the upload field, you can safely ignore (you find an option in the Options menu, Show warning alert on Upload files configurator page, that disable the warning popup)

If none of the previous helped, you need to report that plugin to its developer in order to have if fixed: it has not to include its javascript in all admin pages but just in its pages.

Greeting Dear Author

We have website https://www.businessji.com in which we are using this plugin.

few days ago we faced one issue that after activation of this plugin customer was not able to checkout, and we really appreciate that you suggest us solution and its stared work.

once again we are facing the issue, 1. not able to upload photo as well as 2. after activation of plugin customer is not able to checkout( not able to fill shipping address or not able to select any payment options its getting disable.)

https://businessji.com/checkout/ here is the link you can check by visit as well as adding any product in cart and process for checkout page.

Please refer to the answer I’ve reported to the other comments you left regarding the same issue.

The issue is related to the custom checkout page you are using. To avoid that interference, edit the following css files:
  1. wcuf-frontend-cart.css.php remove line 17
  2. wcuf-frontend-checkout.css.php remove line 17
  3. wcuf-frontend-common.css.php remove line 39

Once done, go to the Options menu and click the Update button.

Remember also to purge browse and server cache.

Hello,

I tried to upload this app, but I can’t becuse this fault message:

The package cannot be installed. Invalid extensions found.

Extension installation error.

What can I do?

Thanks

Hi,
it is because you are trying to install the zip file that both contains the plugin and the documentation! :)

Unzip it, you fill find a file named woocommerce-upload-files.zip, that’s the one to install! :)

Prepurchase question. I just want to have one single product on my website to have this upload fie option. So, can i just limit this feature to that only one product?

Yes you can!

when creating the upload field, just restrict its visibility to the product you need by using the special option: https://www.dropbox.com/s/wn5g6wzomx3vjv7/wcuf_visibility_6.jpg?dl=0

Please use the demo site before purchasing to perform all the tests you need to be sure that the plugin actually fits your needs and expectations. In case you need further info, feel free to ask :)

Hi, I bought your plugin and should say that it is amazing ! I have an issue that perhaps you could help : the images are not loading on local server… I receive the order on my woocommerce admin but the downloading in empty. Thanks for your help, David

Hi David,
thank you for your appreciation :)

Unfortunately, without any further clue, it is quite hard to determine the cause. For “empty” you mean that the file is 0byte or that there are no files? In case there are no files please go to the Options menu and under the Checkout – Files to order association method area select the When the order is placed option.

In the case of 0byte files, It may depend on a server issue that for some reason is not properly storing files. It could also be that it has some security modules that are interfering with by crunching the file.

If you send me via private message (click on my name and then use the low-right box) the following data:
  1. your email address
  2. full admin access to the wp-admin area
  3. FTP access
  4. a detailed step by step guide on how to experience the issue

I can try to see if it is possible to determine the cause of the issue.

If you cannot share that data, try enabling the WordPress debug mode (https://wp-staging.com/docs/enable-wordpress-debug-log-mode/) reperform the test and see if in the debug.log located in the wp-content folder are reported more clues.

Try also giving a look at the server error console to see if any further info is reported.

At last, if none of the above helped, try disabling all the 3rd party plugins to see if any is interfering.

Hi, After 2 hours looking around I figured how to solve it :) And part of the problem was that I’ve been choosing to upload after payment… So now everything is goooood ! Thanks for your quick answer :) Just to know how to use the “upload after payment” ? Best, David

Glad to hear that! :)

For that just configure the upload field visibility in order the field to be visible only in the thank you page and/or the order details page.

In this way, the user will be able to perform an upload only after the order has been placed!

Eventually use the Order status option to make sure that the field is visible only when the payment has been properly performed (so enabling only the “processing” status, or the ones you need!)

Hi, Is it possible to modify quantity, after they have been added to the cart? Beside re-uploading the same file and adding more quantity from there, or deleting the file and re-adding it. Thank you

I’m really sorry, the plugin hasn’t such an option. Thank you however for your suggestion, I’ll do my best for a future release!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey