Olly

Forum Replies Created

Viewing 20 posts - 2,761 through 2,780 (of 4,430 total)
  • Author
    Posts
  • in reply to: registration #15926
    Olly
    Admin & Mod

      >possible to use user registration in other pages (or shortcode) without use other plugins?

      please see wordpress.org and google. this is not a wppizza question

      >disable some fields to the order page only for the registered users ?
      what for ?

      in reply to: Post code error #15902
      Olly
      Admin & Mod

        can i have a link to the site please ?

        in reply to: Limit changes and half/half menu items #15885
        Olly
        Admin & Mod

          PS: i will have a look at adding an alert of some sort before trying to add to cart when removing below 4 instead of waiting until the user is actually trying to add it to the cart.If memory serves me right, the restriction(s) were added before the ability to pre-select things so did not take the possibility into consideration that things might already have been added.

          anyway, i’ll see what i can come up with there

          in reply to: Limit changes and half/half menu items #15884
          Olly
          Admin & Mod

            something like this i would have thought screenshot

            although -if you also have preselected things – one would still be able to remove items to below 4, one would not actually be able to add it to the cart, so you might want to add something to the label of the group like “minimum of 4 maximum of 8” or some such thing

            in reply to: Size of the thumbnail for each product #15882
            Olly
            Admin & Mod

              settings->media
              this is setting a wordpress itself

              in reply to: increase/decrease #15852
              Olly
              Admin & Mod

                this might help with the re-applying styles too after cart update
                https://www.google.co.uk/?gws_rd=ssl#q=jquery+spinner+dynamic+after+adding+element

                in reply to: increase/decrease #15851
                Olly
                Admin & Mod

                  at some point i did this here in a development environment but decided against it.
                  if memory serves me right it was either because it confused the issue for the user or the boxes would have been way too big for the cart, but I cannot remember anymore exactly.

                  i guess your could try adding this again along these lines so the relevant scripts/styles get loaded on all pages and not only the order page.

                  you will possibly also have to apply the spinner css/styles again somehow after the car is refreshed . *perhaps* look here https://support.wp-pizza.com/topic/running-your-own-custom-javascript-functions-on-cart-refresh/

                  anyway , the below might get you going (not tested though and just off the top of my head so to speak)

                  
                  add_action('wp_enqueue_scripts', 'my_script');
                  add_action('wp_footer', 'my_footer_script');
                  function my_script(){
                  	global $wp_scripts;
                  	/*get wppizza options*/
                  	$wppizza_options = get_option('wppizza');
                  	$style= $wppizza_options['layout']['order_page_quantity_change_style'];
                      	
                      /*load spinner css on all pages - keep 'order_page_quantity_change_style' to only enqueue once*/	
                  	$ui = $wp_scripts->query('jquery-ui-spinner');
                  	wp_enqueue_style('jquery-ui-'.$style.'', "//ajax.googleapis.com/ajax/libs/jqueryui/".$ui->ver."/themes/".$style."/jquery-ui.min.css", false, null);    	
                      /*load spinner js*/ 	
                  	wp_enqueue_script("jquery-ui-spinner");
                  
                  }
                  function my_footer_script(){
                  print'<script>
                  	jQuery(document).ready(function($){
                    		var spinnerElm=$( ".wppizza-cart-incr" );
                         	spinnerElm.spinner({ min: 0});/*set min var*/
                  
                  		spinnerElm.on( "DOMMouseScroll mousewheel", function ( event ) {
                  		  if( event.originalEvent.detail > 0 || event.originalEvent.wheelDelta < 0 ) { //alternative options for wheelData: wheelDeltaX & wheelDeltaY
                  		    // down
                  		    if (parseInt(this.value) > 0) {
                  		    	this.value = parseInt(this.value, 10) - 1;
                  		    }
                  		  } else {
                  		  	// up
                  		  	this.value = parseInt(this.value, 10) + 1;
                  		  }
                  		  //prevent page from scrolling
                  		  return false;
                  		});
                  
                  	});
                  	</script>
                  ';  
                  }
                  
                  in reply to: Register new Costumer #15841
                  Olly
                  Admin & Mod
                    in reply to: issues when installed #15807
                    Olly
                    Admin & Mod

                      what do you mean by ” the php.ini is in that path” ?

                      the session save path has to be set in the php.ini….

                      in reply to: issues when installed #15805
                      Olly
                      Admin & Mod

                        this all depends on your server. i cannot advise you and would suggest you speak to your host/server admin.

                        To be honest , it’s them that should have set this up in the first place anyway

                        in reply to: issues when installed #15803
                        Olly
                        Admin & Mod

                          either create that path or set another one in the php.ini

                          PS:you do not change the path of THIS session, but change/create the path for ALL sessions.
                          i.e you need to have/create a *directory* where the sessions are stored

                          in reply to: issues when installed #15801
                          Olly
                          Admin & Mod

                            says it all there already really.

                            in any event:

                            a) ‘session_start’
                            looks like your sessions aren’t working. the session path might be incorrect / non-existing / not setup in your server configuration

                            b)’URL file-access is disabled / file_get_contents’
                            so the images that come as default with the plugin are not added.
                            if you go to the default items that have images added (typically Dessert A, Pizza A/B/C, Special Pizza, Great Steak, Yummy Pudding) and just delete the “featured images” for those, you’ll probably find that all the ‘file_get_contents’ warnings disappear (although you might also find that you cannot upload ANY images – that’s something you would have to take up with your host)

                            c)’headers already sent’
                            there must be no output before starting a session. my guess is you have debug turned on outputting things instead of logging them .
                            i would suggest to set up debug like so
                            https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/

                            in reply to: Additional filter suggestions #15797
                            Olly
                            Admin & Mod

                              ok,
                              as of 3.4.1 i added the following filter just before $printerid = $printers[0]['id'];

                              
                              /**filter as required**/
                              $printers = apply_filters('wppizza_gcp_filter_printers', $printers, $orderId, $order);
                              
                              

                              which shuould let you do all your things there and also passes on the $order parameter so you can save yourself the whole new WPPIZZA_ORDER_DETAILS() etc shebang

                              in reply to: Set check automatically in order history #15729
                              Olly
                              Admin & Mod

                                mind you, making this checked as default (in new installations anyway) is probably a good idea as most people will most likely want this checked and they can still turn it off if they want to

                                i’ll make a note of that for an update

                                in reply to: Additional filter suggestions #15728
                                Olly
                                Admin & Mod

                                  question for you (as i dont even have a printer).

                                  have you actually tried this code and does it work to select from different printers ?
                                  happy to add this (or similar) if that is the case

                                  in reply to: Set check automatically in order history #15727
                                  Olly
                                  Admin & Mod

                                    wppizza->settings

                                    >because how would they be able to receive any orders, without checking the checkbox?
                                    email ….

                                    in reply to: Client history #15701
                                    Olly
                                    Admin & Mod

                                      please see the shortcodes
                                      https://support.wp-pizza.com/topic/wppizza-shortcodes/ -> **display the users order history**

                                      currently re-ordering is not possible from there (perhaps in wppizza v3)

                                      in reply to: problems with preorder #15680
                                      Olly
                                      Admin & Mod

                                        > if you need an admin account …
                                        yes.

                                        in reply to: Unauthorized update #15665
                                        Olly
                                        Admin & Mod

                                          hooray !

                                          in reply to: Unauthorized update #15658
                                          Olly
                                          Admin & Mod
                                            This reply has been marked as private.
                                          Viewing 20 posts - 2,761 through 2,780 (of 4,430 total)