Post by bobbyacker » Sat Sep 19, 2015 2:00 am

How can I set the default tax class to "Taxable Goods"?
Thanks, Bobby

Newbie

Posts

Joined
Sun Sep 06, 2015 8:49 am

Post by motion2082 » Tue Sep 22, 2015 2:18 pm

Manually update the "tax_class_id" in your "oc_product" table to the same as your "taxable goods"

Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by webplus » Tue May 23, 2017 10:05 am

Can anyone tell me how to do this, please
i have the same question

This is when entering a product, I need the Tax class to set " Taxable Goods" as default - at the moment it is "none"

New member

Posts

Joined
Wed May 16, 2012 5:25 pm

Post by webplus » Tue May 23, 2017 10:46 am


New member

Posts

Joined
Wed May 16, 2012 5:25 pm

Post by Guybonin » Wed Oct 17, 2018 5:32 am

Hi I am looking for the same solution. Please help.
I have opencart 3.0.2.

Newbie

Posts

Joined
Wed Oct 03, 2018 12:42 pm
Location - United States

Post by Johnathan » Wed Oct 17, 2018 10:27 pm

Code: Select all

IN:
/admin/controller/catalog/product.php

REPLACE:
$data['tax_class_id'] = 0;

WITH:
$data['tax_class_id'] = 9;

The default tax_class_id for the "Taxable Goods" tax class is 9, but if yours is different you should use that value in the replaced code.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Guybonin » Mon Oct 22, 2018 10:33 am

Thank You it worked great. Now I can import my csv file without any modification.

Newbie

Posts

Joined
Wed Oct 03, 2018 12:42 pm
Location - United States

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 9 guests