I want to have a default variation option selected without having to go through every Product in woocommerce

Ditutup Dipasang 6 tahun yang lalu Dibayar saat pengiriman
Ditutup Dibayar saat pengiriman

As in title i want to have a default variation option selected without having to go through every Product in WooCommerce.

The file is /woocommerce/single-product/add-to-cart/[login to view URL]

and function is probably:

<?php

$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->[login to view URL] $attribute_name );

wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) );

?>

I would like to be able to modify it so that all my products have the first selected variable Thank you

eCommerce Kereta Belanja WooCommerce

ID Proyek: #14582398

Tentang proyek

5 proposal Proyek online Aktif 6 tahun yang lalu

5 freelancer rata-rata menawar €29 untuk pekerjaan ini

cmitexperts

Hi there! Did go through your Job Description and glad to share that I have experience in working with wordpress platform. I have more than four years of industry experience and have been the part of diverse industr Lebih banyak

€23 EUR dalam 1 hari
(40 Ulasan)
5.7
VnBestSolutions

Dear Sir. I had read your descriptions about project. Kindly give me a chance, i would like to discuss more about project and sure everything clear. I am a developer very strong in below skills. + Core: Php, Ruby, J Lebih banyak

€54 EUR dalam 1 hari
(46 Ulasan)
5.6
tanpn89

Hi, I understand your requirement. I can implement it for you. Please contact me so we can discuss more. Regards, Tan.

€25 EUR dalam 1 hari
(9 Ulasan)
4.8
phuongantran

Hello, I found your job post and I’m very interested in your project. As an experienced WooCommerce, I think I am who you’re looking for. Thank you for your consideration, An Tran

€20 EUR dalam 1 hari
(5 Ulasan)
2.7
rinkal7

We have many Years of Experience in PHP, HTML, CSS, MySQL, Wordpress, Apache Server, ASP.Net ( C# and Vb.Net ) Android & IOS etc. We have a team for fixing errors and bugs. I always think outside the box to provide Lebih banyak

€23 EUR dalam 1 hari
(1 Ulasan)
0.0