Thursday, April 12, 2018

woocommerce_admin_order_data_after_order_details

woocommerce_admin_order_data_after_billing_address

woocommerce_admin_order_data_after_shipping_address

woocommerce_get_sections_checkout

woocommerce_after_checkout_form

update_post_meta( $order->id, 'key', 'data');
delete_post_meta( $order->id, 'key', 'data'); //delete_post_meta( $order->id, 'key',);
get_post_meta( $order->id, 'key', true );


add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );

add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );

add_action( 'woocommerce_thankyou', 'pipay_payment_notify', 10, 1 );

add_filter( 'woocommerce_payment_gateways', array($this, 'receipt_page'), 10,1);

add_action('woocommerce_receipt_' . $this->id, array( $this, 'order_pay' ));

add_action( 'woocommerce_checkout_before_customer_details', array( $this, 'checkout_page_before_customer_details' ), 10, 1 );

add_action( 'woocommerce_thankyou_'. $this->id, array($this, 'payment_notify_success') );

add_action( 'woocommerce_thankyou_pipay_sms', array($this, 'pp') );

/*if ( is_admin() ) {
 add_action( 'plugin_action_links_woocommerce_pipay_payment_gateway/woocommerce_pipay_payment_gateway.php', array($this, 'ss'));
 }*/

add_action('woocommerce_checkout_process', array($this, 'my_custom_checkout_field_process'));

add_action( 'woocommerce_admin_order_data_after_shipping_address', array($this,'additional_admin_order_meta'), 10, 1 );

add_action( 'woocommerce_thankyou_'.$this->id, array($this, 'order_recieved'), 1, 10 );

plugins_loaded
wp_enqueue_scripts
admin_enqueue_scripts
woocommerce_payment_gateways
woocommerce_available_payment_gateways
rest_api_init
plugin_action_links_' . plugin_name . '/wc-sms-gateway.php
admin_notices


Hey Woo Developers. I’ve created a visual HTML hook guide for the WooCommerce Checkout Page.
This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations – and you can also easily copy & paste. Enjoy!

WooCommerce Checkout Page [Visual Hook Guide]

woocommerce_before_checkout_form
–> “Have a coupon?” section <--
woocommerce_checkout_before_customer_details

Billing Details

woocommerce_before_checkout_billing_form
woocommerce_after_checkout_billing_form


woocommerce_before_checkout_shipping_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
woocommerce_checkout_after_customer_details

Your order

woocommerce_checkout_before_order_review
ProductTotal
woocommerce_review_order_before_cart_contents
Test product  × 1€1,00
woocommerce_review_order_after_cart_contents
Subtotal€1,00
woocommerce_review_order_before_shipping
Shipping
woocommerce_review_order_after_shipping
woocommerce_review_order_before_order_total
Total€1,00
woocommerce_review_order_after_order_total
woocommerce_review_order_before_payment
  • Please send your cheque to Store Name, Store Street, Store Town, Store State / County, Store Postcode.
woocommerce_review_order_before_submit
woocommerce_review_order_after_submit
woocommerce_review_order_after_payment
woocommerce_checkout_after_order_review
woocommerce_after_checkout_form

WooCommerce Checkout Page Default add_actions

// These are actions you can unhook/remove!
 
add_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_login_form', 10 );
add_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
 
add_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 );
add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 );

Where to add this code?

You can place PHP snippets at the bottom of your child theme functions.php file (before "?>" if you have it). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such delicate files - if you need more guidance, please take a look at my free WooCommerce Customization video tutorial.

Does this snippet still work?

Please let me know in the comments if everything worked as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting on PHP 7.
If you think this code saved you time & money, please join other Business Bloomer supporters and avail of 365 days of WooCommerce benefits. Thank you in advance ðŸ™‚

{ 1 comments... read them below or add one }

  1. Thank you for sharing excellent information. Your website is very cool. Fully useful your blog post... Online shopping websites in india

    ReplyDelete

- Copyright © Bongvireak - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -