Olly

Forum Replies Created

Viewing 20 posts - 1,761 through 1,780 (of 4,430 total)
  • Author
    Posts
  • in reply to: % Surcharge includes tax #28227
    Olly
    Admin & Mod

      PS: in case someone else reads this.
      percentages should be entered with either upto 2 or 4 (or more) decimals otherwise you will end up with a number in the thousands (i.e 14.123% would be saved as 14123%) that’s because of formatting sanitisation and the fact that there are actually some currencies that use 3 decimals (for reasons i do not know)

      in reply to: % Surcharge includes tax #28226
      Olly
      Admin & Mod
        This reply has been marked as private.
        in reply to: % Surcharge includes tax #28225
        Olly
        Admin & Mod

          ok, calculation should actually be like this (just so happens that using 2% and 10% in my initial example produces the same result …..lol)

          x = vat/sales tax
          y = handling charge
          calculation should be

          y – (y/10x*x)

          so – in your case:
          15 – (15/106*6) = 14.1509433…

          in reply to: % Surcharge includes tax #28223
          Olly
          Admin & Mod

            strangely, that calculation – with your numbers (6% / 15%) is not accurate
            it returns 14.241509433…
            when it should be 14.150943 (you’ll still get some rounding errors if a sale is over 1,000,000 but i’m sure that’s good enough for this excercise)

            just enter this (i.e 14.150943) into the surcharges percentage field while i figure out why this is different (kind of for my own entertainment and future reference)

            in reply to: % Surcharge includes tax #28221
            Olly
            Admin & Mod

              > I get 1.92 if I do the equation with adding the two

              then you need to buy yourself a new calculator
              2/110 = 0.018181818…
              2-10% = 1.8

              which clearly sums up to 1.81818….

              Olly
              Admin & Mod

                >Is there a way to disable an ingredient in certain sizes?
                yup. you need to use an exclude custom group (i.e select appropriate size/group , then set type = exclude and check things as needed)

                in reply to: Guest "checkout" report. #28192
                Olly
                Admin & Mod

                  a) generally i do not do customisations
                  https://support.wp-pizza.com/topic/customisation/

                  b) it’s a restaurant / pizza etc plugin. of course it can be used for all sorts of things – evidently – but what you are asking for is way outside the scope of the plugin. I have no intention of making this an AirBnB thing or anything resembling it (after all, AirBnB already exists)

                  c) that said, i can see that it might be useful – even staying within the scope of wppizza – to add a button in the customer screen that would do something similar as the “print order” button in the order history but showing all orders for the customer. probably not with date ranges set (but i could perhaps add a filter or action hook of some sort that would let people add this if necessary).
                  However, definitely not before v3.x is released/stable though

                  d)extensions only make sense if there’s a demand for them (i.e more than just one or 2 people) as they have to have a ROI while keeping them at reasonable cost

                  in reply to: % Surcharge includes tax #28190
                  Olly
                  Admin & Mod

                    just lower the handling charge accordingly taken the tax rate you set into account i would have thought

                    example, if your tax is 10% and you want to have 2% handling charge but without applying it to the tax, set the handling charge to 1.81818%

                    i.e (2/110)+(2-10%)

                    in reply to: Guest "checkout" report. #28181
                    Olly
                    Admin & Mod

                      PS : you might even find that some of your customisations wont even be necessary anymore using v3 and can be achieved with shortcode attributes instead (but depends on what exactly you customised of course)

                      in reply to: Guest "checkout" report. #28180
                      Olly
                      Admin & Mod

                        in no particular order

                        >is your warning still in place not to use this on a live site?

                        yes (kind of).
                        the point of the warning is to not just update a live site, but to copy a live site to a test place somewhere, apply updates and make sure it still works – after thorough testing – before actually applying it to a live site. it really depends on the amount and type of customisation that has taken place if upgrading will be easy or time consuming.
                        generally i would suggest to copy what you have to a test server somewhere, upgrade the plugin and see what the story is.
                        if no customisations were done (more about customisations below), then the idea is that it will just work, but given the differences between 2.x and 3,x it’s strongly suggested to test this first in an environment where no harm is done if it goes wrong – essentially v3.x is more or less a re-write of the plugin

                        >Will 3.x maintain any 2.x settings/customization?
                        that really depends on the kind/extend of customisations that have been done

                        >Will WPP Menu items / Categories still be in place?
                        they should be (again, see above regarding using a test environment first)

                        >Will WordPress customization on the WPP pages still work?
                        depends on what kind of customisation we are talking about

                        >Will WWP customization transfer? (various pngs and wppizza-default.css were updated
                        css is – largely – the same. main difference being that the file hierarchy will change a bit to make things somewhat more structured and – for consistency – the cart/order details are using tables now
                        (in fact, one of the main reasons why it’s not yet out of beta is that i am in the process of writing the documentation for it all. not only what’s there/possible, but also some guide regarding the main differences between 2.x and 3.x and how to make sure ccs edit – for example -can be reasonably simply made to work by making sure the file hierarchy is what it should be in v3.x)

                        >Will WPP settings/and localization be in place?
                        they should be (again, see above regarding using a test environment first)

                        >Will 2.x Order history remain?
                        it should be (see above regarding using a test environment first)

                        in reply to: Guest "checkout" report. #28174
                        Olly
                        Admin & Mod

                          wppizza v3.x has a dedicated customer screen in the backend

                          in reply to: Urgent Help:Orders Problem #28142
                          Olly
                          Admin & Mod

                            sorry, but i simply do not understand what “2 medium 3 top 4 drinks ” is supposed to be

                            in any event, you cannot assign a pizza to another pizza (i.e somewhat conditionally chain them) and have them both being able to have a topping selection too.

                            Of course with some creative thinking one *can* of course do some special offers of some sort and putting a whole menu together, but only up to a point as that’s not what this plugin is for.
                            (That, said, I am just guessing that’s what you are after as it’s not clear to me from your post)

                            in reply to: Guest "checkout" report. #28127
                            Olly
                            Admin & Mod

                              the only half way sensible ideas i have is the following

                              a) add a filter in inc/admin.report.functions.php on aprox line 752 like

                              $ordersQuery = apply_filters('wppizza_filter_report_query', $ordersQuery);
                              right AFTER $ordersQuery.='ORDER BY order_date ASC';

                              (i am happy to add this one to an update if needs be as you would be editing a core file)

                              b) add a button (or probably a dropdown list of users) somewhere (see wordpress codex) that on change/submit/whatever runs the action as in c) below making sure the filter in a) is applied to only show/select from wp_user_id = xxx (you should be able to get the id from the email)

                              c) create your own reports as outlined here https://support.wp-pizza.com/topic/create-your-own-sales-report/

                              i .e you would end up with a csv that only lists orders for that user (by id)

                              note: this will not be trivial though

                              in reply to: Separate button for add to cart instead of prices #28110
                              Olly
                              Admin & Mod

                                >Is there a way to have the price be its own separate thing instead of being the way a user adds an item to the cart?

                                it kind of is, except that is ALSO can be used to add to the cart.
                                by default – dont know about your site of course – there’s also a cart icon underneath (with text on hover even ) to make it even more obvious

                                if you want to increase quantity , it can be done – if enabled – in the cart

                                i might add an option somewhere that allows to have some sort of input number before adding to cart – as this has cropped up a few times – but i am trying to somewhat keep it simple at the same time without having to click 1000 times simply to add things to the cart (kind of the point of the plugin in the first place)

                                in any event, that option – when/if it gets added – will only be available in wppizza v3.x after it has been released out of the beta stage (just for your info)

                                >but it’s all in the details.
                                absolutely. and without people giving feedback like this the plugin would not be anywhere near what it is

                                in reply to: Don’t get any mail after someone ordered. #28096
                                Olly
                                Admin & Mod

                                  a) your debug tells me you are using a very old version of the add ingredients plugin. however, that has nothing to do with not receiving emails

                                  b) if orders show up in the order history, then – programmatically – emails have been sent (otherwsie they would not show up in your order history)

                                  this sounds like a mail setup / server error . are you sure your server is even capable of sending mails ?

                                  in reply to: Guest "checkout" report. #28083
                                  Olly
                                  Admin & Mod

                                    >The only other issue with this setup is that guest can order multiple times a day and get the same discount. This has happened a few times.

                                    i know nothing about your setup of course and it’s just an idea, but this one
                                    https://support.wp-pizza.com/downloads/wppizza-coupons-and-discounts/
                                    let’s you also specify a “once per customer” discount. however, if someone stays for more than one day and this is to be applied every day, you would have to reset the count every day (i.e re-save the discount or create a new one with the same settings)

                                    again, just an idea

                                    in reply to: Guest "checkout" report. #28082
                                    Olly
                                    Admin & Mod

                                      if you have the username/password for every user (i assume you are using this whole shebang somewhat internally ) you could create a order history page (i.e a page with [wppizza type=”orderhistory”] shortcode on it) and get a list of that particulars person orders.

                                      however, as it stands, there isn’t really any integration of any kind to send this by email in a “click here to email” button sort of way#

                                      the only thing i can think of is doing something like running the_content filter on that purchase history page along these lines

                                      
                                      add_filter( 'the_content', 'my_the_content_filter', 20 );
                                      function my_the_content_filter( $content ) {
                                      global $post;
                                      if($post->ID == x && is_user_logged_in()){//x being the post id of that page
                                      $user = wp_get_current_user();
                                      $user_id = $user->ID;
                                      $user_email = $user->email;//or similar, dont know of the top off my head how to get the email, see codex
                                      /* run a query on wppizza orders table using wp_user_id = $user_id and save as file somewhere perhaps*/
                                      
                                      $content.='add some button that on click sends the file to user ';// 
                                      }
                                          return $content;
                                      }
                                      
                                      

                                      the above is just a very rough idea, i am sure there would be more hoops to jump through to make this work, but should be doable

                                      in reply to: Adaptive design #28068
                                      Olly
                                      Admin & Mod

                                        you need to use css media queries defining min-width , max-width and override width and clear properties (and perhaps a couple more such as margins )

                                        in reply to: Don’t get any mail after someone ordered. #28054
                                        Olly
                                        Admin & Mod

                                          >I did debuging but it doesn’t work.
                                          what exactly do you mean by “I did debuging but it doesn’t work.” ?

                                          what does your debug log say ? (assuming you followed this https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/ )

                                          in reply to: Post/Zip code call map popup #28039
                                          Olly
                                          Admin & Mod

                                            or simply try something like this on click and after load

                                            https://stackoverflow.com/questions/8558226/recenter-a-google-map-after-container-changed-width

                                            no idea if this works and will most likely need some tweaking but might be a starting point if you really want to do the popup on click with a different type of thickbox….

                                          Viewing 20 posts - 1,761 through 1,780 (of 4,430 total)