- Posts: 39
- Thank you received: 0
Coupon restriction on product not working
Got the same problem when trying to affect a zone when comes time to select the zone, I have a pup-up displayiong the zones, I then choose Canada and click "OK", once done, I have a blank page with only one line top left "38 Canada" appearing (this is the selected product) and nothing else, no button nothing. If I go back, then I get back to the main coupon creation page and there is not attached zones.
I also just tried to build a simple coupon with a %, I can create the coupon but it is impossible to use on the front-end, I always have a message saying "Le code du coupon que vous avez entré n'est pas valide"
This look's like if some debugging code where still in the component code
Joomla 1.5.22
Hikashop 1.3.6
IE 8
Please Log in or Create an account to join the conversation.
This looks like a limitation of internet explorer.
In the file administrator/components/com_hikashop/views/product/view.html.php near line 685, could you try to replace the code
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If you still have credentials for halonacoachong.com/joomlatest, you can go and try. (I've sent then by mail earlier last week)
Please Log in or Create an account to join the conversation.
The type of the discount is "discount" and not "coupon" (coupons are to be entered by the user while discounts are applied automatically)
or the coupon is not published
or the code entered doesn't match any coupon code.
Please Log in or Create an account to join the conversation.
Do you have the same problem on our demo website ?
Please Log in or Create an account to join the conversation.
I have not tested on your demo site yet.
Please Log in or Create an account to join the conversation.
It's a bug we found already at the beginning of the week. On some website the modal javascript library wasn't loaded on that page for some reason. So we added the code below in the view in order to force it:
JHTML::_('behavior.modal');
It's now working on your website.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
$discount_id = hikashop::getCID('discount_id',false);
near line 185
Please Log in or Create an account to join the conversation.
I've check the coupon, it is set to zone 38 and the customer adress is also set to 38, the coupon type is coupon. I've noticed that if I open the coupon, I see the product number and the zone number but right beside I have a message "product not found" and "zone not found"
Please Log in or Create an account to join the conversation.
We were able to reproduce the problem of the coupon not accepted although you're in the good zone on your website.
We tried to edit the files directly via FTP but we got the error "552 Disk full - please upload later" while trying to edit the files.
We will try to reproduce the problem on our end.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I'm unable to do the second modification, teher is no amdinistrator/components/com_hikashop/views/discount/view.html.php file in my system !
Please Log in or Create an account to join the conversation.
Yes, when I tried to edit it via FTP and that I got the disk space error, I deleted it hoping that it would free some space and that I would be able to upload the new version of the file. Unfortunately, I still had the error afterwards and it wouldn't let me put it back.
You should get that file from your hikashop install package in the folder back/views/discount and upload it manually in order to restore it and apply the fix.
Please Log in or Create an account to join the conversation.
I took the views.html.php file from the installation package and dropped it in the right directory and did the changes mentionned above and here is the message I Have when I try to open a coupon to modify it:
Fatal error: Call to a member function setQuery() on a non-object in /home/brisebo/public_html/halonacoaching.com/joomlatest/administrator/components/com_hikashop/views/discount/view.html.php on line 187
But now the coupon works, I'm just unable to modify the discount once created.
Please Log in or Create an account to join the conversation.
We just released the new version of HikaShop. You can download it and update your version. That will fix both problems. Alternatively, you can just get the back/views/discount/view.html.php file of the new package and put it over the administrator/components/com_hikashop/views/discount/view.html.php file.
Please Log in or Create an account to join the conversation.
Fatal error: Call to a member function setQuery() on a non-object in /home/brisebo/public_html/halonacoaching.com/joomlatest/administrator/components/com_hikashop/views/discount/view.html.php on line 187 when trying to open/modify a coupon
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.