a guest Jun 15th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- //Load the product categories
- $categories = $product_data->getCategoryIds();
- //Select the last category in the list
- $categoryId = end($categories);
RAW Paste Data