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

jey09

  • Beginner
  • *
  • Posts: 22
Re: Category Page Fields for Templating
« Reply #105 on: March 27, 2013, 11:51:37 am »
hi
I tried to put the complete short description, but I cant, i put: Short Description

 <?php echo $product->product_s_desc ?>

where before was
<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

but it still having the description with final "..." and stripping the text.

I use virtuemart 2.0.2 and joomla 2.5,
the php file that i'm modifing is \templates\ot_bicyclegreen\html\mod_virtuemart_product\default.php

what more can I do to see all the short description and manufacturer and product name in product list?

thanks

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #106 on: March 27, 2013, 12:31:00 pm »
hi
I tried to put the complete short description, but I cant, i put: Short Description

 <?php echo $product->product_s_desc ?>

where before was
<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

but it still having the description with final "..." and stripping the text.

I use virtuemart 2.0.2 and joomla 2.5,
the php file that i'm modifing is \templates\ot_bicyclegreen\html\mod_virtuemart_product\default.php

what more can I do to see all the short description and manufacturer and product name in product list?

thanks


thats the profuct MODULE, not the category.

short description is not available in the product module
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

jey09

  • Beginner
  • *
  • Posts: 22
Re: Category Page Fields for Templating
« Reply #107 on: March 27, 2013, 12:50:25 pm »
Sorry but I don't undestand what are you saying,
In my page when you click on a category, it displays a list of the products inside, this products in list, appears with only a photo and the short description (cut version) and the prize, but I want the whole description and the name, but it doesnt change

here a picture of it

[attachment cleanup by admin]

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #108 on: March 27, 2013, 14:48:07 pm »
THIS
\templates\ot_bicyclegreen\html\mod_virtuemart_product\default.php

is the product module,

NOT the category page

http://forum.virtuemart.net/index.php?topic=90935.0

YOU ARE EDITING THE WRONG FILE
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

jey09

  • Beginner
  • *
  • Posts: 22
Re: Category Page Fields for Templating
« Reply #109 on: March 28, 2013, 09:43:45 am »
Ok, Thanks! :)

Ninjab

  • Jr. Member
  • **
  • Posts: 78
Re: Category Page Fields for Templating
« Reply #110 on: April 28, 2013, 13:14:36 pm »
Hi, how do I call a products extra field in category view? My extra field is called Backup? I want to display my edit form type extra field that has html in it in my category view only as my product will not display this info.

Thanks.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #111 on: April 28, 2013, 17:48:48 pm »
Hi, how do I call a products extra field in category view? My extra field is called Backup? I want to display my edit form type extra field that has html in it in my category view only as my product will not display this info.

Thanks.

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

Ninjab

  • Jr. Member
  • **
  • Posts: 78
Re: Category Page Fields for Templating
« Reply #112 on: April 29, 2013, 09:49:40 am »
Yes a custom field.....sorry.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #113 on: April 30, 2013, 16:57:53 pm »
Yes a custom field.....sorry.

I do not know of a way to do this

but, you can look here
http://forum.virtuemart.net/index.php?topic=100191.0

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

Ninjab

  • Jr. Member
  • **
  • Posts: 78
Re: Category Page Fields for Templating
« Reply #114 on: April 30, 2013, 22:41:08 pm »
Thanks. ...I tried that but I will if I can't do the layout overrides method. .. Thanks mate.

StantonJBond

  • Beginner
  • *
  • Posts: 2
Re: Category Page Fields for Templating
« Reply #115 on: May 20, 2013, 20:30:51 pm »
Please, what is the name of the webpage file these category page edits should be applied to and where in the HTML directory might it be found?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Category Page Fields for Templating
« Reply #116 on: May 20, 2013, 22:50:43 pm »
Please, what is the name of the webpage file these category page edits should be applied to and where in the HTML directory might it be found?

http://forum.virtuemart.net/index.php?topic=90935.0
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

metosas

  • Beginner
  • *
  • Posts: 2
Re: Category Page Fields for Templating
« Reply #117 on: November 19, 2013, 08:10:25 am »
hi
I tried to put the complete short description, but I cant, i put: Short Description

 <?php echo $product->product_s_desc ?>

where before was
<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

but it still having the description with final "..." and stripping the text.

I use virtuemart 2.0.2 and joomla 2.5,
the php file that i'm modifing is \templates\ot_bicyclegreen\html\mod_virtuemart_product\default.php

what more can I do to see all the short description and manufacturer and product name in product list?

thanks


thats the profuct MODULE, not the category.

short description is not available in the product module


It is not clear for me how to add full product description in category page. I want to have short product description with limit words and after that i need to get full product description. Yagendoo is template name wich i use, i tried to add  <?php echo $product->product_desc ?>. but it is not working. please help.                                                                                       

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Category Page Fields for Templating
« Reply #118 on: November 22, 2013, 20:12:30 pm »
Don't violate Yagendo copyright.

Why you don't use such simple construction like this
 <?php echo $product->product_desc ?>
?

Piombo

  • Beginner
  • *
  • Posts: 28
Re: Category Page Fields for Templating
« Reply #119 on: December 26, 2013, 10:35:51 am »
Hello!

How can I get a direct url to thumb image in category page? (components\com_virtuemart\views\category\tmpl\default.php)

This code
Code: [Select]
<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false); ?>creates an <img ... src="url to thumb image"...> tag.

I tried:

Code: [Select]

echo $product->category->images[0]->file_url_thumb;
or
echo $this->category->images[0]->file_url_thumb;
or
echo $this->product->file_url_thumb
or
echo $this->product->images[0]->file_url_thumb;

and a few more options. dosent work :(


This code works in product pages.
Code: [Select]
<?php echo $this->product->images[0]->file_url_thumb?>

Please help!