keat Posted April 25, 2017 Share Posted April 25, 2017 When adding the occasional new product, i keep forgetting to add VAT from the drop down. I've done this so many times, I care not to mention. Is there a way to have the cart default to VAT when adding a new product, rather than having to manually select it. ? Quote Link to comment Share on other sites More sharing options...
Noodleman Posted April 25, 2017 Share Posted April 25, 2017 https://github.com/cubecart/v6/issues/857 Similar to this request, raised in 2015. Quote Link to comment Share on other sites More sharing options...
keat Posted April 25, 2017 Author Share Posted April 25, 2017 Possibly, but I guess an edit in the admin skin would suffice, if i only knew how. Quote Link to comment Share on other sites More sharing options...
ayz1 Posted April 25, 2017 Share Posted April 25, 2017 The default value in the inventory table for tax_type is 0 can you not just set this to the value that you need as the new default e.g. 1 or 2? Quote Link to comment Share on other sites More sharing options...
keat Posted April 25, 2017 Author Share Posted April 25, 2017 I assume an edit in here somewhere ?? admin/skins/templates/product.index.php <div> <label for="tax_type">{$LANG.catalogue.tax_class}</label> <span> {if isset($TAXES)} <select name="tax_type" id="tax_type" class="textbox"> <option value="">{$LANG.common.please_select} …</option> {foreach from=$TAXES item=tax}<option value="{$tax.id}"{$tax.selected}>{$tax.tax_name}</option>{/foreach} </select> {else}{$LANG.catalogue.no_taxes_setup}{/if} </span> </div> 4 minutes ago, ayz1 said: The default value in the inventory table for tax_type is 0 can you not just set this to the value that you need as the new default e.g. 1 or 2? I can do this for any product which I've forgotten to add tax, but I still keep making the same schoolboy error, so I'd prefer a the tax class to default to CucbeCart_tax_class .id=1 in the admin side when adding a new product. Quote Link to comment Share on other sites More sharing options...
ayz1 Posted April 25, 2017 Share Posted April 25, 2017 Try this {if isset($TAXES)} <select name="tax_type" id="tax_type" class="textbox"> <option value="">{$LANG.common.please_select} …</option> {foreach from=$TAXES item=tax}<option value="{$tax.id}"{$tax.selected}>{$tax.tax_name}</option>{/foreach} <option selected="selected" value="1">Standard Tax</option> </select> Make sure value="1" is the correct value in your setup. Quote Link to comment Share on other sites More sharing options...
keat Posted April 25, 2017 Author Share Posted April 25, 2017 My standard tax class is called VAT, so adding <option selected="selected" value="1">VAT</option> appears to have done the trick. Much appreciated. Saves me having to explain to staff why the taxes don't tally. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.