News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

SubCategory Title displayed above the image

Started by hamsn, July 13, 2013, 10:52:46 AM

Previous topic - Next topic

hamsn

Hello,

I am working with Virtuemart 2.0.20b on Joomla 2.5.11
My problem is, the subcategories have their titles above the image thumb, I want the titles to be below the image, same as in shop front categories.
Here is the reference link: http://ecosustainableproducts.com/new/index.php/efficient-lights

I am not sure if this is PHP related or CSS, I checked the default.php under category template, there the code seems to be alright with the code for title
appearing below the image.
Please help me point out the code causing this.

Thank you for your time.

AH

These are child categories

lookin in the categories folder for the default.php

   // Category Link
       $caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id , FALSE);

          // Show Category ?>
          <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
             <div class="spacer">
                <h2>
                   <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                   <?php echo $category->category_name ?>
                   <br />
                   <?php // if ($category->ids) {
                      echo $category->images[0]->displayMediaThumb("",false);
                   //} ?>
                   </a>
                </h2>
             </div>
          </div>
       <?php
       $iCategory ++;
Regards
A

Joomla 3.10.11
php 8.0

Maxim Pishnyak

Hamsn, it's necessary to have changed by you default.php-like files in your template folder (technique called "template overrides").
Then you'll be able to safely update your VM shop to newer versions.
About template overrides you could read in sticked threads.

Regards.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

hamsn

#3
I had to edit inside the "category" folder, moreover the changes weren't reflecting because I had override files provided by the template I am using, so I had to edit it there.
Thank you for the quick response.
It's fixed now.

@Maxim, thanks for the tip, I think that was the issue there above  :)
Is there a way to know if my virtuemart currently is using any edited core files? Which might get overwritten when I update?
Because I am not sure, sometimes I made changes in the override and sometimes directly in the components folder, but I don't
remember them, so can you suggest a simple way to get across this and be safe when updating?

Maxim Pishnyak

You're welcome!

You need to download the same version of original VM that you have on your web site at the start:
1. Google and download programs like Kdiff or Winmerge
2. Backup, download and extract to your computer your web shop.
3. Extract somewhere founded original VM.
4. Compare with mentioned above program folders, or if necessary files - one by one. I mean stuff in administrator...com_virt.. and in components/com_virt...

Regards.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart