Problem when vendor sets price for product

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330403

-- HikaShop version -- : 4.4.1
-- HikaMarket version -- : 3.1.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.14

Hello
When vendor creates or edits product, in the "prices and taxes" section of "/product/add" page we discovered the following problem.

Vendor sets price 100$ that becomes 124$ with tax.



Then vendor clicks OK to store the price before saving the product. Right after clicking OK the vendor sees the following.


This is confusing for vendors because they can not know at this stage if everything is correctly set for their product.

P.S.
Everything works fine in the Backend. There it shows 100$ /124$

We have tested both with our template and the default joomla Protostar.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330406

Hello,

Does the vendor have the "tax category" available ?
Are you using a product template in order to set a value for the product tax category ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330411

Thank you for your reply,

Does the vendor have the "tax category" available ?

Yes, if he did not have the tax category selected, the price with tax field would not auto update before clicking "OK"

Are you using a product template in order to set a value for the product tax category ?

No we are not using any product template

Note that we have tested the same on your demo site and it has the same problem there.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330417

Hello,

I'm not seeing the issue in the demo website.
There is no taxes set-up in the "default tax category" ; only "normal tax rate" and "reduced tax rate" have rates and the price is displayed correctly after submission what that tax is applied to a product.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330426

The issue exists on your demo site and here are the screenshots of your demo site:
Hope that you can see it.


Thank you

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330428

Hello,

No, there is no issue, if you just take a look at the different elements.
You're making a test with the tax category that I didn't talk about, and you also went in a special case.

You're using a tax category which do have only a rate for one country.
The customer do not have a default address in that country.
Then, when you edit the product, HikaMarket use the rate stored in the dropdown in order to give an estimation on what will be the price with tax.
When you confirm the price, the display is going through the HikaShop price display system, which use the account address as base point for the tax rules.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330461

Dear Jerome...

I do not know if you look at the screenshots i send to you, or if i was not clear from the beginning.

There is an issue!

The issue is not related to the calculations but with what the site shows to the vendor. It causes great confusion to the vendors.

Step by step...

Vendor has registered as a verdor and provided all his info including country, address etc. So the system knows the vendors country.

Step 1
Vendor goes to create new product. Clicks on "+" button to add price. The vendor ads the price without VAT and the site calculates the VAT and shows the price with tax correctly. So the site calculates the price and tax correctly! You can see it before pressing "OK".

Step 2
Vendor sees the price and the price with VAT at the 2 fields. When the vendor clicks on "OK" the page refreshes and it shows two times without VAT (price without VAT / price without VAT).

The only way for the vendor to see the correct values is to click on save. Then the correctly calculated prices arrear. Till then the prices appear wrong.

In conclusion...
Nothing to do with taxes, countries and all the above you told me. The prices are calculated correctly but there is a bug on showing them after the OK and before the Save.

Please give us a solution.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330485

Hello,

If you refresh the page, does the product price still displayed the same ?
Do you only see the price with the tax applied when you edit the price or not ? (within the product edition page)
How are the prices displayed in the HikaShop backend ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330504

If you refresh the page, does the product price still displayed the same ?

If i click apply or save after i create the product, the prices display correctly.

Do you only see the price with the tax applied when you edit the price or not ? (within the product edition page)

I see the price and the price with VAT before i click on OK. When i click on OK i see: "price without VAT / price without VAT" two times.
This is the confusing part for vendors because they do not know that when they will save it everything will be saved correctly. And we do not expect from them to know it or imagine it.

How are the prices displayed in the HikaShop backend ?

Perfectly! This issue does not exist when creating product from the backend.

The issue exists when you click the OK button only in the frontend.

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330547

Hello,

In the demo website, I open the first product, change the tax rate to "normal tax rate" and click "apply".
Afterwards, I edit the price and change from "115" to "120" ; when I click on "OK", I got the price correct :
pasteboard.co/JRR3RiC.png

Without saving, I re-open the product and changed its taxe to the "reduced tax rate" and click "apply".
I performed the same price modification (115 to 120) and a click on "OK", gave me the right display :
pasteboard.co/JRR5cva.png

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330554

Hoping that we see the same demo site of hikamarket i recorder the problem on video to share with you.

Please watch this and tell me if you can why after clicking on OK the price with tax becomes price without tax.

Thank you.

Last edit: 3 years 8 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330675

Hello,

I'm sorry but your video do not explain the context.
Are you editing an existing product ? Are you creating a new one ? If you, did you save it once or not ?

In order to be able to reproduce a bug, it requires the minimum but required elements to create the bug each time.
As I told you, if I go in the demo website and edit the first product, the price is going well. I gave you the full workflow that I performed :

In the demo website, I open the first product, change the tax rate to "normal tax rate" and click "apply".
Afterwards, I edit the price and change from "115" to "120" ; when I click on "OK", I got the price correct :


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330695

Are you editing an existing product ? Are you creating a new one ? If you, did you save it once or not ?

I am creating a new product. No i have not saved it once.

As I told you, if I go in the demo website and edit the first product, the price is going well. I gave you the full workflow that I performed :
In the demo website, I open the first product, change the tax rate to "normal tax rate" and click "apply".
Afterwards, I edit the price and change from "115" to "120" ; when I click on "OK", I got the price correct :

No Jerome. "normal tax rate" has the same value for price with tax and price without tax.

Use "Reduce tax rate" set price to 95 and the price with VAT becomes 100.225. Now click on "OK" and the next thing you see is this:


Use "Magazines and drugs tax rate" set price to 95 and the price with VAT becomes 96.995. Now click on "OK" and the next thing you see is this:


Now you will tell me that if you save it, all the prices are stored correctly!
I know that. But the vendors do not know that!

Do they see a message somewhere that they have to save and then edit the product to see the correct prices?
No!
They enter their price once, click "OK" and they see wrong prices!
They enter their price once again, click "OK" and they see wrong prices!
Then they say "This site sucks" and they never use our site again!

Ps:
If you still do not understand what the problem is, please share it with other staff members. Maybe someone can help!

Regards,

Attachments:
Last edit: 3 years 8 months ago by liaskas.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330707

Hello,

I'm not saying that we don't want to solve the issue but, as mentionned, i need to be able to see the issue if Iwant to fix it !
Now that the workflow is defined, the investigation is possible.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 3 years 8 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330752

Thank you, we will wait for the solution.
Regards,

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330921

Hello... is there any progress with the resolution of this bug?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330949

Hello,

A patch has been developed and will be integrate in the next release.

Because the product was not created yet, the display of the price with tax is made manually without having a tax id. When you edit the price you can have the information of the tax id which is available via the dropdown or stored in an hidden field.
But when you perform an ajax call, the tax id was not passed and the micro-controller re-set missing values so the block can be redisplayed ; and you have that side effect.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330951

Jerome i am sure you have found the best solution. Is there a time estimation for the next release?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #331005

Hello,

Mostly we need to finish the J4 integration and add some fixes in emails.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.094 seconds
Powered by Kunena Forum