Advertisement
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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement