webdevask.com

Menu

  • Home
  • New
  • Add question

php - What is the WooCommerce hook to for purchases details after checkout?

View Original

one text

Solution:

The hook that you are looking at is woocommerce_checkout_create_order_line_item, located in

The woocommerce_checkout_create_order_line_item action hook allows to adjust line item before save. It has 4 defined arguments:

  • $item is the WC_Order_Item_Product object
  • $cart_item_key is the related cart item key
  • $values is the related cart item
  • $order is the WC_Order Object

All StackOverFlow treads using .

Related: Get Order items and WC_Order_Item_Product in WooCommerce 3

Source

See also:

  • php สร้าง Google ชีตจากบัญชีบริการ

  • php - Laravel 8.0 Installation Failed

  • javascript - How to include HTML data (tags) as value in "arrayToDataTable" of Google Pie Chart?

  • how to Grouping array in php

  • php - vender folder from my laravel project has more 1k error

© 2021
E-mail: contact@webdevask.com
Back to top