[Skip to main content](#vessel-content)

#   auto added 5 zero to coupon

##

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

2 years 10 months ago [\#357909](#357909) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#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:")* was created by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")*

-- url of the page with the problem -- : [ demo.hikashop.com/index.php/en/hikamarke...ntrol-panel/discount](http://demo.hikashop.com/index.php/en/hikamarket/vendor-control-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:
[ ![hikavendor.png](/forum/attachment/58485) ](/forum/attachment/58485 "hikavendor.png")

- [ ![hikavendor.png](/forum/attachment/58485) ](/forum/attachment/58485 "hikavendor.png") [ ](/forum/attachment/58485?download=1 "hikavendor.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 10 months ago [\#357915](#357915) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#357915 "-- 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:")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

2 years 10 months ago [\#357959](#357959) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#357959 "-- 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:")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 10 months ago [\#357968](#357968) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#357968 "-- 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:")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")**
- [![sadaf3d's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46256-sadaf3d "View sadaf3d's Profile") Topic Author
- [ Offline](/forum/user/46256-sadaf3d)

Less More

- Posts: 221
- Thank you received: 8
-

2 years 10 months ago -  2 years 10 months ago [\#357979](#357979) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#357979 "-- 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 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](/forum/user/46256-sadaf3d "View sadaf3d's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

2 years 10 months ago [\#357982](#357982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[auto added 5 zero to coupon](/forum/22-market-bug-report/907519-auto-added-5-zero-to-coupon#357982 "-- 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:")*

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](/forum/user/46256-sadaf3d "View sadaf3d's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNzUxOS1hdXRvLWFkZGVkLTUtemVyby10by1jb3Vwb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
