• Resolved garrettlynch

    (@garrettlynch)


    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/ 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

    (@garrettlynch)

    Any explanation of why “mp_buy_button(true, ‘single’);” seems to not work or what it might be missing?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hey @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

    (@garrettlynch)

    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/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 Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hey @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

    (@garrettlynch)

    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.