Author Topic: Category Layout Problems  (Read 238 times)

SAWebCo

  • Beginner
  • *
  • Posts: 13
Category Layout Problems
« 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)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8407
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Category Layout Problems
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

SAWebCo

  • Beginner
  • *
  • Posts: 13
[Solved] Re: Category Layout Problems
« Reply #2 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.