Title: Using mp_buy_button
Last modified: October 9, 2017

---

# Using mp_buy_button

 *  Resolved [garrettlynch](https://wordpress.org/support/users/garrettlynch/)
 * (@garrettlynch)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/using-mp_buy_button/)
 * Hi
 * what is the difference between:
 * Using “mp_buy_button(true, ‘single’);” in your own mp_product.php page and using
   the default product page with it’s buy button? In the default the add to cart
   and cart work just fine but when I use my own buy button they don’t work.
 * I’m following the tutorial here: [https://premium.wpmudev.org/blog/the-easy-guide-to-theming-marketpress/](https://premium.wpmudev.org/blog/the-easy-guide-to-theming-marketpress/)
   and it doesn’t say anything else is needed but it seems the ajax is not being
   called correctly.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [garrettlynch](https://wordpress.org/support/users/garrettlynch/)
 * (@garrettlynch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9589172)
 * Any explanation of why “mp_buy_button(true, ‘single’);” seems to not work or 
   what it might be missing?
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9590531)
 * Hey [@garrettlynch](https://wordpress.org/support/users/garrettlynch/),
 * I hope you’re well today! Sorry for late reply.
 * I checked the `mp_buy_button(true, ‘single’);` function and looks like it cause
   some issues for me too. I am just asking the developers to find more information
   about that(is there a bug or not). By the time I tried to use the shortcode and
   it works for me. Can you try to use shortcode instead of function like this;
 * `echo do_shortcode('[mp_buy_button]');`
 * Cheers,
    Oguz
 *  Thread Starter [garrettlynch](https://wordpress.org/support/users/garrettlynch/)
 * (@garrettlynch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9590965)
 * Hi
 * Thanks, yes the shortcode seems to work without problems. I’m struggling with
   the documentation of what is otherwise a very good plugin – having to piece together
   information from several places including:
 * [https://premium.wpmudev.org/project/e-commerce/#usage](https://premium.wpmudev.org/project/e-commerce/#usage)
   
   [https://premium.wpmudev.org/blog/the-easy-guide-to-theming-marketpress/](https://premium.wpmudev.org/blog/the-easy-guide-to-theming-marketpress/)
   and the Theming_MarketPress.txt
 * Is there any webpage or file that lists all of the functions and shortcodes for
   the plugin? Installation and setup was very easy but integrating with my theme(
   and I’m a php programmer of 15+ years) has so far been me going through template-
   functions.php to understand how to call the different components of the plugin.
 * Thanks in advance.
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9593912)
 * Hey [@garrettlynch](https://wordpress.org/support/users/garrettlynch/),
 * No, we don’t have any web page about that, but I am forwarding that idea to the
   team. Maybe they can prepare something like that for users who want to implement
   MarketPress with their theme like you.
 * Cheers,
    Oguz
 *  Thread Starter [garrettlynch](https://wordpress.org/support/users/garrettlynch/)
 * (@garrettlynch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9595400)
 * Hi
 * This is really needed! I was originally using woocommerce and stopped when I 
   realised that everything is designed for those who want quick integration using
   their themes. Attempting to integrate woocommerce into a custom theme is painfully
   long given the number of pages they have in their system and their very odd way
   of coding them. Marketpress seems much more compact and the code is much more
   developer friendly – a little more documentation and I’m sure more developers
   using woocommerce would move to marketpress.
 * thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using mp_buy_button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-ecommerce_f7d96b.svg)
 * [MarketPress - WordPress eCommerce](https://wordpress.org/plugins/wordpress-ecommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-ecommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-ecommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-ecommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [garrettlynch](https://wordpress.org/support/users/garrettlynch/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/using-mp_buy_button/#post-9595400)
 * Status: resolved