Delivery costs

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #11026
    liliput123
    Participant

      Hi,

      have issue with delivery costs – example:

      – pizza margherita :
      – price delivery: pickup = 10 euro
      – price with delivery charges = 13 euro

      but for bier or salat as category, the price is the same, still min order is 15 Euro.
      That way i have excluded from delivery categories Bier, Salat, Desserts…

      By checking order – in my cart system charges both articles – pizza and salat 3 Euro (3 euro is differnce between delivery and pickup by pizza and other categories, exclude Desserts, Salate…)

      How should i manage this – charge only for pizza for delivery 3 euro, pickup basic price and for other categories basic price without delivery charging…

      #11031
      Olly
      Admin & Mod

        there are no provisions for having different delivery prices for different items.
        your only options would be to use the following filter and re-calculate as required

        
        add_filter('wppizza_filter_delivery_charges', 'my_filter', 10, 3);
        function my_filter($deliveryCharges,$session,$options){
        /*
        recalculate/edit/adjust delivery charges as required based on parameters
        $session == array of order details
        $options == array of plugin options set 
        */
        return $deliveryCharges;
        }
        
        #11040
        liliput123
        Participant

          Thank you – still do not know where to put this code?

          #11059
          Olly
          Admin & Mod

            in your themes functions.php (lika all customisations using filters and actions)

            #11060
            liliput123
            Participant
              This reply has been marked as private.
              #11061
              liliput123
              Participant
                This reply has been marked as private.
                #11062
                Olly
                Admin & Mod

                  if you want to add 3.00 to every item on delivery, set delivery costs per item to be 3.00 in wppizza->order settings->Delivery Charges per item:

                  and then use the filter above to count the items for which you do not want to add those 3.00 and substract them again

                  #11070
                  liliput123
                  Participant
                    This reply has been marked as private.
                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘Delivery costs’ is closed to new replies.