I'm setting up an ordering site for a sports game-day catering company. There are seven games available for the user to pick from (set up as categories). Some items are available for every game, some items are exclusive to certain games. I currently have each product setup one time and set to the selected categories. I want to pass the page/category name to the meta_data of each item when it's ordered so it's clear which day the food needs to be prepared for. Since each item exists in multiple categories, I believe I need to get the current post_slug instead of category since most items will have multiples categories. I have the site set to order from the categories page and not go through to single-item page.
How to pass current category post_slug as meta item when added to cart in WooCommerce