Forum Replies Created
- AuthorPosts
-
Can’t see that anywhere on the gateway page.
Only box for entering text is the “Text to display when order is cancelled”
Thanks for that, again will do some stress testing.
I’ve activated the license on the test site and updated to the latest. I must have been doing something wrong previously. The only update I made was to our theme-functions.php
Is it correct now I’ve updated the plugin?
You are free to edit what is needed.
I copied the plugin to my local build made the changes discussed above then pushed to test site.
Latest version is 4.6.7 isn’t it?
Edit – My mistake 4.7 is latest
Cheers for that.
It is showing version numbers 🙂
It’s been removed.
Not sure how to test it has worked though 😉
Test site has been updated to reflect the change
So hopefully removing that string will get rid of errors?
Is this the code that is stopping the versions from showing?
<?php function remove_version() { return ''; } add_filter('the_generator', 'remove_version'); remove_action('wp_head', 'wp_generator'); // remove wp version param from any enqueued scripts function remove_wp_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_wp_ver_css_js', 9999 ); add_filter( 'script_loader_src', 'remove_wp_ver_css_js', 9999 ); add_filter('widget_text', 'do_shortcode'); add_filter('the_content', 'foodkingsthelens_filter_ptags_on_images'); add_filter('excerpt_more', 'foodkingsthelens_excerpt_more');
This was in our theme-functions.php
Thanks for the explanation I understand, I’ll look into that.
Ah okay.
We are still getting the occasional error message when using the menu on ios.
Only comes up as
error
No idea how to find out any more details about it as I can’t inspect the Safari browser.
It doesn’t stop anything from working its just an annoyance.
Found this website with details how to debug but I don’t understand this. Don’t know if it’s of any use to yourself.
http://petewarden.com/2013/01/23/how-to-debug-javascript-errors-on-ios/
I haven’t changed anything to omit them on purpose. Not quite show how to enable them.
Not quite sure what’s not a good idea clearing cache or omitting version numbers.
As for the fix everything appears to be working okay (comments box as well) will do more testing and let you know of any faults.
Thanks again.
I understand.
define(‘WP_DEBUG_DISPLAY’, true);
Is set to false on the live site.
This is not happening on the test site sorry only appearing on local atm. We have had customers reporting this error to us but this is the first time we have seen it ourselves.
Sounds good.
Have found one more problem.
When trying to add a BBQ sauce from the Mcdonalds menu we are getting (It’s happening on quite a few other items as well)
error : SyntaxError: Unexpected token <
When inspecting elements we get
<b>Warning</b>: Illegal string offset 'lbl' in <b>C:\xampp\htdocs\sthelens\wp-content\plugins\wppizza-add-ingredients\ajax\get-json.php</b> on line <b>628</b><br /> {"body":"<form id='wppizza-ingr-form'><legend ><a id=\"wppizza-cart-cancel\" title=\"Close\">[x]<\/a>Item options<span id=\"wppizza-sub-info\"><input id=\"wppizza-diy-to-cart\" class=\"btn btn-primary\" type=\"button\" value=\"Add to order\"><span id=\"wppizza-current-sum\"> Total \u00a3<span id=\"wppizza-current-total\">0.00<\/span><\/span><\/span><\/legend><div id=\"wppizza-ingredients-selected\"><span id=\"wppizza-current-ingredients-1\" class=\"wppizza-current-ingredients\"><span class=\"wppizza-multi-icon wppizza-multi-icon-1-1\"><\/span><p>No options currently chosen<\/p><\/span><input type=\"hidden\" id=\"wppizza-selected-ingredients-1\" class=\"wppizza-selected-ingredients\" value=\"\" \/><\/div><input type=\"hidden\" id=\"wppizza-ingr-multitype\" value=\"1\" \/><ul class=\"wppizza-multiselect-tabs\"><\/ul><div id=\"wppizza-imulti-1\" class=\"wppizza-imulti\" style=\"display:block;\"><fieldset id=\"wppizza-ingredients-req-1-154\" class=\"wppizza-list-ingredients\"><legend>How Many?<\/legend><ul><li id=\"wppizza-ingredient-1-1276-1-154\" class=\"wppizza-ingrli-1276\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1276-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1276\" \/><\/b><\/span>1 <\/li><li id=\"wppizza-ingredient-1-1277-1-154\" class=\"wppizza-ingrli-1277\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1277-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1277\" \/><\/b><\/span>2 <\/li><li id=\"wppizza-ingredient-1-1278-1-154\" class=\"wppizza-ingrli-1278\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1278-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1278\" \/><\/b><\/span>3 <\/li><li id=\"wppizza-ingredient-1-1279-1-154\" class=\"wppizza-ingrli-1279\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1279-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1279\" \/><\/b><\/span>4 <\/li><li id=\"wppizza-ingredient-1-1280-1-154\" class=\"wppizza-ingrli-1280\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1280-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1280\" \/><\/b><\/span>5 <\/li><li id=\"wppizza-ingredient-1-1281-1-154\" class=\"wppizza-ingrli-1281\"><span class=\"wppizza-doingredient wppizza-ingr-1 wppizza-input-native\" title=\"Add\"><b><input type=\"radio\" id=\"wppizza-ingredient-req-1-1281-1\" name=\"wppizza-ingredient-req-1-154\" value=\"1281\" \/><\/b><\/span>6 <\/li><\/ul><input type=\"hidden\" id=\"wppizza-ireq-1-1-154\" class=\"wppizza-ireq\" value=\"1276,1277,1278,1279,1280,1281|0|0|1|0|0\" \/><\/fieldset><\/div><fieldset id=\"wppizza-ingr-comments-post\" class=\"wppizza-ingr-comments\"><legend>Any other instructions?<\/legend><input type=\"text\" class=\"wppizza-ingredients-textinput\" name=\"wppizza-ingredients-textarea[]\" value=\"\" \/><input type=\"hidden\" name=\"wppizza-ingredients-textarea-lbl[]\" value=\"Any other instructions?\"\/><\/fieldset><div style=\"margin:0 0 30px 0;padding:5px 3px 0 0;\"><input id=\"wppizza-diy-to-cart\" class=\"btn btn-primary\" type=\"button\" value=\"Add to order\"><\/div><\/form>","head":""}
Test site is still open for you if you want to test this.
So far so good. No issues to report.
Thanks again for your support.
Didn’t think it would be.
Again feel free to use the test site to edit/remove whatever is needed to help.
Yes we did read the guide for Paypal everything is as it should be and log’s are enabled. Everything is working okay apart from that final thank you page. I have created a separate thread about this in the gateways forum didn’t mean to discuss it here.
4.6.6 ignored 😉
Thanks for the explanation.
Once this and the Paypal issue is sorted we can start to enhance the main site, again we really appreciate your help.
New test build is up.
I think I understand why we can’t add to cart. Let me see if I can word this to make sense.
If something is excluded from showing for one meal size but has a must select option then it won’t add to cart as it expecting something to be selected even though its excluded.
Hope that makes sense.
Ps. Have a look at the Nandos > Burgers, Pittas & Wraps section to see why we need multiple excludes etc.
- AuthorPosts