Post by Jassim1 » Fri May 07, 2021 7:01 am

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?
https://snaptube.cam/ 9apps
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 Jassim1 on Wed Aug 11, 2021 4:09 pm, edited 2 times in total.

New member

Posts

Joined
Thu Jan 16, 2020 4:55 pm

Post by straightlight » Fri May 07, 2021 8:34 am

Jassim1 wrote:
Fri May 07, 2021 7:01 am
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[]"?
It's not as fun when the OC version is not posted.

How to get the rate? Look in the codes for:

Code: Select all

$this->tax->getRates

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: alanjones and 91 guests