Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Category description

Category description 11 years 3 months ago #1952

Originally, the category description is on top of the page, above sub/child categories.

We find that strange, and have moved the description further down the page, and placed it under the category title (sub category).

We think it looks better that way.

(But this way, we can't display the category description of the parent/main categories.)

Anyway, I now wrote a description for another subcategory... And it did not display... Only some of the subcategories do and some don't....

Any idea why this is?

Could it be because we have products in the categories displaying the description, and only subcategories in categories where the description isn't being displayed?

Any way to change that?

:)
Last Edit: 11 years 3 months ago by Christin Larsen. Reason: (added text)
The administrator has disabled public write access.

Category description 11 years 3 months ago #1955

Hi,

The PHP file, includes lots of PHP IF...END... probably you moved the category description inside IF...END condition, and it gets shown only if that condition is valid.

For example; (i am making this up)

<?php if (subcategoryexist) { ?>
IF the subcategory exist, they will be listed here.

<?php } ?>

So, if you moved the
<div class="category_description">
	<?php echo $this->category->category_description ; ?>
	</div>
Inside this condition, of course they will be seen only if the subcategory is exist. So, BE CAREFUL where you put the "category description" line. Make sure they are not inside any of IF..END condition. Otherwise it gets hidden in some scenarios (which i believe is your case...)

Make sure it is independent from any kind of IF...END conditions. You should carefully match all { with } to figure where the condition starts and where it is ended. (you might get lost since there lots of them...). So the better way is to TRY!!..... Try to put the <?php echo $this->category->category_description ; ?> line in different location until you are sure the category descriptions get shown in every possible scenarios (in parent category page, in child category page etc..)

Got it?
You might try to put it above this DIV line:
<div class="browse-view">

Regards.
Last Edit: 11 years 3 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.323 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo