Hello,

Iīm having an issue in the follow code, displaying the warning "Warning: Invalid argument supplied for foreach()", can i donīt know what is happening, anyone can help me?

The code:

PHP Code:
foreach ( $prices as $name => $product_price  ){
            if(
$name != 'costPrice'){
                
$priceFormated[$name] = $currency->createPriceDiv($name,'',$prices,true);
            }
        } 
Any help will be appreciated.

Thank you very much

Zig