VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Nilsy on April 16, 2017, 19:59:43 PM

Title: Array text showing
Post by: Nilsy on April 16, 2017, 19:59:43 PM
Hi there...

Joomla! 3.6.5
Linux
PHP 5.6.30
Apache
VM 3.2.1

Just starting a new site, which will make me rich... lol
Anyway, under construction, I see that on the right of the manufacturer logo, the statement "Array" is showing.
Relax, this was also there prior to the alteration showing the logo in preference to just the name.

I believe I have seen this before, but I can't find out where I found out the fix.
Can someone help point out what I am forgetting?

Attachment shows where etc.
Title: Re: Array text showing
Post by: peter.gazo on April 18, 2017, 13:10:52 PM
Hi. I had the same problem. It is from the shippment method. Turn the "Show on the product details page" to "No".
Title: Re: Array text showing
Post by: Nilsy on April 18, 2017, 13:31:21 PM
Quote from: peter.gazo on April 18, 2017, 13:10:52 PM
Hi. I had the same problem. It is from the shippment method. Turn the "Show on the product details page" to "No".
Thank you!
Title: Re: Array text showing
Post by: lebogang on May 09, 2018, 15:47:54 PM
Good day

This solution doesn't work for me. I've turned the "Show on the product details page" to "No". but im still getting the "Array" Message. http://gold-creative.co.za/paint/index.php/shop/paint-type/interior/artisan-satin-cote-detail (http://gold-creative.co.za/paint/index.php/shop/paint-type/interior/artisan-satin-cote-detail)

Im running Joomla! 3.8.7 and VirtueMart 3.2.14

Thanks
Title: Re: Array text showing
Post by: Ventsi Genchev on May 09, 2018, 16:51:44 PM
Solution:

https://forum.virtuemart.net/index.php?topic=140113.0
Title: Re: Array text showing
Post by: edsmiths on February 21, 2021, 14:38:27 PM
Hello,

I'm with this same problem and followed Milbo solution (https://forum.virtuemart.net/index.php?topic=140113.0) without success.

I've managed to solve the problem, putting comments in the above php code

<?php

if (is_array($this->productDisplayShipments)) {
    foreach ($this->productDisplayShipments as $productDisplayShipment) {
echo $productDisplayShipment '<br />';
    }
}
if (is_array($this->productDisplayPayments)) {
    foreach ($this->productDisplayPayments as $productDisplayPayment) {
echo $productDisplayPayment '<br />';
    }
}
?>


Could this fix turns in any later issue? I don't need the product shipment or payments information displayed in my product detail view.

Thanks in advance,
Ed
Title: Re: Array text showing
Post by: jenkinhill on February 21, 2021, 15:07:17 PM
Is that with a current version of VM 3.8.8 or 3.8.9?
Title: Re: Array text showing
Post by: edsmiths on February 21, 2021, 16:10:21 PM
Hello,

Virtuemart 3.8.2

Thanks,
Ed
Title: Re: Array text showing
Post by: jenkinhill on February 21, 2021, 17:12:52 PM
OK, the code is different in 3.8.8 so maybe you could have saved time by just updating...  :) :)