Show range of prices instead of basic price
-
I have some variable products and the price for them is, well, variable, as you can see here: https://leandroperez.com.ar/tienda/categoria/copias-fine-art/los-seismiles-cfa/
They have a range of prices, from min to max.Is it possible to show that in products with Woo Price Calculator applied?
Right now I only see basic prices for those kind of products, as you can see here: https://leandroperez.com.ar/tienda/categoria/timelapse/los-seismiles/
I’d like to show min and max as well on those.
Edit: I’m thinking maybe even adding the min and max prices manually to templates/loop/price-php just to products with the calculator.
This is my code right now:
<?php if ( $product->is_type( 'variable' ) && $price_html = $product->get_price_html() ) : ?> <span class="price"><?php echo $price_html; ?></span> <?php elseif ( $product->is_type( 'simple' ) && $price_html = wc_price($product->get_price() ) ) : ?> <span class="price"><?php echo $price_html; ?></span> <?php endif; ?>
Is there a way to tell if a product has a calculator enabled so I can use it in an if statement?
Thank you
The page I need help with: [log in to see the link]
- The topic ‘Show range of prices instead of basic price’ is closed to new replies.