WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Eshop order form is displayed 2 times using do_shortcode in template (2 posts)

  1. now
    Member
    Posted 2 years ago #

    Hello,

    I use this code to display the order form on top of mmy product pages:
    <?php echo do_shortcode ('[eshop_addtocart]');?>

    Everthing is fine except the fact that the form shows up two times using this function in my template.

    One is generated by the do_shortcode (top of the page)
    One is generated by default by eshop (bottom of the page)
    --> I want to keep only the one at the top.

    Any Idea?

    By the way, eshop rocks. It's a great plugin.

    http://wordpress.org/extend/plugins/eshop/

  2. now
    Member
    Posted 2 years ago #

    Never mind guys, i posted too fast:
    After looking around:

    http://quirm.net/forum/topic.php?id=4298#post-21832

    http://codex.wordpress.org/Function_Reference/remove_filter

    I have found this on the support page of quirm.net
    remove_filter('the_content', 'eshop_boing');

    By adding this to the "function.php" file in my theme, it solves the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags