Skip to content

Commit

Permalink
Merge pull request #12 from svenrudolph/fixes/ceil_max_price
Browse files Browse the repository at this point in the history
maxPrice is supposed to be int, so always ceil the value


Thanks @svenrudolph.
  • Loading branch information
scottyzen authored Apr 18, 2024
2 parents f861b10 + 66b87e2 commit be4acad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woonuxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ function global_setting_callback()
while ($loop->have_posts()):
$loop->the_post();
global $product;
$options['maxPrice'] = $product->get_price();
$options['maxPrice'] = ceil($product->get_price());
endwhile;
wp_reset_query();

Expand Down

0 comments on commit be4acad

Please sign in to comment.