News:

Looking for documentation? Take a look on our wiki

Main Menu

Array text showing

Started by Nilsy, April 16, 2017, 19:59:43 PM

Previous topic - Next topic

Nilsy

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.

peter.gazo

Hi. I had the same problem. It is from the shippment method. Turn the "Show on the product details page" to "No".
Peter Gazo

Nilsy

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!

lebogang

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

Im running Joomla! 3.8.7 and VirtueMart 3.2.14

Thanks


edsmiths

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

jenkinhill

Is that with a current version of VM 3.8.8 or 3.8.9?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

edsmiths

Hello,

Virtuemart 3.8.2

Thanks,
Ed

jenkinhill

OK, the code is different in 3.8.8 so maybe you could have saved time by just updating...  :) :)
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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