category description

  • Posts: 52
  • Thank you received: 0
13 years 3 weeks ago #29287

Hello,

where and how can I show the category description? On any view that I tried out, there is only category name and image, but no description.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29316

Hi,

In your category listings menu/module's hikashop options you need to select the layout "div" and the item box layout "image an description" and it will display the description for the categories on the listing.

Also, in menu's hiakshop options, you can turn on the "show description" option in order to display the description of the current category at the top of the listing.

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29494

ah ok. and where can I make settings for the product page? I only fount settings for overview page. But I did not find any setting for the page, that is displayed when a product is clicked. For example: how can I set to display the manufacteur?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29512

There is no option to display the manufacturer on the product page.
That information is actually not loaded on the product page.
You would have to edit the file "show" of the view "product" via the menu Display->Views and add something like that to display the manufacturer:

<?php $categoryClass = hikashop_get('class.category');
$manufacturer = $categoryClass->get($this->element->product_manufacturer_id);
echo $manufacturer->category_name; ?>

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29585

Hm, this seems very complicated to me.
What about user defined fields? Such as ISBN-Code for books? Where can I set them to be displayed on product page? Am I supposed to edit the php code of hikashop for each field I want to display on product page?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29612

No. For custom fields that you create via the menu Display->Custom fields, you have a "front end display" option that you can turn on to have it displayed on the product page automatically.

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29712

nicolas wrote:

<?php $categoryClass = hikashop_get('class.category');
$manufacturer = $categoryClass->get($this->element->product_manufacturer_id);
echo $manufacturer->category_name; ?>


Thank you. That works, but is not enough, I needed a link to that manufacturer.

Unfortunately I am not an php expert, so could you please help me with coding to display manufacturer like that?

MANUFACTURER (language translation string for MANUFACTURER): <a href="link to manufacturer page"><img src="manufacturer image"> manufacturer name</a>

Last edit: 13 years 2 weeks ago by websquirrel.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29729

You can do like that:

<a href="index.php?option=com_hikashop&ctrl=category&task=listing&cid=<?php echo $manufacturer->category_id; ?>"><?php echo $manufacturer->category_name; ?></a>

For the image it's more complicated. If you want us to custom your views for you, please send a quote request via our contact form with your specifications and we will give you a quote as this is outside normal support.

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29789

hm, I am sorry to say, that your code does not always work. It seems to depend on what way someone came to product page. If he came via manufacturer, then it works. In all other cases, the link does not lead to the manufacturer but to some root category. :(

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29801

Could you give the links of the different cases so that we can see the problem ?

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29813

Sure.

Live site

When coming via menu "AutorInnen" (authors) to the book "ELLA - Ein innerer Entfaltungsprozess der Frau aus Träumen und Bildern", the link to "Dr. Ute Karin Höllrigl" works find and leads back to the author (I am using manufacturer for the author of the book)

Any other way does not work for the link, for example if you come via "Bücher" (books) to the same book.

Also I did not succeed on creating a module for displaying a certain book (for example the newest one) on the position "right".

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29824

That's because of the Itemid in your link.
If you use that code instead it will work:
<a href="index.php?option=com_hikashop&ctrl=category&task=listing&cid=<?php echo $manufacturer->category_id; ?>&Itemid=12"><?php echo $manufacturer->category_name; ?></a>

For the module, you should take example on the latest module which we have on our demo website on that page:
www.demo.hikashop.com/index.php?option=c...ow&Itemid=71&lang=en
you can find its options on the back end once you log in:
www.demo.hikashop.com/administrator/inde...odules&task=edit&cid []=74

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

  • Posts: 52
  • Thank you received: 0
13 years 2 weeks ago #29895

Thank you.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum