You can hook into woocommerce_variable_price_html and reformat the price to include or. This will replace the – with or on all products with multiple differing prices.
add_filter('woocommerce_variable_price_html', 'custom_variation_price_seperator', 10, 2);
function custom_variation_price_seperator( $price, $product ) {
$price="";
$prices = $product->get_variation_prices( true );
$min_price = current( $prices['price'] );
$max_price = end( $prices['price'] );
if ( !$product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) {
$price = $min_price !== $max_price ? sprintf( _x( '%1$s <span class="or">or</span> %2$s', 'Price range: from-to', 'woocommerce' ), wc_price( $min_price ), wc_price( $max_price ) ) : wc_price( $min_price );
}
return $price;
}
Related Posts:
- How to display empty stars on products with woocommerce?
- Remove the link from the thumbnail and product title on woocommerce
- Can’t Change WooCommerce Default Language to Spanish (Mexico)
- Create a regular post for every WooCommerce order
- Multiple Pricing [closed]
- Link a button to woofunnels model
- Add sub variations in product page
- Woocommerce + Google Analytics (Conversion Rate Not Working)
- How to select the first product variant as a default?
- WordPress Development Workflow
- WooCommerce Stripe Test mode
- Possible to have multiple Authorize.net accounts on the same site?
- How to allow registration only from a certain location?
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]
- Account Status/Login on Main Menu with Avatar Pictures
- How to get current product category ID in product archive page
- WooCommerce prices location in DB
- WP/WooCommerce REST API cart/checkout/order [closed]
- Fatal Error when installing woocommerce despite upgrading
- Adding an action within a function that is being called by add_filter
- Hide Add to Cart Button
- How to modify “[Product] has been added to your cart” in WooCommerce?
- woocommerce fail to replace template string in email title [closed]
- Why do Woocommerce templates use hooks rather than get_template_part
- Woocommerce checkout via external page [closed]
- Change font size in products listing pages in woocommerce
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Trying to disable slider for WooCommerce price filter [closed]
- Hide “Delete Note” link in Order Notes Panel
- Exclude products with a stock lower than the low stock threshold from the shop loop [closed]
- Woocommerce reviews xss issue [closed]
- Unable to update Woocommerce Product Permalink
- wp_customize – detect post type to show/hide customizer options
- Woocommerce get billing state manually
- WooCommerce quick checkout form? [closed]
- woocommerce cart item remove ajax not working in hosted site [closed]
- Set woocommerce product price based on dealer location [closed]
- How can I custom order the product display?
- WordPress plugin cloak link [closed]
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Update Causing Internal Server Error [closed]
- How can I pass a custom/dynamic product to the Woocommerce cart?
- How to display Woocommerce variations prices and descriptions
- How to override the title tag for woocommerce endpoints?
- How to rewrite product permalinks in Woocommerce to use category slugs
- How to re-arrange this hooked content?
- Pre filter woocommerce products to remove a certain category of products
- woo product , wp_insert_post() never displays on the front end. What gives? [closed]
- Single product page doesn’t display price
- Should I use docker in wordpress production?
- can’t get the product id in single woocommerce page
- Php echo woocommerce price
- Different files for order details
- Multiple Schema.org markups on a single product page
- Woocommerce – Adding row to cart table
- WooCommerce get_author_posts_url() – Author URL redirecting to shop base
- Error message if user is buying less than 200 euros of a given product [closed]
- WooCommerce show a variation both in check boxes and in a list
- Woocommerce – How to mix products and posts on a landing page?
- Disable woocommerce product search plugin’s autocomplete [closed]
- Override une fonction dans une class Woocommerce
- What to do if images are not displayed in mob. versions of the online store on wordpress?
- WooCommerce (Bookings) + AddOns not always calculating correctly the total
- Woocommerce order proceed hooks
- How can i get the code of Shop Page Woocommerce?
- WooCommerce custom product type not saving with namespaces
- Add shortcode to show woocommerce shipping class name on product template
- Redirecting orders by company field
- Upload file to Woocommerce Order
- wp_login overriding user meta data
- pass a woocommerce product name to contact form7?
- Woocommerce List categories with Image thumbnail
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- Display WOO Commerce products on HTML page?
- How to add custom text field inputs for attributes in backend?
- Get unsolved array keys of product data tabs in woo product editor page
- Show products as posts on archive page
- Woocommerce new shop page
- Add class to latest item Woocommerce
- Replace “Add to cart” by a link to contact page on specific product
- Adding price to woocommerce cart item with get_price gets multiplied with 3?
- Use Product Attribute in conditional tag
- Woocommerce categories displayed on every category and shopping page
- Admin – Custom Post Type in WooCommerce menu – how to control menu order
- Facing issue in Woocommerce 3.3 version in wordpress
- getting attributes in a product loop
- Update products, terms and relations via SQL
- How to Display Amount of products being displayed out of the amount in category – WordPress/Woocommerce
- How to programatically create a WooCommerce downloadable product?
- Echo SKU in WooCommerce Conformation page [closed]
- Custom sender email address for specific WooCommerce product
- Adding Extra Customer Email In Woocommerce Checkout
- How to override email text New Customer Order?
- How do I create a array custom field for use with facetwp.com?
- How to add my theme’s style to woocommerce blocks?
- Get a customer’s phone number by woocommerce
- Insert a custom field as a second email address to a completed order in WooCommerce
- Want to add Number of Products added by each shop manager in users list
- WooCommerce Webhook Action When a New Product Review was Submitted/Created