Code: Select all
<?php
$category = $this->model_catalog_product->getCategories($product_id);
if ($category){
$category_array = $this->model_catalog_category->getCategory($category[0]['category_id']);
echo $category_array['name'];
}
?>
Code: Select all
<?php
$category = $this->model_catalog_product->getCategories($product_id);
if ($category){
$category_array = $this->model_catalog_category->getCategory($category[0]['category_id']);
echo $category_array['name'];
}
?>
Software Developer | PHP | Python | Javascript | C# | Node JS | Integration
Users browsing this forum: No registered users and 170 guests