Jump to content

[Resolved] Admin side, default VAT


keat

Recommended Posts

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. ?

Link to comment
Share on other sites

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} &hellip;</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.

Link to comment
Share on other sites

Try this

   {if isset($TAXES)}
                  <select name="tax_type" id="tax_type" class="textbox">
                     <option value="">{$LANG.common.please_select} &hellip;</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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...