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

Join Date: Apr 2007
Posts: 14,041

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

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

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

and replace with

<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)

{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
Web Development
Reply With Quote