Olly

Forum Replies Created

Viewing 20 posts - 941 through 960 (of 4,446 total)
  • Author
    Posts
  • in reply to: Issue with legacy version. #42678
    Olly
    Admin & Mod

      v2.x has not changed at all of course since v3 was released
      so my guess would be that the session handling on your server changed – for whatever reasons

      please see here
      https://docs.wp-pizza.com/troubleshooting/?section=cannot-add-more-than-one-item-to-cart

      the docs.wp-pizza.com generally refers to v3.x , but session handling has not changed between wppizza v2 or v3 so it will be just as applicable

      Olly
      Admin & Mod

        In essence, you found some old codesnippet (somewhere on here i guess) that was related to wppizza v2.x.
        The “official” documentation – if you will – for v3.x can be found here https://docs.wp-pizza.com/

        That said, not all the snippets that were mentioned here on this forum in the past have yet been copied/updated there (some do not even exist in v3.x anymore anyway but were accurate at the time before v3.x).
        The docs will always be work in progress I suppose and will be amended on “as needed” / “as requested” basis.

        In any event, the error you were getting is “correct” in so far that in v3 only 2 arguments are now passed on as the 2nd one contains all data now that was previously passed on in the additional arguments (there were actually 7 altogether)

        So cutting a long story short: yes, there are now only 2 parameters so the filter should indeed be something like

        add_filter( 'wppizza_filter_orderhistory_order_info', 'my_function', 10, 2);
        or
        add_filter( 'wppizza_filter_orderhistory_order_info', array($this/*or some distinct class*/, 'my_function'), 10, 2);

        I hope that clears things up somewhat

        cheers

        Olly
        Admin & Mod

          have you enabled debug ?
          i am pretty certain it will tell you what the issue is
          https://docs.wp-pizza.com/troubleshooting/

          in short, this is not how you use filters
          you either do

          add_filter( 'wppizza_filter_orderhistory_order_info', 'my_orderinfo_add_id', 10, 4 );
          or
          add_filter( 'wppizza_filter_orderhistory_order_info', array($this/*or some distinct class*/, 'my_orderinfo_add_id'), 10, 4 );

          depending on where/how you use it

          in reply to: timed menu for ingredients #42468
          Olly
          Admin & Mod

            I dont know what you did of course, but my *guess* would be that you simply doubled you lunch menu (with different soups as required) and enabled/disabled the relevant “lunch menus” for the given days
            (ingredients themselves are not “timeable” so to speak)

            other than that I can only suggest you look at how you did this on that “other ” site

            in reply to: v3 custom gateway #42347
            Olly
            Admin & Mod

              have a look in the plugin itself (sub)-directory /add-ons/gateway-development/

              in reply to: Control Margins #42308
              Olly
              Admin & Mod

                > it seems that cloudprint can accept a parameter of zero margin.
                all the wppizza cloudprint plugin does is send the order to cloudprint based on the template (settings) you have selected . it really is between cloudprint and the printer itself to do what you want it to do .
                This is nothing the plugin has control over.

                furthermore, the links you posted seem to refer to the settings of the device itself , not any parameters you can send to it to dynamically change them . not from what I can see anyway

                >This snippet at Stack exchange ….. Seems to be trying to pass the parameter.
                it also says there that it does not work

                please also see here. maybe you can get some ideas from there as a workaround perhaps
                https://support.wp-pizza.com/topic/question-google-cloudprint/

                generally speaking, how things are printed once the order has been sent to cloudprint is entirely the printers responsibility. if it does not print margins (for example) then you will have to speak to the printer manufacturer . only they will know about this

                in reply to: WPML Problem #42304
                Olly
                Admin & Mod

                  as far as i remember , you can actually tell WPML to not translate categories , in which case it would also work i would expect, however , this is probably not something you want (as the category names would stay the same regardless of language)

                  in reply to: WPML Problem #42303
                  Olly
                  Admin & Mod

                    although there’s probably a case that can be made to perhaps do some scripting that would account for this, the fundamental problem from what i can see is as follows:

                    though your pages are translated , you are using the non-translated shortcode on these pages.

                    i.e on your IT page you are using [wppizza category='crepes' noheader='1' showadditives='0'] which works fine, as we know
                    however, on the EN translation your are ALSO using [wppizza category='crepes' noheader='1' showadditives='0'] where you should be using the shortcode that references the EN categories – that is [wppizza category='crepes-en' noheader='1' showadditives='0']
                    (note the category slug difference)

                    not using the associated slug will in effect result in the categories not existing for that language (in simple terms) which will throw these issues and therefore the plugin will not be able to add anything (categories are somewhat essential for all sort of things)

                    let me know if the above makes sense. (certainly fixes it when i do this here with your setup)

                    in reply to: WPML Problem #42300
                    Olly
                    Admin & Mod
                      This reply has been marked as private.
                      in reply to: WPML Problem #42297
                      Olly
                      Admin & Mod
                        This reply has been marked as private.
                        in reply to: WPML Problem #42294
                        Olly
                        Admin & Mod
                          This reply has been marked as private.
                          in reply to: WPML Problem #42292
                          Olly
                          Admin & Mod

                            looking at your /wp-content/debug.log when (unsuccessfully) trying to add something to the cart myself here
                            https://www.pizzeriacarignano.it/en/order-online/crepes/
                            i get a Undefined offset:....../class.wppizza.categories.php on line 192

                            which leads me to believe it’s (perhaps – cannot be sure yet ) a non-translated category ?

                            can i ask you this as well please: are all categories that an item belongs to also available (and translated) for your other languages ? or maybe there’s an option in WPML that lets you enable/disable this ?
                            just trying to narrow things down . After all I do not know every single option available in WPML as I am not the developer of WPML of course

                            in reply to: WPML Problem #42291
                            Olly
                            Admin & Mod

                              I’ll see if I can reproduce this here first of all

                              from what you are saying this would seem to be an issue with the add ingredients plugin in conjunction with WPML, which narrows it down somewhat

                              will get back to you when i know more, but this might take a little bit

                              in reply to: order_details in DB – Change format #42194
                              Olly
                              Admin & Mod

                                there are now some globally available and more versatile wrapper functions available
                                https://docs.wp-pizza.com/developers/?section=email-print-templates

                                in reply to: Warning from paypal custommer service #42168
                                Olly
                                Admin & Mod
                                  in reply to: Warning from paypal custommer service #42167
                                  Olly
                                  Admin & Mod

                                    “Warning from paypal custommer service” is also a misleading topic . nowhere in that email is anyone saying they are from paypal or paypal customer service (legally that would probably be misrepresentation or whatnot – i’m not a lawyer – and lead to jailterms if caught)

                                    sure , if you give them access to your paypal account they will be “looking after your account” , but not in the way you want them to , i can assure you

                                    Generally speaking though, if you are worried about things, contact paypal directly (and don’t reply to those emails, but literally pick up the phone or go to their website and contact them there)
                                    Same applies to anything else along these lines; paypal , stripe or whatever other payment gateway or accounts you use/have

                                    And last but not least: I really am the wrong person here to contact for this sort of thing. I am not a security researcher or advisor. Actions you take regarding emails you receive are really your responsibility.

                                    The above is my take on things as I see it from the information you provided and I am happy to give you my thoughts on this
                                    BUT, the security of your paypal (or any other) account lies with you. I am not responsible for the actions you do or do not take (Just want to make this clear)

                                    in reply to: Warning from paypal custommer service #42166
                                    Olly
                                    Admin & Mod

                                      >I just got a mail from paypal.
                                      no, you did not. all you did was get some rubbish from people that want to rip you off

                                      should have been perfectly clear when they were referencing woocommerce to start off with – unless you are using woocommerce of course, but then I suspect you would have contacted woocommerce I would think.

                                      Not to mention the “I could not reach you by phone…” and pretty much the whole rest of that email

                                      Olly
                                      Admin & Mod

                                        thinking out loud for a sec. i wonder if this is actually down to something that changed in wordpress itself.
                                        I am not going to spend too much time finding out if this is the case, however it is simply a matter of replacing (my end)

                                        $first_term = get_the_terms($atts['id'], WPPIZZA_TAXONOMY); , which worked like that for years with
                                        $first_term = wp_get_post_terms($atts['id'], WPPIZZA_TAXONOMY);

                                        no, i don’t know either why the 1st doesnt seem to work anymore but the 2nd does. oh well

                                        Olly
                                        Admin & Mod

                                          ok, using the ‘add_item_to_cart_button’ in the loop like that seems to have got lost in the porting from v2.x to v3.x
                                          i’ll amend that in the next update . essentially in this case the category id does not get passed on if you use it like you do

                                          in the meantime, you can work around this by simply passing on the cat id as well . i.e something like this)

                                          
                                          <?php
                                          // before the loop.		
                                          $obj = get_queried_object();
                                          $cat_id = $obj->term_id;
                                          // Start the loop.		
                                          while ( have_posts() ) :
                                          	the_post();
                                          	echo  do_shortcode("[wppizza type='add_item_to_cart_button' id='".get_the_ID()."' category_id='".$cat_id."' ]");
                                          endwhile;
                                          ?>
                                          
                                          Olly
                                          Admin & Mod

                                            question:
                                            how exactly are you generating the output of this page
                                            /matsedill/shakes/
                                            secondly, what happens if you use a default theme (like 2016 for example)

                                          Viewing 20 posts - 941 through 960 (of 4,446 total)