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

#   Error at Checkout when I add coupon codes

##

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21381](#21381) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  *[Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21381 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")* was created by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")*

Hi,

During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21382](#21382) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21382 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

I was not able to add the error display. Here is the error message:

Warning: constant()/[function.constant]: Couldn't find constant HIKASHOP_ORDER in /home/content/93/7848293/html/administrator/components/com_hikashop/helpers/helper.php on line 625.

Warning: constant()/[function.include-once]: failed to open stream: No such file or directory in /home/content/93/7848293/html/administrator/components/com_hikashop/helpers/helper.php on line 625.

Warning: constant()/[function.onclude]: Failed opening '.php' for inclusion (include_path='../usr/local/php5/lib/php') in /home/content/93/7848293/html/administrator/components/com_hikashop/helpers/helper.php on line 625.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#21387](#21387) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21387 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Hi,

You need to do like explained there: [ www.hikashop.com/support/forum/3-bug-rep...n.html?lang=en#20521](http://www.hikashop.com/support/forum/3-bug-report/20476-automatically-loaded-coupon.html?lang=en#20521)

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21401](#21401) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21401 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

I read the explanation provided. The difference is that I'm on version 1.5.1 and I didn't set the coupon to auto load, is the instruction to change the php is still valid?

Also, do I have to upgrade to 1.5.2? My site just went live and I'm concern that the upgrade will screw up some of my customization changes in the Views, Language, etc. Please advise.

Also, does Hikashop have a way to know how many people view particular product page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#21403](#21403) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21403 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

The modification should be the same for 1.5.1.

If you did your modifications via the interfaces we provide (the translations need to be changed in the override area), you will keep all your modifications when you update HikaShop.

In the latest version, there is a hit count which is updated each time someone sees a product page. You can then export the products data as a CSV and you will see the number of hits for each product in the column "product_hit" of the CSV that you can open with Excel or openoffice calc.

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21414](#21414) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21414 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Hi Nicolas,

When I made the recommended change to discount.php, I got the error message @ line 87:

Fatal error: Call to undefined function hikashop_table() in /home/content/93/7848293/html/administrator/components/com_hikashop/classes/discount.php on line 87

It seems like when I have the "quota per user" set to 1 that the error appears. If I don't, the coupon already applies during the checkout process which is not what I want. BTW, the type I setup is "coupons", not discount.

Please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#21421](#21421) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21421 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

That's because before 1.5.2 the hikashop_table function was hikashop::table
If you change that part of the code with hikashop::table it will work.

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21440](#21440) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21440 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Hi Nicolas,

Thanks. The error message went away but the coupon I set up is applying the coupon "automatically" when I added a coupon code. The coupon code was set to not "auto apply." Please advise since it looks like it's doing what a discount type is doing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#21446](#21446) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21446 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Please post a screenshot of the configuration of the coupon ?

If the coupon is applied automatically, it must be that the configuration of the coupon has that auto load option on.
Otherwise, everyone else would have that issue when creating a coupon.

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21457](#21457) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21457 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Hi Nicolas,

Enclosed is the coupon configuration:

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Checkout.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Checkout.PNG "&#91;img")

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Checkout.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Checkout.PNG "&#91;img")

I tried adding another coupon code and it's still picking up the 10% automatically, but when I deleted the 10% one, the other coupon code seems to work now (w/o automatic apply). I guess the first coupon (shown) is a bad record or something. For now, there is no issue.

-

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21458](#21458) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21458 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Coupons.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Coupons.PNG "&#91;img")

- [ ![Coupons.PNG](/forum/attachment/1461) ](/forum/attachment/1461 "Coupons.PNG") [ ](/forum/attachment/1461?download=1 "Coupons.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#21459](#21459) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21459 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Hi,

So you're saying that now that you deleted this coupon, other coupons you created are working fine ? Well that's great ![:)](/media/kunena/emoticons/3.png ":)")
I don't see why that coupon would have been an issue though... That's really strange.

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

- **[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")**
- [![tsaiism's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2832.gif)](/forum/user/2832-tsaiism "View tsaiism's Profile") Topic Author
- [ Offline](/forum/user/2832-tsaiism)

Less More

- Posts: 20
- Thank you received: 0
-
-

15 years 3 months ago [\#21463](#21463) by [tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")  Replied by *[tsaiism](/forum/user/2832-tsaiism "View tsaiism's Profile")* on topic *[Re: Error at Checkout when I add coupon codes](/forum/3-bug-report/21381-error-at-checkout-when-i-add-coupon-codes#21463 "Hi,  During the checkout process, it's showing error message (enclosed) when I have a coupon code. When I unpublish or delete the coupon code (10%), the error message went away.")*

Yes, so far, that's what happened. I'm not going to worry about since it's working for me. thank you for your quick replies.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMTM4MS1lcnJvci1hdC1jaGVja291dC13aGVuLWktYWRkLWNvdXBvbi1jb2Rlcz90bXBsPW1hcmtkb3du) 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?

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

Time to create page: 0.072 seconds

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