News:

Looking for documentation? Take a look on our wiki

Main Menu

Product Page Fields For Templating

Started by PRO, November 03, 2011, 17:16:20 PM

Previous topic - Next topic

be

#45
Hi,
is there also a field for displaying all used categories for my product?
I have an product in several categories, but with

<?php echo $this->category->category_name?>

I got only the actually used category and not all in which these product is sort.

Or is a there a workaround to wrote this information directly from the database?

BR

csimmo

This info was incredibly useful. I am wanting to know how I can edit some of the output.
If you look here: http://www2.abtsystems.com.au/pc-components/cpu/85/39/intel-lga1155/intel-core-i5-3570k-detail.html
With the dimensions, I only want the first 2 decimal spaces
With the estimated dispatch date, I want to have the date format in day/month/year and to loose the time.
With the URL, I want it to apply a hyperlink.

Thanks for any info you can provide

csimmo

#47
Sorry to push, but could some one provide an answer to my question? Someone else has also asked about getting rid of the extra )'s in the measurements.

For the product URL this is my code:
<div class="product-url">
<?php
echo JHTML::link($this->product->product_url, ('Click here for manufacturer product page'));
?>
</div>

but it just points back to the home page.

How do I get it open a new window and follow the url?
Thanks for any help!!

CenturionSigns

I'll second that request to work out how to format the dimensions with a set number of decimal places (I actually want none.)  Would also like to include the measurement units.

I.e. it currently displays "100.00"  and I would like it to say "100 mm"

Spiros Petrakis

In the previous version VM 1.1.x there was also available these fields $cdate and $mdate is there something similar for VM2 or i just have to make query for them.   
Joomla templates and extensions development
https://www.yourgeek.gr

PRO

Quote from: yourgeek on January 17, 2013, 15:55:14 PM
In the previous version VM 1.1.x there was also available these fields $cdate and $mdate is there something similar for VM2 or i just have to make query for them.   

I think created_on

If you look at your database, and the product table.
You can access ANY of the columns  by

$this->column_name


Flasher

Hello All. I have made a lot of things that PRO has posted here but i guess the problem is not the code. I guess the problem is the template itself. I'm using Gavick Pro Boutique Template. Does any one have issues displaying custom fields after or before the price????

CenturionSigns

Hi!

I have used the info in this thread to add several fields and customize the product details view.

However, how do I add a list of ALL of the categories that a product is in?

PRO

Quote from: CenturionSigns on February 04, 2013, 17:58:13 PM
Hi!

I have used the info in this thread to add several fields and customize the product details view.

However, how do I add a list of ALL of the categories that a product is in?
http://forum.virtuemart.net/index.php?topic=105810.0


bdimov

Hey,
What is the code for the product manufacturer and I want to display the name of manufacturer and manufacturer picture...

PRO

Quote from: bdimov on April 05, 2013, 16:39:51 PM
Hey,
What is the code for the product manufacturer and I want to display the name of manufacturer and manufacturer picture...

Name
<?php echo $this->product->mf_name ?>


and for image
http://forum.virtuemart.net/index.php?topic=95818.30

Alberto87

Hello,

if i add the code for the text availability, <?php echo $this->product->product_availability; ?>

can i choose a custom text from the language file ? (en/de/ ecc...)

thanks

PRO

Quote from: Alberto87 on June 14, 2013, 12:55:12 PM
Hello,

if i add the code for the text availability, <?php echo $this->product->product_availability; ?>

can i choose a custom text from the language file ? (en/de/ ecc...)

thanks

what do you mean?

are you using multi language?


Alberto87

Yes, i use virtuemart in multi languages.

I want to know, if for every language I can write/set a specific text.

Right now I have an image and it doesn't change for each language.

Can you please help me?

Thanks!
Cheers,
Alberto

PRO

Quote from: Alberto87 on June 18, 2013, 15:04:41 PM
Yes, i use virtuemart in multi languages.

I want to know, if for every language I can write/set a specific text.

Right now I have an image and it doesn't change for each language.

Can you please help me?

Thanks!
Cheers,
Alberto

I am asking someone about this, I will see