Tax Not Displayed in Opencart Checkout page - opencart

I have recently made some changes in TAX , i made -10% of tax (GST)
But now i am not getting this tax (GST) in checkout page and invoice page ( but amount is subtracting from sub total
here is some images of my tax setting
is -tax amount will not appear ? any clue that where i am wrong ?

its GEO ZONE PLAY A IMPORTANT ROLE IN THIS PROBLEM
IF YOU ARE WOKING IN DELHI THEN OPENCART AUTOMETIC CHECK YOU GEO LOCATION AT TIME OF CHECKOUT SO FOLLOW THIS STEP
1. SYSTEM -> LOCALISATION ->GEO ZONE.
2. ADD NEW ZONE WHERE YOU ARE WORKING (IN MY CASE DELHI)
3. THEN GO TAX RATES -> AND SELECT YOU GEO ZONE YOU CREATED.
THAT ITS
If this is helpful for you give a like.

Add the tax to your product then it will show in the checkout page go to Admin->Product->edit under data tab find the Tax Class . use that tax class so it will appear in the checkout

You should have to select tax class in your product. Without selecting tax class in your product it will not display in the cart as well as checkout page.
Please follow the following step to select tax class in product
Admin → Catalog → Product → Edit/Add Product → Goto Data Tab → Select Tax Class drop-down on it.

Related

how to publish with active pulldown to filter the displayed data?

I want to publish all employee's name then I will provide a filter (maybe in the shape of pulldown choice). So the user can select from the pulldown, for example: male employee, female employee, an employee who age above 40 etc.
Is it possible in the publish page? any solution?
link:
https://docs.google.com/spreadsheets/d/1gdvwnZk2w9eh0nhYIuqFiBAbu1Q1lByqLMqQhMmqF1s/edit#gid=0
formula would be:
=ARRAYFORMULA(
IF(C2="All", FILTER(A6:C, A6:A<>""),
IF(C2="Male", FILTER(A6:C, C6:C="Male"),
IF(C2="Female", FILTER(A6:C, C6:C="Female"),
IF(C2="Age > 35", FILTER(A6:C, B6:B>35), )))))

Apex5.0 choose layout and add date validation

I am building a student module application in Oracle Apex 5.0 and wanted to know how to display the details in oracle apex.
Something like this with two tabs on the 1 page:
on first tab, When input StudentID,
the first section will contain system_date and tutor name that has login
second section should contain student name and course desc & course year
third section is to display current semester module, if payment done or not (Y /N), markings %, date of payment.
2nd tab of the page to include all courses done for that student.
Which layout to choose (interactive grid/report) or any other.
How to add validation of date picker for the payment date so that upon input it insert directly in table in DD-MON-YY format and also that it takes system_date??
Note table:
student_details: the student name, address and personal details
course_detail table contains the courses for the semester
payment_detail table for the payment details
The sort of things you're going to want to look for are:
Region Display selector, for multiple tabs
Any type of report region to display data, and you can have multiple, and nest them as sub-regions.
You can define page items that are displayed as date pickers, and use default values to source today's date using the keyword SYSDATE.
You're going to need to understand SQL.

How to add Region / State in opencart checkout?

Please suggest a way to add an extra Region /State in checkout which is not there in Opencart default .
You can add region for any country from admin panel also.
settings->localisation->zone
The region/states are in the oc_zone table. You can add extra entries into this table but make sure you get the right country code and put that into the record too.
The country codes are in the oc_country table.
So, for example, if you wanted to add a new Region called "The People's Republic of Cleckheaton" to the United Kingdom, first look up the country code for the United Kingdom in oc_country. The code is 222.
Then you can add the new zone to oc_zone with something like the following:
INSERT INTO `oc_zone` (`zone_id`, `country_id`, `name`, `code`, `status`) VALUES (NULL, '222', 'The Peoples Republic of Cleckheaton', 'PRC', '1');
Finally there's another slight issue. Opencart actually caches all the country and zone data so if you add a new field like this it probably won't show up because the old data will be cached.
You should probably be able to fix this by clearing your browser's cache but failing that update the following line in \catalog\model\localisation\zone.php Warning: This is in opencart 1.5.6 but should be similar in 2.0
$zone_data = $this->cache->get('zone.' . (int)$country_id);
to
zone_data = false;
Once you've confirmed it's working ok update that line back to it's original content.

Tax based on currency in Opencart

At present the tax seems to display based on the location of the logged in customer.
This can't work for me for 2 reasons. I have an extension that auto displays the currency based on the customers ip plus there is no option for logging in, it's guest checkout only.
So I really need it to display the correct price based on the currency displayed instead.
Does anyone have any idea where the code is for this please or how to adjust the displayed price properly?
Any help is greatly appreciated.
Thanks
-James
I guess You should extend the extension You are using for displaying of currency based on IP address.
Find the line of code where the currency based on user's IP address is populated and call this:
$this->currency->set($currency_code);
where $currency_code should be a 3 character currency ISO code (e.g. USD, EUR, etc) of currency set in the administration.
This way You set the currency to use for price calculation - and that reflects the currency based on user's IP address. This currency code is then saved to session and cookie so it should work on any page within OpenCart frontend.
I think so
Returns 3-character ISO 4217 currency code for the currently set currency.
// Return when Pound Sterling is the set currency
$currency_code = $this->currency->getCode();
var_dump($currency_code); // string 'GBP' (length=3)
also you can
$this->currency->set($currency_code);
and please find currency file https://github.com/opencart/opencart/blob/master/upload/system/library/currency.php
Thanks
I think I have found the correct way to do this: Go to file system/library/tax.php.
Line 27:
if(!$reg){
if($currentCurrency == "CHF"){
$country_id = 204;
}else if($currentCurrency == "EUR"){
$country_id = 81;
}
}
This will set the country the user is in according to the selected currency and will set the country for tax calculation.

How to add currency in opencart?

I have add one more currency in currency table of opencart,but it is not reflect on front end.
How would I achieve my goal??
Is the currency "enabled" in the admin panel? Go to the currency you added in admin and see the bottom "status" select field. Disabled there means it will not show on the store front.