• Resolved Martin

    (@martinlucas)


    I want to place the add to cart button in a specific place on my page template so used a do_shortcode on the template, but this only duplicated the button so I had it in two places.

    How can I remove the default one and keep the one from the template and do_shortcode?

Viewing 4 replies - 1 through 4 (of 4 total)
  • remove filter, the add to cart form is added via:
    add_filter('the_content', 'eshop_boing');
    for obvious reasons this function name may change in a future update.

    Thread Starter Martin

    (@martinlucas)

    thanks.

    this is going to sound a little odd – after initially trying the do_shortcode and finding the duplicate I took away the do_shortcode, I now can’t get this working again to remove the default one.

    any reason why this now wouldn’t be working?

    Thread Starter Martin

    (@martinlucas)

    It’s OK – I’ve got duplicate add to cart, I just need to work out how to implement the filter. Thanks again.

    Thread Starter Martin

    (@martinlucas)

    Resolved – it was a remove_filter instead of add_filter I needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘eShop Add to Cart button & do_shortcode’ is closed to new replies.