---
title: How to include SKU in item name
description: "![](https://chwazidatetime.com/wp-content/uploads/2025/11/gcalendar.png) Use the below code snippet to display the SKU next to the item name when the order is scheduled inside Google Calendar: ``` function sl_cc_chwazi_gcalendar_alter_order_items($replacements, $order){ $order_items = $order->get_items(); $order_items_array = array(); foreach ( $order_items as $item_id => $item…"
url: "https://chwazidatetime.com/docs/how-to-include-sku-in-item-name/"
updated: "2025-11-25"
category: "Google Calendar Add-On"
---

# How to include SKU in item name

![](https://chwazidatetime.com/wp-content/uploads/2025/11/gcalendar.png)

Use the below code snippet to display the SKU next to the item name when the order is scheduled inside Google Calendar:

```
function sl_cc_chwazi_gcalendar_alter_order_items($replacements, $order){
		$order_items = $order->get_items();

		$order_items_array = array();
		foreach ( $order_items as $item_id => $item ) {
			$product = $item->get_product();
			$sku = $product ? "(" . $product->get_sku() . ")" : '';
			$order_items_array[] = $item->get_name() . " $sku x " . $item->get_quantity();
		}

	$replacements['{order_items}'] = implode( "n", $order_items_array );

	return $replacements;
}
add_filter('chwazi_gcalendar_event_replacement_tags', 'sl_cc_chwazi_gcalendar_alter_order_items', 10, 2);
```
