auto added 5 zero to coupon

  • Posts: 201
  • Thank you received: 7
11 months 3 weeks ago #357909

-- url of the page with the problem -- : demo.hikashop.com/index.php/en/hikamarke...ntrol-panel/discount

hi.
i test hikamarket vendor demo and you can see when a vendor create a coupon , then automatically added 5 zero to flat amount. look at to picture:

Attachments:

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 months 2 weeks ago #357915

Hello,

I don't see how it's a bug since it's the value in the database and HikaShop backend is doing the same.

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: 201
  • Thank you received: 7
11 months 2 weeks ago #357959

why not simply save as 1000 ? why change to 1000.00000 ?
i accept your idea . it is not a bug. can it be simply what i set?

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 months 2 weeks ago #357968

Hello,

It is the raw value from the database.
Performing a modification of that value will generate a non consistency of display ; and performing a rounding could alter the real data.

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: 201
  • Thank you received: 7
11 months 2 weeks ago #357979

please forget my previous post. can you tell me how can i save simple 1000 in vendor page? is there any setting must be change in hikashop configuration to remove these decimals?

Last edit: 11 months 2 weeks ago by sadaf3d.

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
11 months 2 weeks ago #357982

Hi,

If you want to not have decimals there, you want to change the type of the corresponding column in the hikashop_discount table via your PHPMyAdmin. Just remove the decimals there and users won't be able to enter amounts with decimals in that field. That way, if the user enters 1000 in there, he will see 1000 after the save.

The following user(s) said Thank You: sadaf3d

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

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