Author Topic: [SOLVED] Word "ARRAY" displayed in the product detail page  (Read 482 times)

Geppux

  • Jr. Member
  • **
  • Posts: 166
[SOLVED] Word "ARRAY" displayed in the product detail page
« on: April 21, 2017, 18:00:25 pm »
VM 3.2.1 - J 3.6.5

In the override file in /templates/mytemplate/html/com_virtuemart/productdetails/default.php I have this code
Code: [Select]
if (is_array($this->productDisplayShipments)) {
foreach ($this->productDisplayShipments as $productDisplayShipment) {
echo $productDisplayShipment . '<br />';
}
}
that cause the  word "ARRAY" to be displayed on the detailproduct page,  as you can see for example, here https://www.mulligan.it/it/attrezzatura-da-golf/legni/cobra-king-f7-driver-detail.html

This happens after the upgrade to the version 3.2 of virtuemart.
To solve I could comment those lines but there is another way more correct to solve the problem ?

Thank you, bye.
Giuseppe

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26372
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.6 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.6 on J!4alpha1

Geppux

  • Jr. Member
  • **
  • Posts: 166
Re: Word "ARRAY" displayed in the product detail page
« Reply #2 on: April 21, 2017, 19:12:58 pm »
Thank you jenkinhill,
obviously I made the wrong search.
This solved the problem.