Default tax category to none

  • Posts: 199
  • Thank you received: 12
  • Hikashop Business
10 years 2 months ago #205001

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 3.5
-- Browser(s) name and version -- : Chrome

On the new version 2.5.0 When I create a new product the default tax category is set to none. How can I set the default tax category as selected when creating a new product?

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #205018

Hi,

You can edit the view "product / form" in the backend template and add the code:

if(!isset($this->product->product_tax_id)) $this->product->product_tax_id = 'XX';
Before:
echo $this->categoryType->display('data[product][product_tax_id]', @$this->product->product_tax_id, 'tax');

And replace XX by the id of the desired tax category.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum