Use get_name() method $var[33]->get_name();. https://docs.woocommerce.com/ wc-apidocs/class-WC_Order_Item.html#_get_name.
Never overwrite core files! for many reasons. Note that an order can have many items (products). On orders admin list, the following will add item(s) (product(s)) ...
As a WooCommerce development freelancer, every day I repeat many coding
Pre-WooCommerce 3.0. $order = new WC_Order( $order_id ); $items = $order-> get_items(); foreach ( $items as $item ) { $product_name = $item['name']; ...
Get All Meta Data. get_name() : string: Get order item name. get_object_read() : bool: Get object read property. get_order() ...
Source. File name: woocommerce/includes/class-wc-order-item.php. Lines: 1 to 4 of 4. public function get_name( $context = 'view' ) { return ...
A user can provide a name he would like on this T-shirt. Add custom user ...
I'd like to add the event title to ticket order items. I'm currently using the following function, but it's only outputting ” – Upcoming Events”, not the ...
'name' => '',. ); /**. * Stores meta in cache for future reads. * A group must be set to to enable caching. *. * @var string. */. protected $cache_group = 'order-items';.
As I understand, “Item Name” is supposed to show the product name + the ...