Jump to content
Latest News: (loading..)

Recommended Posts

14 minutes ago, raiwa said:

Hello Lyn @ce7,

I had a deeper look now and I believe you can do this easier.

If your problem is that with the header tag of the add-on you get the tax rate shown twice - once below the prices with tax and again below the prices without tax you should do the following:

In the core currency class duplicate and rename the "display_price" and "format" functions to something like "format_no_tax" and "display_price_no_tax".

Be aware to change also the function name used  in the "display_price_no_tax" function from "format" to "format_no_tax".

Then use the function "display_price_no_tax" to show the prices without tax in the product listing modules and elsewhere.

hi, @raiwa

As usual, very quick respond and thank  you so much for the solutions and all the help!
One more thing related to the Tax Info is that it will show up for the specials. I dont know if my idea make sense for shopping cart system, but i think it is not necessary to show strikethrough for both incl/excl (maybe instead show x% special off after price and before tax incl.) How can I delete / not showing strikethrough for specials? Which files and what part of codes should I go to try for?

image.png.2f61b206e2af334e3a71e73719a64618.png

Share this post


Link to post
Share on other sites

@raiwa   Hi,

Come back again for help about the tax, this time is about specials. I have 2 tax rate, one is 10% and one is 7%, and just noticed that instead of showing 10% or 7% incl/excl, it is showing up total 17% tax rate for every special product. How can I change the code to make it work with right tax rate for special products?

Many thanks! Lyn

Share this post


Link to post
Share on other sites

@raiwa  hi again,

Quick update, after I post here, I quickly installed another specials addon to do the test, and found out that the tax rate did work, but it did have problem to show the right rate at first, so there are few default special products, need to get into categories, and refresh the tax rate, then it will show up the correct one, if no refresh, it will stay as 17% instead of 10% or 7% or tax free...

Thanks you!

Share this post


Link to post
Share on other sites

Hello Lyn @ce7,

Not sure if you have this solved now.

I just checked on my test store and all works as it should.

I created a second tax rate and tax class with 10% and applied it to one special product.

On specials.php I see 7% for the products with 7% tax class applied and 10% on the product I applied the 10% tax class.

If you apply 2 tax rates on the same tax class, of course you will get the sum of both showing on a product with this tax class.

Edited by raiwa

Share this post


Link to post
Share on other sites

@raiwahi Rainer,

Thank you very much for reply. Yes I have resolve the problem, not sure why, I did not add two tax on same product, but i have seperated tax rate, each product can choose 10% or 7% or no tax, not able to choose 2 tax rate at the same time...

The default of my installation seems just add 2 tax rate as 17%, but when I go to renew the 5 default products and change the tax rate,  refresh, then it works as it should be 10% or 7% as I set up....

Thanks!  Lyn

Share this post


Link to post
Share on other sites

Hi

Thanks for a great contribution. I am facing a problem. In my store there are 2 currencies. When i activate the Show Tax below price, it shows that tax but the product price is wrong. I have SEK as a default currency and when i switch from SEK to EURO the product price value shows the SEK price but just changes the Currency symbol to Euro. Please see the image below. Thanks for help in advance.

 

 

Screenshot_2.png

Screenshot_1.png

Share this post


Link to post
Share on other sites

Hello @micke salloum,

Is it possible that you have a modification/customization applied to the "format" and/or "display_price" function in includes/classes/currencies.php.

 

If yes, then you have to apply /merge these modifications with the class extension in the st_tax_below_price.php module.

See there at the end:

  if (class_exists('currencies')) {
    class currencies_mod extends currencies {
..........

 

Share this post


Link to post
Share on other sites
3 hours ago, raiwa said:

Hello @micke salloum,

Is it possible that you have a modification/customization applied to the "format" and/or "display_price" function in includes/classes/currencies.php.

 

If yes, then you have to apply /merge these modifications with the class extension in the st_tax_below_price.php module.

See there at the end:


  if (class_exists('currencies')) {
    class currencies_mod extends currencies {
..........

 

Thanks for the reply. Attached here is the currencies.php file in the includes/classes

Can you take a look and suggest the modifications? 

Thanks in advance

currencies.php

Share this post


Link to post
Share on other sites

Hello Micke @micke salloum,

As I suspected your currency class is heavy modified.

I'm sorry I can't merge the code without knowing what else is part of these modifications and without access to your whole store.

You should ask the developer who applied these changes to do it, if you didn't do it yourself.

Best regards

Rainer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×