View Single Post
  #25  
Old 02-22-2018, 10:30 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart v4.7.9: Skrill and PayPal updates, Store Notifications, SEO, Bug Fixes

Quote:
Originally Posted by Tim Soles
Secondly, a minor issue which goes back to the previous version or earlier is that when manually creating a new product the Apply Taxes field is not highlighted by default. It is easy to miss this because the field does show the tax rate, but you need click on it to highlight it for it to apply.

In /skin/common_files/main/product_details.tpl find

Code:
<option value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0} selected="selected"{/if}>{$taxes[tax].tax_name}</option>

and replace with

Code:
<option value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 or $new_product eq 1} selected="selected"{/if}>{$taxes[tax].tax_name}</option>

or if you need specific tax only selected (replace X with taxid)

Code:
{section name=tax loop=$taxes} <option value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 or ($new_product eq 1 and $taxes[tax].taxid eq 'X')} selected="selected"{/if}>{$taxes[tax].tax_name}</option> {/section}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote