Author Topic: 'Array' text appearing next to search bar / PREVIOUS FORUM FIXES HAVE NOT WORKED  (Read 457 times)

trevorellis

  • Beginner
  • *
  • Posts: 17
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
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.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2065
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
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

Probably needs to be updated.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

trevorellis

  • Beginner
  • *
  • Posts: 17
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
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?

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2065
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

trevorellis

  • Beginner
  • *
  • Posts: 17
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8840
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
compare your file to the standard default.php file
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2065
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
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
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9805
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

trevorellis

  • Beginner
  • *
  • Posts: 17
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
We have resolved the issue by getting support from the people that deal with the Megastore template. Thanks for your help.