Tweak Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

Stop variations from being preselected

1) Change advanced config preselect_variation to be 0.

By default, when loading a product with variations, Neto will load the parent product first, then select a variation of the product as a default to load the values in the ajax templates. By turning off this configuration, Neto will not select a variation by default and using the new code below, will hide buying options until the user is forced to select a variation to purchase.

Note: if you don't know how to modify configurations in Neto, contact support.

2) Add logic to add to cart button

<div class="col-xs-12">
    [%if [@has_variation@]%]
        <a class="btn btn-success disabled btn-lg btn-block" >Select Options Above</a>
    [%else%]
        [%if [@store_quantity@] > 0 AND [@preorder@] %]
            <button type="button" title="Add to Cart" class="addtocart btn btn-success btn-block btn-lg btn-loads" data-loading-text="<i class='fa fa-spinner fa-spin' style='font-size: 14px'></i>" rel="[@rndm@][@SKU@]"><i class="fa fa-clock-o icon-white"></i> Pre-Order Secure Now</button>
        [%elseif [@store_quantity@] > 0 AND ![@preorder@] %]
            <button type="button" title="Add to Cart" class="addtocart btn btn-success btn-block btn-lg btn-loads" data-loading-text="<i class='fa fa-spinner fa-spin' style='font-size: 14px'></i>" rel="[@rndm@][@SKU@]"><i class="fa fa-shopping-cart icon-white"></i> Add to Cart</button>
        [%elseif [@store_quantity@] < 1 AND [@config:allow_nostock_checkout@] %]
            <button type="button" title="Add to Cart" class="addtocart btn btn-warning btn-block btn-lg btn-loads" data-loading-text="<i class='fa fa-spinner fa-spin' style='font-size: 14px'></i>" rel="[@rndm@][@SKU@]"><i class="fa fa-clock-o icon-white"></i> Backorder</button>
        [%else%]
            <a class="notifymodalactivate btn btn-info btn-lg btn-block" data-fancybox-width="400" href="#notifymodal"><i class="fa fa-envelope"></i> Notify Me</a>
        [%/if%]
    [%/if%]
</div>

3) Change form options for variations to not have any default values

<!-- Not exactly this code, this is just the gist of it -->
<select class="_itmspec_opt form-control" ref="[@specific_id@]">
    <option value="" selected disabled>[@specific_name@]</option>
[%/param%]
[%param *variation_body_select%]
    <option value="[@value_id@]" >[@value_name@]</option>
[%/param%]
[%param *variation_footer_select%]
</select>