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

Category Page Fields for Templating

Started by PRO, February 08, 2012, 19:42:18 PM

Previous topic - Next topic

mustang888

Hello

as we know, on the category page there is title and an image, if we click on the title, it will direct the page to the list of product page. and there is an image which is unclickable. How do I make the image clickable and link to the list of product page?

Sorry for bad english.
Thanks in advance.

PRO

Quote from: mustang888 on September 06, 2012, 08:58:57 AM
Hello

as we know, on the category page there is title and an image, if we click on the title, it will direct the page to the list of product page. and there is an image which is unclickable. How do I make the image clickable and link to the list of product page?

Sorry for bad english.
Thanks in advance.

are you talking about the category childlist?

or the product links?



jason45

I need to product_sku also and find that while using different options the outcomes are not as required. Would like to know the most effective format.

PRO


mustang888

Hi Pro, please take a loot at images below
the first image is parent category and the second image is child category

http://i48.tinypic.com/33c3uok.jpg
http://i48.tinypic.com/oa4pqx.jpg


Any suggestion would be very appreciated! Thanks

PRO

Quote from: mustang888 on September 07, 2012, 15:23:56 PM
Hi Pro, please take a loot at images below
the first image is parent category and the second image is child category

http://i48.tinypic.com/33c3uok.jpg
http://i48.tinypic.com/oa4pqx.jpg


Any suggestion would be very appreciated! Thanks


are you using a commercial template?

I just looked in the code, and the category childlist has clickable images

mustang888

Quote from: PRO on September 07, 2012, 16:33:12 PM
Quote from: mustang888 on September 07, 2012, 15:23:56 PM
Hi Pro, please take a loot at images below
the first image is parent category and the second image is child category

http://i48.tinypic.com/33c3uok.jpg
http://i48.tinypic.com/oa4pqx.jpg


Any suggestion would be very appreciated! Thanks


are you using a commercial template?

I just looked in the code, and the category childlist has clickable images

But it doesn't happen on my website. As well as linking product image to product detail but later i got the tutorial on this forum. it just doesn't apply to category pages.
I am using Gavick Pro e-sport Joomla 2.5 and VM 2.

PRO

Quote from: mustang888 on September 08, 2012, 13:01:07 PM
Quote from: PRO on September 07, 2012, 16:33:12 PM
Quote from: mustang888 on September 07, 2012, 15:23:56 PM
Hi Pro, please take a loot at images below
the first image is parent category and the second image is child category

http://i48.tinypic.com/33c3uok.jpg
http://i48.tinypic.com/oa4pqx.jpg


Any suggestion would be very appreciated! Thanks


are you using a commercial template?

I just looked in the code, and the category childlist has clickable images

But it doesn't happen on my website. As well as linking product image to product detail but later i got the tutorial on this forum. it just doesn't apply to category pages.
I am using Gavick Pro e-sport Joomla 2.5 and VM 2.



views/category/tmpl/default.php


This is the code that links the category name and image to the url

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

            // 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>


ysdoar

How to display Additional Images in category view? i tried:

<?php if(!empty($product->images) && count($product->images)>1) { 
         foreach (
$product->images as $image) {
            echo 
$displayMediaThumb('class="product-image"',true,'class="modal"'); //'class="modal"'
         

}
?>


nothing.. please halp!

dirwall.com - General web Directory

PRO

Quote from: ysdoar on September 11, 2012, 12:38:11 PM
How to display Additional Images in category view? i tried:

<?php if(!empty($product->images) && count($product->images)>1) { 
         foreach (
$product->images as $image) {
            echo 
$displayMediaThumb('class="product-image"',true,'class="modal"'); //'class="modal"'
         

}
?>


nothing.. please halp!



I dont think you can,.

ysdoar

i tried to add Product custom_fields but nothing yet:

<?php // Product custom_fields
if (!empty($product->customfieldsCart)) {  ?>

<div class="product-fields">
<?php foreach ($product->customfieldsCart as $field) { ?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-fields-title" ><b><?php echo  JText::_($field->custom_title?></b></span>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-cat-desc"><?php echo $field->custom_field_desc ?></span>
</div><br/ >

<?php
?>

</div>
<?php ?>


what i need to change?
dirwall.com - General web Directory

zorro lee

One thing where are all files which need to be modified to have my custom vm theme (template) I bought template from templatemonster and it has all modifications which I need, but when VM update is installed I lost all images and CSS. How to copy paste all CSS jQuery and all what that template is using. (Template is on vm 2.06 joomla 2.5.4. and works fine until is updated)

jenkinhill

The template probably uses overrides. These will be in joomla_root/templates/(your template)/html/com_virtuemart/

VirtueMart 2.0.6 to 2.0.10  layout changes are described in http://virtuemart.net/component/content/article/416  and also for people who prefer pictures, in com_virtuemart.2.0.8_layout_changes.zip  and  com_virtuemart.2.0.10_layout_changes.zip  which you can get from http://dev.virtuemart.net/projects/virtuemart/files


Your Joomla 2.5.4 version is insecure, suggest you update to Joomla 2.5.7
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Kbroeren

Dears,

How we can display an image in the category view when a product is special?
We use the code for the product page:

<?php if ($this->category->product_special == 1) { ?>
                  <div>SALE ITEM!!!!! </div>
               <?php    }?>


But that doesn't work for the category page!

Can anybody help me out?

Thanks in advanced!
kevin