Olly

Forum Replies Created

Viewing 20 posts - 881 through 900 (of 4,451 total)
  • Author
    Posts
  • in reply to: Geting the current discount/label name #43850
    Olly
    Admin & Mod

      > retrieve the currently applied discount by its ID…
      you could do something like this

      
      add_action('init', 'myprefix_discountids_applied');
      function myprefix_discountids_applied(){
      /***
      session are per blog if multisite
      ***/
      if(is_multisite()){
      global $blog_id;
      $session_key	= 'wppizza_cad_'.$blog_id;
      }else{
      $session_key	= 'wppizza_cad';
      }	
      $discount_ids = $_SESSION[$session_key]['discount'];
      /*
      now do something with the $discount_ids
      */	
      }
      

      >if I could determine if there are more than one discounts at play…
      the above will tell you if there’s one or more at play (as there will be none, one, or many id’s in that array)

      >apply your own logic…
      i suppose i could add a filter somewhere, however, if you want to apply your own logic you could also simply add your own discount(s) depending on your logic, using the wppizza_fltr_discount filter – which is essentially what the plugin does – along these lines

      
      add_filter('wppizza_fltr_discount', 'myprefix_apply_discounts',10, 3);
      function myprefix_apply_discounts($discountvalue, $session_items, $order_parameters){
      /* alter the current discount value as required */
      return $discountvalue;
      }
      
      in reply to: WPPIZZA->db->get_orders issue #43836
      Olly
      Admin & Mod

        thanks
        will be fixed

        in reply to: THANK YOU PAGE #43834
        Olly
        Admin & Mod

          Have you looked in your (javascript) console for errors ?
          Have you enabled debug – https://docs.wp-pizza.com/troubleshooting/ – and checked your debug log ?

          in reply to: WPML String Translation – Update #43797
          Olly
          Admin & Mod

            >it won’t happen again for any of your customers.
            absolutely.
            the problem is finding the exact steps to reproduce this though….

            have you tried getting the same result (error if you will) with all other non-wppizza and non-wpml plugins turned off ?

            >I noticed that this happens when browsing the products of wppizza step in the various languages to complete the description of the products.
            >I don’t know if this makes sense to you, I’ll open a ticket on wpml to see what they say.

            my guess would be it has something to do with an ajax request of some sort
            this may be a wppizza issue, may be a wpml issue. My honest guess would be it’s somewhere in the wppizza plugin.
            I’ll have to try and reproduce this though somehow first…..
            As mentioned , if you can reliably reproduce this , it would be great to get a step by step walkthrough so to speak so I can see where and how this happens

            in reply to: WPML String Translation – Update #43748
            Olly
            Admin & Mod

              PS: what version of wppizza btw ?

              in reply to: WPML String Translation – Update #43744
              Olly
              Admin & Mod

                Wppizza does not even come with any russian language files, so the first question is, where do the russian language strings come from ?

                secondly, what other plugins do you have installed. Assuming you are using WPML – does this also still happen if you dis-able *ALL* other plugins except WPML and WPPizza and use some default theme ?

                thirdly, is this reproducible ? i.e is there something particular one does / can do that causes this to happen every time ?

                in reply to: Redsys gateway #43734
                Olly
                Admin & Mod

                  > … Do you take over the project? ….
                  Sorry, I do not offer any customisations / custom coding ( https://docs.wp-pizza.com/faqs/?section=customisation )

                  > … Redsys is the way to integrate it …
                  There is a skeleton gateway in “/wppizza/add-ons/gateway-development/” you can use to develop your own gateway implementation depending on the API / documentation of the gateway you want to integrate

                  in reply to: PRESELECT, limit number of same ingredient #43733
                  Olly
                  Admin & Mod

                    you need to simply add another (non-preselect) custom group where you set the restrictions for your cheese

                    in reply to: Ignore discoiunts for add ingrediences #43707
                    Olly
                    Admin & Mod

                      can you post a screenshot of your settings please

                      in reply to: Grid price under description #43518
                      Olly
                      Admin & Mod

                        Glad to hear it

                        in reply to: Grid price under description #43487
                        Olly
                        Admin & Mod

                          you can use the “elements” attribute in the shortcode to change the “order of appearance” of things
                          https://docs.wp-pizza.com/shortcodes/?section=by-category
                          i.e
                          [wppizza category=’vandaag’ noheader=’1′ elements=’title, thumbnail, content, prices’]

                          (or – as you are not using any thumbnails it seems – just ‘title, content, prices’ should also suffice I would think)

                          in reply to: Ignore discoiunts for add ingrediences #43371
                          Olly
                          Admin & Mod

                            PS: i would not think you necessarily need to create a new category , but simply set the required items as opposed to a whole category
                            or somewhat copy the discount settings but setting different required menu items there . etc etc

                            creating a different category would probably also work – perhaps using the shortcode like [wppizza category=”cat1, cat2″] to display them together

                            just some ideas of the top off my head here

                            in reply to: Ignore discoiunts for add ingrediences #43370
                            Olly
                            Admin & Mod

                              sure.
                              the idea is that if you buy 3 at a fixed price, you should also be able to buy 6 at 2x the fixed price
                              after all, i could just send you 2 separate orders – with more work for you – and i’ll get the discount 2 times regardless

                              NOT enabling MultiApply does not make too much sense to me in the first place to be honest (but it’s there if someone really wants it and there may well be circumstances/setups where this might be totally appropriate too)

                              in reply to: Ignore discoiunts for add ingrediences #43368
                              Olly
                              Admin & Mod

                                haven’t yet checked this in detail, but my guess would be it’s because “Multi-Apply” is off.

                                i.e if it’s off, it only applies this to the first time the condition is met .
                                in your described case that’s for your 3 pizzas that are below the minimum price set, in which case the discount applied will be zero (as it’s no discount at all if you charge a fixed price of 3 x 4.49 as opposed to the “natural” 3×4.19)

                                as the condition was met, subsequent conditions met will be ignored.
                                If you enable “multi-apply” then it will consider ALL instances of the condition met.

                                Again, haven’t yet checked in detail, but I would expect that to be the issue at hand

                                in reply to: Ignore discoiunts for add ingrediences #43354
                                Olly
                                Admin & Mod

                                  And then again, sometimes it’s easier than expected ….
                                  I’ve just made v2.0.14 available (might take a little bit to show up in you plugins screen as an update being available)
                                  that adds an option of “Baseprice Only” when setting a “Cheapest [x] Items Reduced” discount
                                  I.e it will leave any add-ons (namely Ingredients added to an item) at full price if that option is selected

                                  in reply to: Ignore discoiunts for add ingrediences #43343
                                  Olly
                                  Admin & Mod

                                    not at the moment, but i;m hoping to get to have a look at this in the next week or two

                                    in reply to: Additives shows only numbers on UI #42978
                                    Olly
                                    Admin & Mod
                                      This reply has been marked as private.
                                      in reply to: Additives shows only numbers on UI #42976
                                      Olly
                                      Admin & Mod
                                        This reply has been marked as private.
                                        in reply to: Additives shows only numbers on UI #42973
                                        Olly
                                        Admin & Mod

                                          got a link where i can look at it ?

                                          in reply to: Additives shows only numbers on UI #42971
                                          Olly
                                          Admin & Mod

                                            what version of wppizza ?
                                            have you tried (re)-saving your additives ?
                                            what other wppizza related shortcodes (if any) are on that page ?

                                          Viewing 20 posts - 881 through 900 (of 4,451 total)