Handling is working fine, but the cart charges Handling on ALL products - even downloads.
How do I exempt downloads from the Handling Fee?
I tried making a new tax class called "Digital download" and then apply the Handling fee to only "Taxable Goods". But that didn't work.
Any thoughts would be helpful.
Thanks
How do I exempt downloads from the Handling Fee?
I tried making a new tax class called "Digital download" and then apply the Handling fee to only "Taxable Goods". But that didn't work.
Any thoughts would be helpful.
Thanks
You dont apply the tax class.. that just tells if that fee should be taxed as well.
Handling fee is a "cart-level" fee and doesn't check the products. But you can add filtering easily:
1. EDIT: catalog/model/total/handling.php
2. FIND:
3. REPLACE WITH:
Probably should be a core change since items without shipping shouldn't need handling
Handling fee is a "cart-level" fee and doesn't check the products. But you can add filtering easily:
1. EDIT: catalog/model/total/handling.php
2. FIND:
Code: Select all
if ($this->config->get('handling_status') && ($this->cart->getSubTotal() < $this->config->get('handling_total'))) {
Code: Select all
if ($this->config->get('handling_status') && $this->cart->hasShipping() && ($this->cart->getSubTotal() < $this->config->get('handling_total'))) {
Hi Qphoria :
How can we integrate this code lines into your Mod MultiTotalHandling_OCv149.1.zip ?
It would be so useful not to add handling fees to tha products that has "No Transport needed" , such as installation services on my case , and so....
I have tried with your MultiTotalHandling_OCv149.1 but it charges fee on total cart.
Thank you
How can we integrate this code lines into your Mod MultiTotalHandling_OCv149.1.zip ?
It would be so useful not to add handling fees to tha products that has "No Transport needed" , such as installation services on my case , and so....
I have tried with your MultiTotalHandling_OCv149.1 but it charges fee on total cart.
Thank you
Solved with Johnathan help based on Qphoria´s code.
Attached handling.php
Thank you very much to all
Attached handling.php
Thank you very much to all
Attachments
1.4.xkomzol wrote:I am set up handling fee. It is working well but I would like to disable handling fees if someone pick up from the store. Anybody can help me how can I made this change in opencart 1.4.9.4?
Thank You.
1. EDIT: catalog/model/total/handling.php
2. FIND:
Code: Select all
public function getTotal(&$total_data, &$total, &$taxes) {
Code: Select all
if (isset($this->session->data['shipping_method']['id']) && $this->session->data['shipping_method']['id'] == 'pickup') {
return;
}
1. EDIT: catalog/model/total/handling.php
2. FIND:
Code: Select all
public function getTotal(&$total_data, &$total, &$taxes) {
Code: Select all
if (isset($this->session->data['shipping_method']['code']) && $this->session->data['shipping_method']['code'] == 'pickup') {
return;
}
Thank you for your fast reply. I added your code but there is still handling fee is someone pick up from the store.
my handling.php is here
Would you please have a look at it, if I made a mistake?
Thank you.
my handling.php is here
Code: Select all
<?php
class ModelTotalHandling extends Model {
public function getTotal(&$total_data, &$total, &$taxes) {
if (isset($this->session->data['shipping_method']['id']) && $this->session->data['shipping_method']['id'] == 'pickup') {
return;
}
if ($this->config->get('handling_status') && ($this->cart->getSubTotal() < $this->config->get('handling_total'))) {
$this->load->language('total/handling');
$this->load->model('localisation/currency');
$total_data[] = array(
'title' => $this->language->get('text_handling'),
'text' => $this->currency->format($this->config->get('handling_fee')),
'value' => $this->config->get('handling_fee'),
'sort_order' => $this->config->get('handling_sort_order')
);
if ($this->config->get('handling_tax_class_id')) {
if (!isset($taxes[$this->config->get('handling_tax_class_id')])) {
$taxes[$this->config->get('handling_tax_class_id')] = $this->config->get('handling_fee') / 100 * $this->tax->getRate($this->config->get('handling_tax_class_id'));
} else {
$taxes[$this->config->get('handling_tax_class_id')] += $this->config->get('handling_fee') / 100 * $this->tax->getRate($this->config->get('handling_tax_class_id'));
}
}
$total += $this->config->get('handling_fee');
}
}
}
?>
Thank you.
So what is the edit for v1.5.1.3? I tired the handling.php above and get a jSON error after you agree to the terms on checkout when you have Handling Fee enabled.
Code: Select all
SyntaxError: JSON.parse: unexpected character
Thanks!
Gilmore
I went ahead and created a vQmod based on Q's code above:
http://www.opencart.com/index.php?route ... n_id=12376
(thanks Q!)
http://www.opencart.com/index.php?route ... n_id=12376
(thanks Q!)
Who is online
Users browsing this forum: No registered users and 12 guests