WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Delivery costs
- AuthorPosts
- 13 July, 2015 at 3:31 pm #11026
Hi,
have issue with delivery costs – example:
– pizza margherita :
– price delivery: pickup = 10 euro
– price with delivery charges = 13 eurobut 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…
13 July, 2015 at 8:20 pm #11031there 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 requiredadd_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; }
14 July, 2015 at 8:40 am #11040Thank you – still do not know where to put this code?
14 July, 2015 at 6:10 pm #11059in your themes functions.php (lika all customisations using filters and actions)
14 July, 2015 at 8:33 pm #11060This reply has been marked as private.14 July, 2015 at 8:36 pm #11061This reply has been marked as private.14 July, 2015 at 8:47 pm #11062if 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
15 July, 2015 at 3:32 pm #11070This reply has been marked as private. - AuthorPosts
- The topic ‘Delivery costs’ is closed to new replies.