The coupon you entered cannot be used for the products in your cart

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 3 weeks ago #325265

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.2.26
-- Browser(s) name and version -- : firefox 81.0,2
-- Error-message(debug-mod must be tuned on) -- : Notice
The coupon you entered cannot be used for less than 30 products in your cart or Notice

The coupon you entered cannot be used for the products in your cart

I created a product in Hikashop for a Gift Card with 2 variants for different amounts of a gift amount. I am using AWOCoupon for the Gift Certificate.I have set it up so that any balance of the Gift Certificate is applied automatically on a other purchase. When I make new purchase, it applies it properly, but I also get one of these messages:
Notice
The coupon you entered cannot be used for less than 30 products in your cart
or
Notice
The coupon you entered cannot be used for the products in your cart
It processes properly in spite of this message. I am afraid that if a user sees that message, they may not think they can proceed with the transaction.
What is triggering the message and how can I stop it?
I checked with AWOCoupon first and they that warning is not coming from AwoCoupon,

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 3 weeks ago #325302

Hello,

Can you provide theses elements in order to better understand the context :
- relative settings screenshot
- An Url link to your website AND a step by step process to reproduce your issue.
- required references to process (Awo Coupon)

Note : You can use our Contact us form to provide secret references, don't forget to add an Url link to this topic to your message.
Regards

Last edit: 4 years 3 weeks ago by Philip.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 3 weeks ago #325318

I sent a message via Contact Us

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 3 weeks ago #325324

Hello,

We have received your elements but, some of them are lacking, in order to progress we have to see & experience by ourselves your previously describe error in theirs context, and that's why we are still awaiting these elements :
- Relative configuration page (settings) screenshot
- by Step by step, I mean something like go this product (url link) because maybe the coupon only work with this product OR the error only appear with this product, add to cart, then go to checkout... Until we can see the error messages.

And by "references", I mean (if required) AwoCoupon references/User access (password)/etc...
But if we can experience without any of these elements, forget about it.
Awaiting your news elements to be able to progress.

Regards

Last edit: 4 years 3 weeks ago by Philip.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 3 weeks ago #325380

I purchased a Gift Card and am sending the code to you via Contact Us. Te recreate the issue, go to speedandsmarts.com and under menu item Speed & Smarts, select Back Issues. Purchase one and apply the Gift code. You will have to register to make the purchase. After you complete the purchase, log out. Then buy another Back issue. Log in and the coupon should automatically apply. I find that sometimes even though I log in, it doesn't recognize that I am a registered user. Under menu item Cart there should be a menu item for the Balance of the Gift card.I find that until I refresh the page after I have logged in, it doesn't appear. It should only appear for logged in registered users. Then the coupon will be applied but there is the NOTICE about the coupon not working. because of the number of products or category. But the transaction does work.
I hope this is enough info to recreate the issue and troubleshoot it.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 weeks ago #325388

Hi,

The error message indeed comes from the coupon system of HikaShop.
However, if you're using AWOCoupon, it is supposed to replace the coupon interface of HikaShop for its own and thus it is supposed to handle the coupons and not HikaShop, and thus HikaShop shouldn't be called to check the coupon code and display that error.
So despite the fact that the error message is displayed by HikaShop, I still think that there is something missing either in the configuration of AWOCoupon or in its code.
Now I'm not sure how it works to handle the coupons instead of HikaShop. Does it have its own checkout view that you need to add to the checkout workflow of HikaShop instead of the normal "coupon" view of HikaShop ? If that's the case and you didn't replace the view, it would explain why HikaShop is displaying an error message, instead of AWOCoupon handling the coupon.

Now as a dirty solution, you could change the line:
return JText::_('COUPON_NOT_FOR_THOSE_PRODUCTS');
to:
return $error_message;
in the file administrator/components/com_hikashop/classes/discount.php
But since it's a core modification, you'll have to reapply it after each update.
Also, since AWOCoupon is supposed to handle the coupons instead of HikaShop, if that code is called, then I believe there is something missing in AWOCoupon to handle that properly. So I would still recommend to check again with the AWOCoupon support.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 2 weeks ago #325442

Thank you for your reply. I contacted AWO and they suggested I change a setting in the configuration to not enable store coupons. That fixed the problem so far.
There was another issue I addressed which is that when a product is added to the cart before a person logs in, and then logs in, even though he is a registered user, a menu item and module which is displayed only to a registered user doesn't appear. If they navigate way from the page and then goes back to the cart, then it appears.
Do you know what can be causing this?
Also, the remove coupon 'button (X) doesn't work.
Do you know what can be causing this?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 weeks ago #325497

Hi,

I checked your checkout and I'm not sure why this happens. Because even if I refresh the page of the checkout, I don't see the additional module on the side. I have to click on another page and then go again to the checkout for the module to appear.
Maybe it's something linked to caching? Do you have any caching mechanism on your website ? Try to deactivate it and see if that helps.

Regarding the x button to remove the coupon, I'm not able to reproduce the issue you're talking about on your website with the coupon code you provided earlier. Could you try again ? Maybe try with another browser ? Or another coupon ? Do you have the problem in that case ?

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 2 weeks ago #325518

I have repeatedly cleared my cache from my browser, as well as flushed the cached from my server (Siteground). I have tried it on other browsers.
My Joomla global setting for caching is OFF and I have cleared any Expired Cache.
Same problems.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 2 weeks ago #325542

Hello,

Can you process a test and make some returns, the test is try to switch for a default template like ProtoStar.
Tell us, if that change something about your module issue.

And provide (via our contact us like previous) some backend reference with full access and an Url to your backend access, please.
Awaiting returns from you.

Regards

Last edit: 4 years 2 weeks ago by Philip.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 2 weeks ago #325574

It was difficult to just switch templates because the menu was missing but I managed to get around it somewhat and added a product to the cart. When I got to the cart page, the module that is supposed to appear for registered user was not there. I then switched back to the template I am using and refreshed the page and it still wasn't there. Then I navigated away to another page and went back and then it was there.
I think AWO has helped me resolve the remove button.
I am sending my back end credentials via contact us.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 2 weeks ago #325606

Hello,

Did you unpublished modules ? Because now, when I process some tests, impossible to see your module, that didn't help us.
We imagine that maybe it's better to have a consistent display if your in production phase, but can you precise these module reference in order to be able to find them please ?
Awaiting news from you.
Regards

Last edit: 4 years 2 weeks ago by Philip.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 1 week ago #325693

I just tested it again. I selected a product to purchase, then proceeded to cart. Since I hadn't logged in yet, the module wasn't there nor the menu item in the dropdown under Cart menu item. I logged in and there still wasn't the module or menu item. I clicked on the menu item Cart even though I was on the page, and then the module and the menu item appeared.
They should both appear as soon as I was logged in.
It seems like the page doesn't get refreshed or something.
I have not unpublished the modules. I am attaching a screen shot of the cart with the module and menu item that is supposed to show as soon as one logs in.

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 1 week ago #325766

Hello,

Okay I process some tests in order to better understand what's going on with your module, here my conclusions :
1. This module position is relative to your current template (yoo_sun)
2. For one url, it's impossible to have the subscriber menu module, even with full refresh page see my screenshot :


=> In the "classic" step by step checkout url, impossible to have your module (right part), beside this the url that start with cart1 url, we are able to see the module...
This erratic display is quite difficult to understand for us, but as a guess I wonder, if at least we can't have some clue from the template creator support as this position work only thanks to yoo_sun.

Contact the template support to have more clues, and even maybe a solution, hoe this will help us to progress on your subject.
Regards

Last edit: 4 years 1 week ago by Philip.

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

  • Posts: 106
  • Thank you received: 1
  • Hikashop Business
4 years 1 week ago #325800

I'm sorry but I don't understand. I suspect English is not your first language and I can't understand what you are saying.
You seem to think it is a template issue, but I did test it using a development site and using a Joomla core template.
Why it is not a template issue:
Using Prostar:
after selecting item and 'proceed to checkout' URL is
speedandsmarts.com/sasbackup/speed-smart...back-issues/checkout

after logging in, URL is
speedandsmarts.com/sasbackup/speed-smart...out/task-step/step-1
no module or menu item

After clicking on 'Cart' URL is
speedandsmarts.com/sasbackup/cart1

This isn't any different than using yoo_sun.
Please try again to explain.

Last edit: 4 years 1 week ago by aimlesslady.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 1 week ago #325805

Hi,

- After I add a product to the cart and go to the checkout, I end up on the page with the URL /speed-smarts/give-a-gift/checkout
monosnap.com/file/CUKRB88YfdZiZ1B1uKCHteE6s9IeNq
- If I go to the cart menu I see this:
monosnap.com/file/prXzdF6FF68jGaxctNG7WYNkucJLmF
- Then I login and I see this:
monosnap.com/file/iH4viaiW4lZpcm9Lt3EiMk1fgwcRuC
- If I open a new tag and go to the URL /speed-smarts/give-a-gift/checkout/task-step/step-1 I get that:
monosnap.com/file/DsM7deSpLbNxIXyyL81KNKnXzBGBVJ
As you can see it's almost the same but with the log in / out menu item displayed on top of the other menu items.
If that's what is your issue, then yes, that's normal as the full page is not refreshed when the customer logs in on the checkout.
A solution to that would be to turn off the "login" option of the Checkout tab in the HikaShop configuration and to display the Joomla login module below the module you already have on the right side area so that the customer could login through that module which would do a full page refresh.
- If after that I go to the cart menu I get this:
monosnap.com/file/GhyzVgMiyNkApcrMCcFLqrhumxdIMZ
So I can see that this "SUBSCRIBER MENU" module has appeared on that menu item as I presume the module might be restricted to logged in users.
If your issue is that you want that "SUBSCRIBER MENU" module on the checkout after the login, you have two problems:
1. The fact that this module is not configured to appear on the URL /speed-smarts/give-a-gift/checkout but only for the "cart" menu item. If you want to fix that, I would recommend to select the "cart" menu item in the "force a menu on checkout" setting of the HikaShop configuration so that the page you go to will always be the cart menu item for the checkout.
2. The same issue as with the log in / out menu item since there is no full page refresh when you login through the login form in the checkout.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum