Adding custom items to basket

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4082
    Florian

      Hi

      I’m not sure if this already exists, I couldn’t find it in the snippets forum so I’m posting this here.

      I would like to add custom items to the users shopping cart on the order confirmation page. Obviously it should also update the total etc.
      Example:
      – The user wants to receive an sms for confirmation when the order leaves the restaurant.
      – Additional shipping fees for selected items in the basket

      Do you already have examples how to do this or do I have to study the whole code and implement it myself? If I have to develop this myself I might publish it here.

      Thanks
      Florian

      #4086
      Olly
      Admin & Mod

        Hi

        re additional shipping fees: you could use the wppizza_filter_order_summary_session filter (you will have to recalculate totals etc again though)

        see here https://www.wp-pizza.com/topic/filter-options/

        re SMS: a good starting point would probably be here:
        https://www.wp-pizza.com/topic/run-action-on-status-update-admin/

        (you will probably want to run an ajax function that does what your particular sms gateway needs it to do when the status changes to “processed” for example)

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Adding custom items to basket’ is closed to new replies.