When I add product, under the data tab, how do I change the tax class from the default (---None---) to the tax rate I have setup, (the tax is already set up and is in the dropdown).
Thanks, bob
Reason: Title adjusted + Topic moved
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
does that help, thanks bob
This is not possible atm.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I think you have a legit feature request herebcfl wrote:Yes, I understand, should I submit a feature request?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Yes it is!i2Paq wrote:So you want to set a default tax-class for products.
This is not possible atm.
Try this.
In "admin/controller/setting/setting.php" (before the $ignore array), insert the following:
Code: Select all
// Default tax class
$this->data['entry_tax_class'] = $this->language->get('entry_tax_class');
$this->load->model('localisation/tax_class');
$this->data['tax_classes'] = $this->model_localisation_tax_class->getTaxClasses();
if (isset($this->request->post['config_tax_class_id'])) {
$this->data['config_tax_class_id'] = $this->request->post['config_tax_class_id'];
} else {
$this->data['config_tax_class_id'] = $this->config->get('config_tax_class_id');
}
// End default tax class
Code: Select all
// Default tax class
$_['entry_tax_class'] = 'Default Tax Class:';
Code: Select all
<tr>
<td><?php echo $entry_tax_class; ?></td>
<td><select name="config_tax_class_id">
<option value="0"><?php echo $text_none; ?></option>
<?php foreach ($tax_classes as $tax_class) { ?>
<?php if ($tax_class['tax_class_id'] == $config_tax_class_id) { ?>
<option value="<?php echo $tax_class['tax_class_id']; ?>" selected="selected"><?php echo $tax_class['title']; ?></option>
<?php } else { ?>
<option value="<?php echo $tax_class['tax_class_id']; ?>"><?php echo $tax_class['title']; ?></option>
<?php } ?>
<?php } ?>
</select></td>
</tr>
Code: Select all
$this->data['tax_class_id'] = 0;
Code: Select all
$this->data['tax_class_id'] = $this->config->get('config_tax_class_id');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Thanks!
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Default Tax Class for OpenCart 1.5.1 (should work for 1.5.0.x as well).
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
In English it is OK, do I need anything to get it also in Dutch?
Edit:
I see, I needed to add the Dutch related settings in the xml.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
open "admin/controller/catalog/product.php" go to line 832 or where you find:
Code: Select all
$this->data['tax_class_id'] = 0;
ie: admin/index.php?route=localisation/tax_class/update&token=cb9c3c67af54oueu440d7efe8983257&tax_class_id=9
So in my case i change it to:
Code: Select all
$this->data['tax_class_id'] = 9;
but keep in mind it wont adapt if you delete that tax class and recreate it...
Users browsing this forum: No registered users and 31 guests