• Resolved vtrn

    (@vtrn)


    I have many plugins that use filename field of the file of my WooCommerce downloadable product, to show the download button! WooCommerce also use this to display the file name in the user panel

    I don’t want to edit the filename field of all the products I also don’t want to edit the codes of those plugins and template

    Is there a way to symbolically and hypothetically change and set all filename? (just display it, not insert it into the filename field)

    i think WooCommerce should to introduce the file name as I choose. For example, tell everyone file name of all file is “free download”, not “ps-action.zip”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @vtrn,

    Thanks for reaching out.

    WooCommerce does not have a built-in feature to change the filename of downloadable products.

    However, you can achieve this by using a custom function that will overwrite the filename just for display purposes, without affecting the actual filename in the database or your plugins. This will involve custom coding.

    I’d suggest reaching out to a developer, as this involves custom coding and implementations. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

    Thread Starter vtrn

    (@vtrn)

    Hi thanks
    Can you provide me with more information?
    Like Hook/Filter/Function that does this

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @vtrn,

    You might need to use the woocommerce_account_view_order hook in conjunction with a custom function to alter the display of the filename.

    Please note that writing or providing custom code is not within the scope of our support policy. For development and custom coding questions, it’s best to ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing the all filename field of WooCommerce products’ is closed to new replies.