WordPress.org

Ready to get started?Download WordPress

Forums

PrestaShop Integration
[resolved] fetch() instead of display() when evaluating shortcode (3 posts)

  1. bubatalazi
    Member
    Posted 1 year ago #

    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/

  2. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

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

    Kind Regards,
    Fran├žois.

  3. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Your patch has been integrated in 0.8.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.