• Resolved tezalsec

    (@tezalsec)


    Hi Jose,

    considering you have done a lot to support woocommerce and all of its pages, I would like to suggest you add one other: the download link. This link was overlooked by me during the configurarion of your plugin, until customers complained they could not download their products.

    It is about this link:
    https://example.com/?download_file=1111&order=wc_order_bdfdgd etc…

    For performance, I dont want to load woocommerce on my frontpage, but the download link uses the frontpage, so it has to be handled differently.

    I solved it by creating this ‘custom frontend url’ rule:
    loading woocommerce on https://example.com/?download*

    This seems to work ok, but feels a bit unstable. Are there better solutions, and if yes, you might want to create a catch-all out of the box solution for woocommerce downloads?

    Thanks again.

    • This topic was modified 2 years, 8 months ago by tezalsec.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jose

    (@giuse)

    Hi @tezalsec

    thank you very much for reporting this issue.

    Better you use this match in the Custom URLs settings:

    *download_file=*order=wc_order_*

    It will be more stable because it still matches the download link but it’s more specific, and you don’t risk that it matches also other URLs that should not be matched.

    That said, this is something that should be improved.

    For this specific case, because WooCommmerce is very popular, in the future FDP will not disable any plugin if you have download_file as a query parameter. It will disable them only if you disable them in Custom URLs, but not if you disable them in Singles.

    Maybe I will change the menu item name “Custom URLs” with “URLs”, and it will have the sub-items “Custom Frontend URLs”, “Custom Backend URLs”, and “Important URLs”.
    If WooCommerce is installed, Important URLs will include the download link.
    I think it would be also a good idea to warn the user in the Singles settings.
    I have to think about the best solution. If you have ideas they are really welcome.

    Until this is improved I suggest you use *download_file=*order=wc_order_* in Custom URLs.

    Have a great day!

    Jose

    Thread Starter tezalsec

    (@tezalsec)

    Thanks Jose,

    I have no better ideas for now, other than asking the people from woocommerce to use another path, like /wc-download/ instead of the homepage. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘woocommerce download links support’ is closed to new replies.