Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Display Price For Variable Product With Same Variations Prices
- add_filter('woocommerce_available_variation', function ($value, $object = null, $variation = null) {
- if ($value['price_html'] == '') {
- $value['price_html'] = '<span class="price">' . $variation->get_price_html() . '</span>';
- }
- return $value;
- }, 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement