Hello, we are using version 3.4.2. of Virtuemart and the JA Megastore template. For some reason on the page displaying the products and product categories, the word 'Array' is appearing next to the search bar.
You can see our website here: https://courtyardbeautysalon.com/index.php/shop
We followed the instructions on the forum post here: http://forum.virtuemart.net/index.php?topic=140113.0. However, it has not worked.
We have other websites that use Virtuemart and so far this is the only time that this has happened. We would like to get this issue fixed as quickly as possible please so any help would be greatly appreciated.
I would suspect that this has to do with your category template
tempaltes/your-template/html/com_virtuemart/category/your_used_template_file_if_different_from_default.php (http://tempaltes/your-template/html/com_virtuemart/category/your_used_template_file_if_different_from_default.php)
Probably needs to be updated.
Jörgen @ Kreativ Fotografi
Hello, thank you very much for your response. In /templates/ja-megastore/html/com_virtuemart/category/ we are using default.php and there is no other file in that folder. What else can we try to fix this issue?
Check the default.php taht is used. If You an get rid of the Array by commenting out the Search code, very approx line 130, then You have isolated the issue.
Turning off search in the configuration for this view would also work. Then it is time to change the code in the default.php for the Megastore template.
You can also rename the default.php to default-org.php to isolate the problem.
mörgen @ Kreativ Fotografi
I opened the file templates/ja_megastore/html/com_virtuemart/category/default.php
I have copied the code from line 130 to end:
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
if(!empty($this->orderByList)) { ?>
<div class="vm-pagination pagination-wrap">
<?php echo $this->vmPagination->getPagesLinks (); ?>
<?php if( $this->vmPagination->getPagesCounter() ): ?><div class="counter"><?php echo $this->vmPagination->getPagesCounter(); ?></div><?php endif; ?>
</div>
<?php }
} elseif ($this->keyword !== false) {
echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
</div>
<?php } ?>
</div>
<?php
if(VmConfig::get ('jdynupdate', TRUE)){
$j = "Virtuemart.container = jQuery('.category-view');
Virtuemart.containerSelector = '.category-view';";
//vmJsApi::addJScript('ajaxContent',$j);
}
?>
<!-- end browse-view -->
What code should I change? Please help.
compare your file to the standard default.php file
Good advise from GJC.
You have a commercial Template that needs adjusting / updating. If You can not make the code adjustments I suggest You talk with Your template provider.
Jörgen @ Kreativ Fotografi
Should be a 20 euro fix, if there is no warranty. Maybe 50(at least you say it is not the problem described in the FAQ), not more.
We have resolved the issue by getting support from the people that deal with the Megastore template. Thanks for your help.