Post by Limon12 » Thu Feb 04, 2021 5:24 pm

Hi, i am slowly learning to make custom modules with events, its fun :laugh:

On the product page i like to retrive the product price including tax and also add options-price to total price when selected.
I can get the "tax_class_id" like this $product_info['tax_class_id'] but how do i get the rate? Is there a readymade way to get the tax for a product?

Also, is there a detailed documentation data and methods? A listing of avalible content i for example "$product_info[]", and a list of other containers like "$product_info[]"?
Last edited by Limon12 on Sat Feb 06, 2021 5:15 pm, edited 1 time in total.



Sun Jan 10, 2021 7:05 am

Post by sw!tch » Thu Feb 04, 2021 5:32 pm

You can use the tax class.

Code: Select all

$this->tax->calculate($price,$tax_class_id, $this->config->get('config_tax')); ... ax.php#L57


Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!

Active Member


Sat Apr 28, 2012 2:32 pm
Location - USA
Who is online

Users browsing this forum: No registered users and 15 guests