Hook into "Delivery time" and "Preperation time" fields

WPPizza – A Restaurant Plugin for WordPress Support General Support Hook into "Delivery time" and "Preperation time" fields

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38233
    huskendigital
    Participant

      Hi.

      We’re using your WPPizza Plugin as an order system now since june. We also have a smart external input terminal and app were we can fastly chance the current times for preparation and delivery. Actually were just showing these times (from external system) via an widget on our page.

      Is it possible to hook into the above fields and also show them in the mail template.

      Would be great to give us a solution or idea!

      Thanks
      André

      #38249
      Olly
      Admin & Mod

        wppizza_options is a global variable
        so you could simply use some action hook with the appropriate priority to change things i.e in this case

        $wppizza_options[‘order_settings’][‘order_pickup_preparation_time’]
        and
        $wppizza_options[‘order_settings’][‘order_delivery_time’]
        alternatively see here https://docs.wp-pizza.com/developers/?section=filter-wppizza_filter_options

        if you go to localization, you will find – under “Pickup / Delivery”- plenty of strings that use the %s placeholder to use in mail etc templates

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Hook into "Delivery time" and "Preperation time" fields’ is closed to new replies.