WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Adding ingredients for orders has stopped working
- AuthorPosts
- 22 September, 2014 at 8:30 pm #5237
I just updated your recent new wppizza plugins. Now adding ingredients on the order online page has stopped working. I am going through custom groups listed on the page and it has stopped. Visit here: http://mipizzaaustin.com/our-menu/ Not sure why this has happened. Any idea?
22 September, 2014 at 8:55 pm #5238I just updated your recent new wppizza plugins. Now adding ingredients on the order online page has stopped working. I am going through custom groups listed on the page and it has stopped. Visit here: http://mipizzaaustin.com/our-menu/ Not sure why this has happened. Any idea?
22 September, 2014 at 9:22 pm #5239looking at it.
throws a javascript error, but right now not sure where its coming from
(says something likeUncaught TypeError: object is not a function
somewhere here it seems(function(term
/**/) {
return wppizzaCartCommentToggle(term);
})not sure why (did you add/edit any js anywhere ?
could you also – at least once now – clear the cache on that page ?22 September, 2014 at 9:29 pm #5240also , which version did you update from btw ? (if you remember)
22 September, 2014 at 9:59 pm #5241I saw two wppizza updates today and I did the updates. However, it is a huge problem now. I am having no problem with my wordpress attached pages. It is like when we were having the trouble before. The ingredient option only fails when I use an independent browser window that is not attached to the WordPress attached browser.
It is not working on chrome and firefox browsers. Do we need to readjust the WP Super Cache again?
22 September, 2014 at 10:07 pm #5242the update should not have affected anything on that front ( i downgraded here to the version you have and there are no ill effects)
can you turn off the caching for the moment and let me know when you have done so ? (will at least circumvent one possible issue – although this shouldnt have anything to do with it , but worth a shot for starters)
22 September, 2014 at 10:15 pm #5245ok, your issue seems to be here:
something somewhere inserts this (i’ll have a look in a minute why that may be , but just posting this first):
<script> var getElementsByClassName=function(a,b,c){if(document.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||document;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(document.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=document.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=document.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=document.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)}, dropdowns = getElementsByClassName( 'dropdown-menu' ); for ( i=0; i<dropdowns.length; i++ ) dropdowns[i].onchange = function(){ if ( this.value != '' ) window.location.href = this.value; } </script>
if i take this out , it works just fine…..
22 September, 2014 at 10:22 pm #5246now i see you cleared the cache , seem to work fine now , no ?
22 September, 2014 at 10:23 pm #5247It seems to be working now. I don’t know what just happened. Did you just remove an insert? It seems to be going well…
22 September, 2014 at 10:23 pm #5248nothing wrong with caching things (in fact i’m all for it) but you should really clear any caches after plugin updates (in fact the caching plugin should actually alert you to that fact)
22 September, 2014 at 10:25 pm #5249> Did you just remove an insert
i didnt do anything (other than trying to figure out what the deal is)
i assume it was a caching issue (my best guess here)22 September, 2014 at 10:27 pm #5250by the way , you can probably just ignore what i said about that script above
probably was just an overlap in between you clearing the cache and me taking out that script and it suddenly working22 September, 2014 at 10:49 pm #5251Thanks Olly, Would you check http://www.mipizzaaustin.com and look at the order online page? I need to know if you click on Craft Your Own Pizza and see if the page will let you pick your ingredients. If you click on Craft Your Own Pizza you should see a the options to select your ingredients. That’s going on now for me. I was hoping you could see if it works for you.
22 September, 2014 at 10:55 pm #5252all fine and working here…
22 September, 2014 at 10:58 pm #5253Perfect. Once again, you’re my hero. Tell you what…getting this thing working makes it mean that I should be able to help anyone get their restaurant online project working. Thanks…
- AuthorPosts
- The topic ‘Adding ingredients for orders has stopped working’ is closed to new replies.