News:

AbanteCart v1.4.2 is released.

Main Menu

order total

Started by natdroid, November 20, 2019, 07:16:43 AM

Previous topic - Next topic

natdroid

Can AbanteCart cart add a new subtotal to cart page for display only that does not affect the value of the invoice
https://ipfs-sec.stackexchange.cloudflare-ipfs.com/magento/A/question/203571.html

help

abolabo

teorethically it's possible. You should to create your own "order total" extension, that will have storefront model (you can look into public_html/storefront/model/total/handling.php for example  ).
This model must have method getTotal(). It returns an array that looks like as
$total_data[] = array(
                    'id'         => 'handling',
                    'title'      => $language->get('text_handling'),
                    'text'       => $this->currency->format($conf_hndl_fee),
                    'value'      => $conf_hndl_fee,
                    'sort_order' => $this->config->get('handling_sort_order'),
                    'total_type' => $this->config->get('handling_fee_total_type'),
                );

So in your model you can set 'value' key as 0, but 'text' can be any text as you want.
Zero value  does not affect on subtotal and total amount of order.
You can try to change some existing model such as handling.php to check this approach.
If it work - create your own extention with your own custom total model
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -