- Posts: 52
- Thank you received: 0
category description
- websquirrel
-
Topic Author
- Offline
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.
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.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
Please Log in or Create an account to join the conversation.
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.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
<?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>
Please Log in or Create an account to join the conversation.
<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.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
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.
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.
- websquirrel
-
Topic Author
- Offline
- Posts: 52
- Thank you received: 0
Please Log in or Create an account to join the conversation.