test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • andrzejmarek Friend
    #160888

    Problem in K2 content module in front page: Warning: Invalid argument supplied for foreach() in /homez.43/renouveal/www/NEW/templates/ja_portfolio/html/mod_k2_content/portfolio/default.php on line 88

    http://www.renouveau.be/NEW/

    Saguaros Moderator
    #379234

    YOu try with this solution:

    Open the file: /templates/ja_portfolio/html/mod_k2_content/portfolio/default.php
    and find:

    [PHP]
    //Show price
    foreach ($item->extra_fields as $extraField) {
    if ($extraField->name == ‘Price’) {
    printf (JText::_(‘Price: $%s’), $extraField->value);
    break;
    }
    }
    [/PHP]
    replace:

    [PHP]
    if( is_array($item->extra_fields) ) {
    foreach ($item->extra_fields as $extraField) {
    if ($extraField->name == ‘Price’) {
    printf (JText::_(‘Price: $%s’), $extraField->value);
    break;
    }
    }
    }
    [/PHP]

    andrzejmarek Friend
    #379328

    Thank you very much 🙂
    But now it is not possible to see the images 🙁

    Saguaros Moderator
    #379718

    The module does not get image from the k2 item content, now you edit those k2 items and must to upload image in the Image Tab

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 13 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum