WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Coupons and Discounts › Support › Coupon extension stopped working
- AuthorPosts
- 20 December, 2016 at 3:13 am #24177
Hello Olly,
Thank you for the wonderful plugin and addons. However I have a weird problem right now with the Coupon/Discount addon.
When my clients use the issued coupon code at the order details page, an “OK” message appears with a red flag behind it, as if it was an error but there aren’t any that is displayed even with the debug option checked. The order detail page doesn’t get updated with the new total and rebate.
I have to go back to the order menu to see the code added to the side cart and click order once more to see the updated total and rebate at the order details page.
I am also unable to make any changes to the coupons. When I update them, I see a popup box with an “OK” in it, but when I refresh the page, I see all my changes reverted.
I have disabled all caching plugins to see if they are the cause and the problems still persist.
I would really appreciate your help in fixing this problem.
Thank you very much for your time.
20 December, 2016 at 3:14 am #24184cant really comment without a link where you are experiencing this issue
20 December, 2016 at 4:18 pm #24189You can try placing an order here:
http://2kfusion.com/our-menu/Using coupon code “2KDEAL10”
20 December, 2016 at 4:27 pm #24190all i get with that code – at the moment – is
[108] weekday:code currently in-activewhich means exactly that. I cannot see the issue you are describing (but i assume that would need a code that – in theory – should be valid) ….
20 December, 2016 at 4:51 pm #24191Yes sorry about that, I forgot it’s currently disabled only on Tuesdays because of another promotion we have.
I can’t make any changes to enable it back either because of the problem I described earlier.
Could you try again with the code: “VORTEX10”
20 December, 2016 at 5:17 pm #24192Hmm, distinctly strange.
when the check returns ‘OK’ it should simply just reload the page (which it does not in your case for reasons we have to find out)— before doing any of the below it would probably be a good idea to make a backup —
first thing to do : enable debug like so https://www.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/ and see if anything appears in your debug.log
(although to be honest i think this is a js issue not a php issue)second – temporarily at least or in a test environment –
disable ALL other plugins (apart from th emain wppizza plugin and the coupon code plugin)
if it works then, re-enable one by one (and let me know which one causes the issue)third – of above does not work, not only disable all other plugins , but also use a default theme (like 2016) and see if it’s in the theme somewhere (as it would be if it works with a default theme)
4th – if none of the above make any difference, please install https://en-gb.wordpress.org/plugins/duplicator/
and contact me again here (we’ll have to go into more detail then)
19 January, 2017 at 12:03 am #24863Okay here’s a follow up on the issue,
In the debug.log, I have 8000 repeating lines of:
[18-Jan-2017 23:46:49 UTC] PHP Notice: Undefined index: gateway-selected in /home/admin/web/2kfusion.com/public_html/wp-content/plugins/wppizza/inc/common.output.formatting.functions.inc.php on line 1052 [18-Jan-2017 23:46:49 UTC] PHP Notice: Undefined index: gateway-selected in /home/admin/web/2kfusion.com/public_html/wp-content/plugins/wppizza/inc/common.output.formatting.functions.inc.php on line 1052 [18-Jan-2017 23:46:49 UTC] PHP Notice: Undefined index: gateway-selected in /home/admin/web/2kfusion.com/public_html/wp-content/plugins/wppizza/inc/common.output.formatting.functions.inc.php on line 1428 [18-Jan-2017 23:46:49 UTC] PHP Notice: Undefined index: gateway-selected in /home/admin/web/2kfusion.com/public_html/wp-content/plugins/wppizza/inc/common.output.formatting.functions.inc.php on line 1429
Probably because I’ve been letting it on for a month, had some other things to deal with. Also have this in there from time to time from different PIDs:
[18-Jan-2017 23:39:12 UTC] PHP Warning: Error while sending QUERY packet. PID=31738 in /home/admin/web/2kfusion.com/public_html/wp-includes/wp-db.php on line 1873
20 January, 2017 at 11:37 am #24876you should most certainly – first of all – fix the “sending QUERY packet” error
http://stackoverflow.com/questions/30753674/error-while-sending-query-packetalthough i do not think this is caused by wppizza actually, if anything makes your db connection fall over it will of course impact everything (just setting the max packet size to something higher than default will probably do the job there)
regarding the actual issue, i cannot really test/see anything as you seem to have changed validation and/or codes
nor have you told me if disabling other plugins/theme fixes the issue or not , so i cannot say anything else really
- AuthorPosts
- The topic ‘Coupon extension stopped working’ is closed to new replies.