( ! ) Warning: A non-numeric value encountered in /Users/ericdowns/Local Beta Sites/spcindustrialcom/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 227
We do not have prices for our products. Rather a customer adds items to their carts, submits the order with no payment and our customer service reps reach out with a quote.
Is there a workaround for this or do we need to make all of our products have a price of $0? Ideally, there is something we can drop-in functions.php to address this.
Thanks for looking!
]]><input class="hidden-price" name="hidden-price" type="hidden" value="<?php echo $product->get_price() ?>" />
<input class="hidden-price" name="hidden-price" type="hidden" value="<?php echo $value['display_price'] ?>" />
This input fields are used so I can calculate price based on quantity. I have some products with regular price & some with wholesale price. I couldn’t find any way to get the numeric wholesale price without the markup.
Found a similar thread but I am bit confused how to use it.
$product->get_price_html()
or $value['price_html'];
shows with markup.
How can I get the numeric value only?
]]>I have spent some time reading and searching but I still didn’t find a way to solve this problem.
For each post I have custom-fields with numeric values. I would like a way to create a page with a list of posts ordered (in ascending or descending order) by the value of that custom-field.
I found this plugin https://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/ that makes the list but doesn’t have (yet) the ability to order the posts by the value in the custom-field (just by date, title,..)
There must be a way to do this because I find it very useful to present a list of the posts of a blog ordered by rating, for instance.
In my blog (it’s a movie quiz – https://www.iknowthatmovie.com) I have three numeric values for each post:
1) classification of the quiz’s difficulty as voted by users
2) number of users who have seen that film
3) time to solve the quiz (in minutes)
I would like to create pages with a list of posts oredered by these numeric values.
Can anyone help me?
]]>