Skip to content

Instantly share code, notes, and snippets.

@pejantantangguh
Created July 30, 2018 06:59
Show Gist options
  • Save pejantantangguh/cf322185b1cb81923d0b8c8816fa349c to your computer and use it in GitHub Desktop.
Save pejantantangguh/cf322185b1cb81923d0b8c8816fa349c to your computer and use it in GitHub Desktop.
Adding notes on selected shipping method woo
<?php $chosen_methods = WC()->session->get( 'chosen_shipping_methods' ) ;?>
<?php $chosen_shipping = $chosen_methods[0];?>
<?php if ($chosen_shipping == 'local_pickup:26') : ?>
<p><small>Collect your order and enjoy a 30% voucher off your next in store purchase of artwork</small></p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment