• Resolved watsnick

    (@watsnick)


    Hi wondering if anyone can help

    I am trying to write trying to write some custom PHP for one of my woocomerce email templates. So that is displays a different message according to a ‘Shipping Method’.

    1. Can anyone tell me how to call the cutsomers shipping method?
    2. Let me know if I am heading in the right direction?

    i.e IF shipping method is X then display Y. If shipping method is Z then display V.

    <?php

    if(‘INSERT SHIPPING METHOD X’) {
    echo ‘message Y’;
    }

    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Finding a Shipping method in php’ is closed to new replies.