• Resolved kalik219

    (@kalik219)


    Hi there,

    I am facing an issue where I have embedded MindBody links in my WordPress site. An example of how I have implemented it is below.

    In my functions.php, I have an enqueue function like so:

    function enqueue_mindbody_script() {
    wp_enqueue_script('mindbody-widget', 'https://widgets.mindbodyonline.com/javascripts/healcode.js', array(), null, false);
    }
    add_action('wp_enqueue_scripts', 'enqueue_mindbody_script');

    When I visit the page, I can see it loaded in the header.

    Then, I have my Links embedded like so (this is just an example and not the real code):

    <a class="btn-tertiary text-sm lg:text-base border-0 hover:bg-transparent hover:text-light-brown shadow-none">
    <healcode-widget data-version="##" data-link-class="link" data-site-id="##" data-mb-site-id="##" data-bw-identity-site="true" data-type="account-link" data-inner-html="<?php echo esc_html(get_theme_mod('button_text', 'Account')); ?>" />
    </a>

    When I click on a link like above or any other links (to buy a class for example), sometimes I get redirected to https://cart.mindbodyonline.com/identity_callback with a message that says “We’re sorry, but something went wrong.” Other times on Chrome, a message pops up that says “Access blocked: mindbodyonline.com’s request does not comply with Google’s policies.” On Firefox, one time I got a page that said “Firefox cannot open this page. To protect your security, signin.mindbodyonline.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.”

    Am I missing something? I followed the instructions to embed the Links in the site, but it seems like there is some type of auth error? Is there any way I could force the Mindbody Links to open in a new window??

    Any help is GREATLY appreciated.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter kalik219

    (@kalik219)

    I figured it out! My recommendation is not to use these widgets and to do this instead.

    If anyone else runs into this, you can use the below for contracts or options:

    <a href="https://cart.mindbodyonline.com/sites/[YOUR STORE ID]/cart/<?php echo $contract ? 'add_contract' : 'add_service'; ?>?mbo_item_id=[YOUR PRICING OR CONTRACT OPTION ID]" class="btn-primary btn-link"> BUY NOW </a>

    & you can use the following for a login/register link:

    <a href="https://cart.mindbodyonline.com/sites/[YOUR STORE ID]/client" class="btn-secondary w-full"> Login </a>
Viewing 1 replies (of 1 total)

The topic ‘Issue with MindBody Links’ is closed to new replies.