Hello together, I have already coded that if you click on the variants, you will be taken to a separate product page. But I have the following challenge. For example, if I click on the choclate variant then it comes to the Choclate product page, but the selection remains with Carott. I would like the selection to remain with Choclate, in other words the second one. (In fact if you try it twice then the selection stays with choclate, but I want it to work directly the second time) see picture
I will gladly send you the snipperts/product-variant-picker.liquid
{% comment %}> Renders product variant-picker> Accepts:> - product: {Object} product object.> - block: {Object} passing the block information.> - update_url: {Boolean} whether or not to update url when changing variants. If false, the url isn’t updated. Default: true (optional).> Usage:> {% render ‘product-variant-picker’, block: block, product: product %}> {% endcomment %}> {%- unless product.has_only_default_variant -%}> {%- if block.settings.picker_type == ‘button’ -%}> > {%- else -%}> > {%- endif -%}> {%- endunless -%}> >


