Hi,
I try to show the EAN from the product in Frontend. I just filled the field GTIN (EAN,ISBN) in teh product, but I don´t see this one in Frontend. I looked in Configuration but I don´t see a place to activate this viewing.
Thanks
piru
EDIT: I use Virtuemart VirtueMart 2.6.6
You should be using at least VM2.6.10 - http://forum.virtuemart.net/index.php?topic=118683.0
To display the GTIN make a template override of the relevant template within components/com_virtuemart/views/productdetails/tmpl/ (assuming you don't already use overrides, eg in a commercial VM template)
Include the code wherever suits your required layout.
I use:
GTIN: <?php echo $this->product->product_gtin ?>
Thanks!!
I made this like this:
// Product Description
if (!empty($this->product->product_desc)) {
?>
<div class="product-description">
<?php /** @todo Test if content plugins modify the product description */ ?>
<span class="title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span>
<?php echo $this->product->product_desc; ?>
</div>
<?php
} // Product Description END
// EAN
if (!empty($this->product->product_gtin)) {
?>EAN: <?php echo $this->product->product_gtin;
}
// EAN END
I want ti find this EANwith the search, but doesn't go. I think it will work only if I write the EAN code in the description, but I don#t want to make this.
Do you know how can I do that in the search the EAN will be find? In the configuration from products search there ist not a place wo stay Product GTIN
nobody know how can I do this? or ist to complicated?
Cheers piru
what happens if you add say , '`p`.product_gtin' to the $filterArray array on
administrator\components\com_virtuemart\helpers\shopfunctions.php
static function getValidProductFilterArray ()
gives the chk box anyway..
I can say you what happens:
It works perfect!!! :)
Thank you
Cheers piru