Display Category in Product

  • Posts: 95
  • Thank you received: 1
  • Hikashop Business
10 years 7 months ago #155188

-- url of the page with the problem -- : moodleshop.wideservices.gr
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.4.22
-- Browser(s) name and version -- : Chrome 33.0.1750.154
-- Error-message(debug-mod must be tuned on) -- :

Hi,

As products in my eshop I have moodle courses, so i connected joomdle with joomla-hikashop. What I want is to display the teachers of the courses in the courses (products) in Joomla. I created categories Teachers and 2 subcategories Professor A,B with photos and descriptions. How can display them in the products and how can I link them in order for the user/student to be able to click and see their profile (in Joomla).

Thanks in advance guys

Please Log in or Create an account to join the conversation.

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
10 years 7 months ago #155229

Hi,

I guess that you want to create a custom field of the table "product" via the menu Display>Custom fields where you'll be able to enter the HTML a tag for the link to the Joomla article.
Then, the custom field value would display on the product page with the link going to the Joomla article like you want.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 1
  • Hikashop Business
10 years 7 months ago #155526

Hi,

I was thinking to create a category "Teachers" and sub categories for every teacher so that I can use search filters for the teachers. Any ideas?

Thanks in advance

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #155536

Hi,
I think that what you want do will be doable, so you'll just have to create your teacher categories and your category filter.

Please Log in or Create an account to join the conversation.

  • Posts: 95
  • Thank you received: 1
  • Hikashop Business
10 years 7 months ago #155669

Yes, but I also need to display the teachers in the products/courses -name and description- but also to have a link to the teacher profile.

Please Log in or Create an account to join the conversation.

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
10 years 7 months ago #155691

For the display of the categories on the product page, there is no automatic system.
You would have to edit the file "show_default and add such custom code:

<?php global $Itemid;
$categoryClass = hikashop_get('class.category');
foreach($this->categories as $category){
$categoryClass->addAlias($category);
echo '<a href="'.hiakshop_completeLink('category&cid='.$category->category_id.'&name='.$category->alias.'&Itemid='.$Itemid).'">'.$category->category_name.'</a>'.$category->category_description.'<br/>';
}
?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum