Woocommerce Digital Download Products - Encoded URLs

Hello,

i’m using make.com to create a woocommerce product. i sell digital products. to add files for download, i need to enter the URL or absolute path to the file that customers will access. but the URLs must already be encoded.

Normally, encoding is done automatically when I upload the file to wordpress.
But in this situation the product is not yet uploaded to wordpress. Precisely, because I want to automate everything on make.com.

I’d like to retrieve the automatically generated file from google drive and automatically upload it to make.com when I use product creation on woocommerce.

i hope i have explained my problem well, i thank you for your kind effort to help me.

Welcome to the Make community!

You can use the built-in function encodeURL

e.g.:

{{ encodeURL(1.url) }}

Screenshot_2024-08-21_080856

For more information, see the function documentation in the Help Center.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Thank you very much for your prompt reply.
I think I misunderstood. In fact, I’m not looking to encode a link, but rather to retrieve the encoded link. Let me explain, the solution I’m looking for is how to upload a ppt file to woocommerce directly from Make and get the encoded URL to insert it in “File URL”.

I don’t use WooCommerce, so you need to provide more information about the rest of your scenario, and an example output bundle from uploading the file to Woocommerce (whichever module that is).

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!