A
A
akgrigoriy2020-07-01 02:59:27
WooCommerce
akgrigoriy, 2020-07-01 02:59:27

How to change product variation display location in woocommerce product card?

Good day!
The crux of the problem: there are products (parkas, jackets), the "size" attribute has been created for them in woocommerce, at the moment the jacket size selection table (product variations) is displayed above the "add to cart" button, and you need to move this block above, for example, under the price of the goods or above the article (I attach the screen).
5efbd1d50dde0075082342.jpeg

Can you please tell me how to do this, what hooks to use or what code to add to woocommerce templates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2020-07-01
@AntonLitvinenko

Variations refer to the woocommerce_template_single_add_to_cart function, which is hung on the woocommerce_single_product_summary hook. And they actually lie inside the same form with the add to cart button.
It is unlikely that you will separate them from the add to cart button, unless you transfer them along with the buttons.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question