Extra charge per main category

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6966
    Robert
    Participant

      Hi Olly,

      We collect orders from multiple restaurants and have an extra charge for each additional restaurant we visit.

      Is there any way to add this charge in automatically?

      We have each restaurant set up as a main category

      Eg

      McDonalds
      -Meals
      -Drinks
      -Desserts
      KFC
      -Meals
      -Drinks
      -Desserts

      So if they order a meal from McDonalds and a dessert from KFC they are charged the normal delivery fee plus an additional restaurant fee.

      Hope you can understand what I’m trying to say.

      Regards,

      #6984
      Olly
      Admin & Mod

        the only way you can do that – *reasonably* easily- is by writing a filter using the ‘wppizza_filter_summary’ hook (that’s where i would look/try anyway)

        so, something along those lines

        
        add_filter('wppizza_filter_summary','my_custom_filter');
        function my_custom_filter($summary){
        /** 
        here now overwrite/amend/do whatever you need to do overwriting, 
        amending bits of the $summary array
        **/
        return $summary;
        }
        
      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Extra charge per main category’ is closed to new replies.