J
J
jazzman72018-06-15 15:50:38
WordPress
jazzman7, 2018-06-15 15:50:38

How to make additional criteria for woocommerce product?

Good day. How to make a choice of packaging and product size as in the screenshot? When choosing different options, the price also changes.
image.png
Did through attributes, it turned out not quite right.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yanchevsky, 2018-06-15
@jazzman7

Well, yes, in the admin panel they are my attributes. do not fit because the price starts to be displayed through a dash

Why don't you want to use hooks and refine it?
I think you can try this
add_filter('woocommerce_variable_price_html', 'dco_woocommerce_variable_price_html');

function dco_woocommerce_variable_price_html($price) {
    $array = explode(' – ', $price);
    return '<span class="price-from">от</span> ' . $array[0];
}

Well, this is again either manually modifying it, or selecting a plugin. For example, Variation Swatches for WooCommerce .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question