Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter doanthaoan

    (@doanthaoan)

    Hello Nick,

    Thank you, it would be nice to have that option!

    There are one thing which I noticed, the URL automatically get to current min/max prices as parameters, especially in case we select the option Apply parameters from the address bar to display filter items. So please considering this case when you adding this new feature.

    Best regard,

    An Doan

    Thread Starter doanthaoan

    (@doanthaoan)

    I found a walkaround for working with Polylang like this:
    Edit download-monitor/includes/class-dlm-download.php
    Search function: public function get_the_download_link()
    Replace:
    $endpoint = ( $endpoint = get_option( 'dlm_download_endpoint' ) ) ? $endpoint : 'download';
    with this:
    $endpoint = ( $endpoint = get_option( 'dlm_download_endpoint' ) ) ? pll_current_language().'/'.$endpoint : pll_current_language().'/'.'download';

    In short, just rebuild the link with current polylang language. This one only work with Polylang.
    I hope someone will find out better solution for this. And please share with me.

    Thank you.
    An Doan

    • This reply was modified 9 years, 2 months ago by doanthaoan.
Viewing 2 replies - 1 through 2 (of 2 total)