• Resolved ajotka

    (@ajotka)


    Price range is always from 0 to 0. (first image)
    But I can change slider, then I can see filtered list of products and I have price params in URL. (second image, look at URL params)

    Same bug is when other plugins are deactivated & in Storefront theme.

    Plugin: 1.3.9
    WordPress: 6.1.6
    PHP: 8.1

    • This topic was modified 2 years, 1 month ago by ajotka.

    The page I need help with: [log in to see the link]

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

    (@ajotka)

    Hi!
    I found a solution on my own.
    In includes/class-wpf-form.php lines 1022 & 1024 should by ‘0’ in str_replace, instead of ‘0000’.

    <?php echo str_replace( '0', '<span class="wpf-price-min">' . ( empty( $from ) ? $min : $from ) . '</span>', wc_price( 0, array( 'decimal_separator' => '', 'decimals' => 4 ) ) ); ?>
    -
    <?php echo str_replace( '0', '<span class="wpf-price-max">' . ( empty( $to ) ? $max : $to ) . '</span>', wc_price( 0, array( 'decimal_separator' => '', 'decimals' => 4 ) ) ); ?>

    Let me know when new version with fix will be ready.

    Plugin Author themifyme

    (@themifyme)

    Hi,

    I’m glad it’s resolved and thank you for sharing the solution. If you need help with anything else, please open a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Amount is always 0’ is closed to new replies.