Hi,
JOOMLA: 2.5.6
VIRTUEMART: 2.0.8e
TEMPLATE: gk_bikestore
MULTILANG. : fr_FR, en_GB, es_ES
in "../templates/gk_bikestore/html/com_virtuemart/category/default.php"
I replaced
- Code: Select all
<?php /** @todo make image popup */ echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?>
with this:
- Code: Select all
<?php echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$product->images[0]->displayMediaThumb('class="catImage" border="0"',false)); ?>
No changes are reflected in the frontend.
The product image and product name don't show, and together with the 'Product details' button still don't point to the product detail page.
The variables are empty. the first two return '0' and the last one nothing:
- Code: Select all
<?php echo '<br/>virtuemart_product_id='.$product->virtuemart_product_id . '
<br/>virtuemart_category_id='.$product->virtuemart_category_id . '
<br/>img src: ' . $product->images[0]->file_url_thumb
?>
I have noticed that as well as the 'virtuemart_products' table there are 'virtuemart_products_fr_fr', 'virtuemart_products_en_gb' and 'virtuemart_products_es_es' tables.
I have checked the sql query but it seems that it's grabbing properly the data from 'virtuemart_products' table joining them with the language specific tables 'virtuemart_products_xx_xx':
file: "../administrator/components/com_virtuemart/models"
- Code: Select all
$q = 'SELECT `product_name`,`product_sku`,`product_s_desc` FROM `#__virtuemart_products_' . VMLANG . '` as l JOIN `#__virtuemart_products` AS p using (`virtuemart_product_id`) WHERE `virtuemart_product_id`=' . (int)$field->custom_value;
I checked the 'gk_bikestore' template creator forum but they offer the same indication as mentionned earlier.
I'm running out of ideas. Anybody would have any idea/pointer?
Thanks in advance.