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/[url removed, login to view]
and function is probably:
$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->[url removed, login to view] $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
8 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
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