After 00:00 Hour we make + 1 CHF to Produkcts Delivery

WPPizza – A Restaurant Plugin for WordPress Support General Support After 00:00 Hour we make + 1 CHF to Produkcts Delivery

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26098
    Ferhat Yildiz
    Participant

      Hello, we make after 00:00 Hour + 1 CHF to Products for delivery to home.
      (Not all Products + 1 CHF).

      Sample:

      Time is 00:05 and Customer will 2 Pizzas and 1x Drink

      2x Pizza are normal Price = 30 CHF -> is after 00 Hour = 32.-

      1x Drink are normal Price = 2 CHF -> is after 00 Hour we make not more Price for this Product
      = 2 CHF

      I can make this with WP Pizza?

      Thank you verry mutch 🙂

      #26099
      Olly
      Admin & Mod

        there is a filter you could use

        $surcharges = apply_filters('wppizza_filter_surcharges', $surcharges, $session, $options, $module);

        (you probably do not need the 4th parameter and perhaps not even the third)
        so something like

        
        add_filter('wppizza_filter_surcharges', 'my_surcharges', 10, 2);
        function my_surcharges($surcharges, $session){
        /* 
        do your calculations based on time, and whats in the cart (i.e $session) 
        and return appropriate surcharges 
        */
        return $surcharges;
        }
        
      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘After 00:00 Hour we make + 1 CHF to Produkcts Delivery’ is closed to new replies.