Skip to main content

auto added 5 zero to coupon

2 years 10 months ago #357909 by sadaf3d
-- 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:

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

2 years 10 months ago #357915 by Jerome
Replied by Jerome on topic auto added 5 zero to coupon
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.

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

2 years 10 months ago #357959 by sadaf3d
Replied by sadaf3d on topic auto added 5 zero to coupon
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.

2 years 10 months ago #357968 by Jerome
Replied by Jerome on topic auto added 5 zero to coupon
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.

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

2 years 10 months ago - 2 years 10 months ago #357979 by sadaf3d
Replied by sadaf3d on topic auto added 5 zero to coupon
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: 2 years 10 months ago by sadaf3d.

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

2 years 10 months ago #357982 by nicolas
Replied by nicolas on topic auto added 5 zero to coupon
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.060 seconds
Powered by Kunena Forum