Support » Plugins and Hacks » PrestaShop Integration » fetch() instead of display() when evaluating shortcode

  • Resolved bubatalazi

    (@bubatalazi)


    Hello,

    I noticed an issue with shortcode evaluation of [ps_product_list]. Instead of returning rendered template content, the plugin displays it, which effectively puts all prestashop items on top of the main content. To fix this, edit prestashop-integration.php in shortcode_ps_product_list() change

    return $smarty->display(_PS_THEME_DIR_.$tpl);

    to

    return $smarty->fetch(_PS_THEME_DIR_.$tpl);

    http://wordpress.org/extend/plugins/prestashop-integration/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author aytechnet

    (@aytechnet)


    Hello,

    Thanks a lot for your bug report, it has been changed for the next upcoming release.

    Kind Regards,
    Fran├žois.

    Plugin Author aytechnet

    (@aytechnet)


    Your patch has been integrated in 0.8.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fetch() instead of display() when evaluating shortcode’ is closed to new replies.