I'm trying to have swatch option values selected on the Product View page if only one value exists.
also, I have tried this reference but not working for me
https://magento.stackexchange.com/a/176243/68695
like :
Note: when one swatch value available then this value is auto selected and remove validation message
Best Answer
i have solved following way..
open below file if exist otherwise overide
Make changes in the
_RenderControls()
function as shown below.after end of this function add like this code
after run below command