[Skip to main content](#vessel-content)

#   Default Tax Drop Down when adding new products

##

- **[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")**
- [![eileensemporium's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37550-eileensemporium "View eileensemporium's Profile") Topic Author
- [ Offline](/forum/user/37550-eileensemporium)

Less More

- Posts: 54
- Thank you received: 0
-
-

10 years 1 week ago [\#255510](#255510) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#255510 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")* was created by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")*

-- HikaShop version -- : HikaShop Business 2.6.4 [1610121552]
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.4

Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.

I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 1 week ago [\#255516](#255516) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#255516 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

Hi,

By default, it's the last tax category that you created that is preselected when you create a new product.
None should never be available unless you deleted all your tax categories or messed with the category tree data.

You can see that on our demo website if you create a new product:
[ demo.hikashop.com/administrator/index.ph...trl=product&amp;task=add](https://demo.hikashop.com/administrator/index.php?option=com_hikashop&ctrl=product&task=add)

So if you deleted all your tax categories, recreating one would have it selected by default.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")**
- [![eileensemporium's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37550-eileensemporium "View eileensemporium's Profile") Topic Author
- [ Offline](/forum/user/37550-eileensemporium)

Less More

- Posts: 54
- Thank you received: 0
-
-

10 years 1 week ago [\#255568](#255568) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  Replied by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#255568 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

The tax category I use is the same for all products and was added last.

If you could tell me the location of the form for entering the default I'll modify it for my needs - thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 1 week ago [\#255579](#255579) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#255579 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

Hi,

It's done in the file administrator/components/com_hikashop/views/product/view.html.php with the code: Code:

$categoryClass = hikashop_get('class.category'); $mainTaxCategory = 'tax'; $categoryClass-&gt;getMainElement($mainTaxCategory); $query = 'SELECT category_id FROM '. hikashop_table('category'). ' WHERE category_type = ' . $db-&gt;Quote('tax') . ' AND category_parent_id = '.(int)$mainTaxCategory.' ORDER BY category_ordering DESC'; $db-&gt;setQuery($query); $product-&gt;product_tax_id = $db-&gt;loadResult();

The following user(s) said Thank You: [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")**
- [![eileensemporium's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37550-eileensemporium "View eileensemporium's Profile") Topic Author
- [ Offline](/forum/user/37550-eileensemporium)

Less More

- Posts: 54
- Thank you received: 0
-
-

10 years 1 day ago [\#255971](#255971) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  Replied by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#255971 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

It turned out to be easier than that - I noticed that there is an order by in the query (ORDER BY category_ordering DESC) so I just created a dummy unpublished category and sorted the order of the categories accordingly, now the default category is the one I require

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Udo](/forum/user/29928-udo "View Udo's Profile")**
- [![Udo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29928-udo "View Udo's Profile")
- [ Offline](/forum/user/29928-udo)

Less More

- Posts: 220
- Thank you received: 8
-
-
-

9 years 8 months ago [\#264990](#264990) by [Udo](/forum/user/29928-udo "View Udo's Profile")  Replied by *[Udo](/forum/user/29928-udo "View Udo's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#264990 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

Hi,

I understand the last tax category created is preselected when creating a new product.
This is very impractible.
Until recently all products in my shop used the same tax category, But I had to add a new tax category for a few products. I will use this new tax category for these products only.
Now this tax category is preselected in every new product and I have to correct this in every new product. Mistakes are unavoidable.

So I've looked for a way to get the default tax category preselected.
Using the solution of eileensemporium doesn't work. It results in preselecting None.

Nicolas suggests deleting all tax categories and creating new ones.
Having 800 products this is no way to go.

Is there really no other way? Perhaps an override of a view?

Thanks,
Udo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 years 8 months ago [\#265008](#265008) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#265008 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

Hi,

As you can read in this thread, the system doesn't use the last created tax category but the one with the higher ordering (which is the last one by default, unless you change the ordering of the tax categories).
So change the ordering of the tax categories on the tax categories listing and you'll be done easily.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Udo](/forum/user/29928-udo "View Udo's Profile")**
- [![Udo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29928-udo "View Udo's Profile")
- [ Offline](/forum/user/29928-udo)

Less More

- Posts: 220
- Thank you received: 8
-
-
-

9 years 8 months ago [\#265052](#265052) by [Udo](/forum/user/29928-udo "View Udo's Profile")  Replied by *[Udo](/forum/user/29928-udo "View Udo's Profile")* on topic *[Default Tax Drop Down when adding new products](/forum/40-taxes/887533-default-tax-drop-down-when-adding-new-products#265052 "-- HikaShop version -- : HikaShop Business 2.6.4 &#91;1610121552&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4  Is it possible to change the order the list of tax categories when creating a new product? The none is always default so either adding 'selected' to my drop down options or changing the order would help.  I notice that you can have a none category with a tax rate applied I don't have that category with tax, would re-creating that help? If so how would I do that thanks?")*

Hi,

It's as easy as that!
I've tried reordering the tax categories before, but then I put the default tax category on position 1.
Now I've put it on the last position. And hurray, it's preselected in new products.

Thanks a lot!

Udo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NzUzMy1kZWZhdWx0LXRheC1kcm9wLWRvd24td2hlbi1hZGRpbmctbmV3LXByb2R1Y3RzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
