Author Topic: Category Page Fields for Templating  (Read 190008 times)

mustang888

  • Beginner
  • *
  • Posts: 5
Re: Category Page Fields for Templating
« Reply #75 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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10398
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #76 on: September 06, 2012, 18:11:48 pm »
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?

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

mustang888

  • Beginner
  • *
  • Posts: 5
Re: Category Page Fields for Templating
« Reply #77 on: September 07, 2012, 06:59:34 am »
This is the site.
http://www.indoneka.com/aksesoris_mobil/home/allproducts/aksesoris-mobil.html

How to make the images clickable?

Thank you.

jason45

  • Beginner
  • *
  • Posts: 5
Re: Category Page Fields for Templating
« Reply #78 on: September 07, 2012, 09:50:46 am »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10398
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #79 on: September 07, 2012, 14:38:52 pm »
This is the site.
http://www.indoneka.com/aksesoris_mobil/home/allproducts/aksesoris-mobil.html

How to make the images clickable?

Thank you.

that page was not loading for me
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

mustang888

  • Beginner
  • *
  • Posts: 5
Re: Category Page Fields for Templating
« Reply #80 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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10398
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #81 on: September 07, 2012, 16:33:12 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
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

mustang888

  • Beginner
  • *
  • Posts: 5
Re: Category Page Fields for Templating
« Reply #82 on: September 08, 2012, 13:01:07 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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10398
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #83 on: September 08, 2012, 14:43:16 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>

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

ysdoar

  • Beginner
  • *
  • Posts: 15
    • Best deals Everyday
Re: Category Page Fields for Templating
« Reply #84 on: September 11, 2012, 12:38:11 pm »
How to display Additional Images in category view? i tried:

Code: [Select]
<?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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10398
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #85 on: September 11, 2012, 14:41:17 pm »
How to display Additional Images in category view? i tried:

Code: [Select]
<?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,.
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

ysdoar

  • Beginner
  • *
  • Posts: 15
    • Best deals Everyday
Re: Category Page Fields for Templating
« Reply #86 on: September 11, 2012, 16:09:51 pm »
i tried to add Product custom_fields but nothing yet:

Code: [Select]
<?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

  • Beginner
  • *
  • Posts: 11
Re: Category Page Fields for Templating
« Reply #87 on: September 22, 2012, 14:26:58 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27637
  • Always on vacation
    • Jenkin Hill Internet
Re: Category Page Fields for Templating
« Reply #88 on: September 28, 2012, 13:59:30 pm »
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.6.11 10252 on Joomla 3.9.14 PHP 7.0.33

Kbroeren

  • Beginner
  • *
  • Posts: 2
Re: Category Page Fields for Templating
« Reply #89 on: September 29, 2012, 11:39:53 am »
Dears,

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

Code: [Select]
<?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