Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Always Have Vat Checked Rate Topic   - - - - -

 
  • gijoy
  • Advanced Member
  • Members
  • Join Date: 29-Feb 16
  • 60 posts

Posted 30 May 2019 - 10:35 AM #1

When we create a new product manually, we sometimes forget to check the VAT button. Is there a way to have it checked by default? 

We have a "vat low" rate and a "vat high" rate and i would like to have the last one checked by default in the create product page. 



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 855 posts

Posted 30 May 2019 - 01:32 PM #2

Hello gijoy

 

This requires adding an addon to the program which will set the tax rate automatically.

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 30 May 2019 - 01:36 PM #3

design/backend/templates/views/products/update.tpl

 

replace

<input type="checkbox" name="product_data[tax_ids][{$tax.tax_id}]" id="elm_taxes_{$tax.tax_id}" {if $tax.tax_id|in_array:$product_data.tax_ids}checked="checked"{/if} value="{$tax.tax_id}" />

with

<input type="checkbox" name="product_data[tax_ids][{$tax.tax_id}]" id="elm_taxes_{$tax.tax_id}" {if $tax.tax_id|in_array:$product_data.tax_ids || !$id}checked="checked"{/if} value="{$tax.tax_id}" />

Then clear cache and check the result


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.