Adding category description to product description

  • Posts: 32
  • Thank you received: 0
  • Hikashop Essential
13 years 10 months ago #4204

How can I add the category description just before the product description on the product view

Thanks

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
13 years 10 months ago #4208

You can have several categories for one product.
So you will have to edit the show file of the product view and load the category data with a MySQL query.

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

  • Posts: 32
  • Thank you received: 0
  • Hikashop Essential
13 years 10 months ago #4345

Thanks, it worked...

I assume that these modifications are not overwritten when installing a new version of Hikashop correct?

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
13 years 10 months ago #4350

If you do your modifications with our interface in Display->Views, they won't be overwritten as we use the MVC standard of joomla and save your modifications in your template.

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

  • Posts: 32
  • Thank you received: 0
  • Hikashop Essential
13 years 10 months ago #4359

Thanks this is what I did, I also noticed that there is an icon to undo view changes.

Two more questions:
What is the best way to modify the frontend_default.css file?
I needed to move the hikashop_checkout_status and hikashop_checkout_terms so that they appear on top of the next button nad not on the far left as they do now. I could not find where these are defined

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
13 years 10 months ago #4361

The best way to edit the hikashop CSS is to do it via the interface we have for that in the config under the tab display in the CSS area. That way, you won't loose your modifications when you update in the same way as with views modifications.

Not all the classes are defined in the CSS. That's because we only defined the CSS classes that needed some styling by default. So if you don't have any code for a class in the CSS you can just add it. Either in our CSS, or in your template.

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

  • Posts: 32
  • Thank you received: 0
  • Hikashop Essential
13 years 10 months ago #4362

Thank you, somehow I missed the edit css thing in the config screen

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

  • Posts: 284
  • Thank you received: 6
12 years 2 months ago #63404

nicolas wrote: You can have several categories for one product.
So you will have to edit the show file of the product view and load the category data with a MySQL query.


Please explain.

Also why doesn't the basic Description area of the Categories show?
They seem to before:
www.hikashop.com/en/forum/4-how-to/51821...scription.html#51821

Thanks.

Last edit: 12 years 2 months ago by MSTACE.

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 2 months ago #63559

This thread is about adding the category description on the product page. As I explained, it requires custom code. Something like this should do:
<?php
foreach($this->categories as $category) echo $category->category_description;
?>

The other thread is about adding the description of the current category on the products/subcategories listing page. That can be done by turning on the "show description" option of your menu via the menu Display->Content menus.

The following user(s) said Thank You: MSTACE

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

  • Posts: 284
  • Thank you received: 6
12 years 2 months ago #63598

That was on but the description was not showing.

Today the description is now showing.
Huh??

I don't have any caching on...

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

Time to create page: 0.066 seconds
Powered by Kunena Forum