News:

Looking for documentation? Take a look on our wiki

Main Menu

Category Page Fields for Templating

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

Previous topic - Next topic

jey09

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

Quote from: jey09 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


thats the profuct MODULE, not the category.

short description is not available in the product module

jey09

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

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


Ninjab

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

Quote from: Ninjab 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.

a custom field?

Ninjab


PRO


Ninjab

Thanks. ...I tried that but I will if I can't do the layout overrides method. .. Thanks mate.

StantonJBond

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

Quote from: StantonJBond 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?

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

metosas

#117
Quote from: PRO on March 27, 2013, 12:31:00 PM
Quote from: jey09 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


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

Don't violate Yagendo copyright.

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

Piombo

#119
Hello!

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

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

I tried:



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.
<?php echo $this->product->images[0]->file_url_thumb?>


Please help!