VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: SAWebCo on September 04, 2018, 22:46:07 pm

Title: Category Layout Problems
Post by: SAWebCo on September 04, 2018, 22:46:07 pm
Hi Team,

I have a couple of questions that I hope someone can easily help with.

1. Virtuemart Category Page - Image
I have my category images showing fine on the shopfront links as thumbnails but the image is not showing in each category page itself alongside the category text description as I has hoped.

Is there a setting somewhere that may need to checked or unchecked? Or is this a template issue?

2. Virtuemart Category Page - Layout
I have top-level categories and sub categories set up correctly.
In my top-level categories I am correctly only showing the sub-categories (not products from all sub-categories).

The problem is my sub category link thumbnails are at the top of the page and my category title and description is at the bottom of the page under the sub-category link thumbnails.

How do I switch this order, i.e. Category Title and Description at the top of the page and sub-category link thumbnails underneath?

Is this a template issue?
If so do I need to change the VM Category page layout in the template file manually?

Thanks in advance.

James

VirtueMart 3.2.14 on Joomla 3.8.8 (localhost)
Title: Re: Category Layout Problems
Post by: GJC Web Design on September 04, 2018, 23:07:14 pm
standard template?
1. there is only

<div class="category_description">
   <?php echo $this->category->category_description; ?>
</div>

print out the $this->category -- I assume the image is separate

maybe

echo $this->category->images[0]->displayMediaThumb('class="browseCategoryImage"',false);

2. in the std VM cat template the order is

vendor_store_desc
category->category_description
manu_descr
child categories
Title: [Solved] Re: Category Layout Problems
Post by: SAWebCo on September 05, 2018, 00:10:07 am
Thanks GJC.

Your answer to question 1 worked a treat - solved.  ;)

I'll look into question 2 tomorrow as its after midnight here now and the munchkins will wake me at the crack of dawn, so better get some rest.  :-[

Will come back to you.