Forum Replies Created
-
AuthorPosts
-
>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 ?can i have a link to the site please ?
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
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
settings->media
this is setting a wordpress itselfthis 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+elementat 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> '; }>Register new Costumer in Order Form?
https://support.wp-pizza.com/topic/the-register-feature-doesnt-appear-on-my-site/>how can i add a Calander
that’s an extension
https://support.wp-pizza.com/downloads/wppizza-preorder/what do you mean by ” the php.ini is in that path” ?
the session save path has to be set in the php.ini….
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
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 storedsays 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 configurationb)’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/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
$orderparameter so you can save yourself the wholenew WPPIZZA_ORDER_DETAILS()etc shebangmind 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
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 casewppizza->settings
>because how would they be able to receive any orders, without checking the checkbox?
email ….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)
> if you need an admin account …
yes.hooray !
This reply has been marked as private. -
AuthorPosts