• Resolved flemmingdesign

    (@bencogandesign)


    I’m working with Ultimate Member on a website, and I’m wanting to integrate all the Account pages into one place, so I don’t have the various “update info” links on both the Ultimate Member and Paid Memberships Pro pages. I was successful in adding another tab for the Membership Account shortcode to the Ultimate Member profile menu, and then I added a Billing Details tab with the [pmpro_billing] shortcode, but it does not pull in the billing details update form – it only pulls in the shortcode itself.

    I am using Stripe as the gateway, and the shortcode successfully pulls in the billing details update form on the /membership-account/membership-billing page.

    I’m pulling it into that tab via php in the functions.php page as so:

    <?php echo do_shortcode( '[pmpro_billing]' );?>

    Is that why it’s not working? I just find it odd since I’m using the same method to pull in the [pmpro_account] shortcode inside that tab.

    I also tried just copy / pasting the entire “billing.php” file into that section, which did appear to work, but when I tested actually updating a payment method it didn’t actually save the details.

    Is there another way to pull in the update billing details form into that tab?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kim White

    (@kimwhite)

    Hello @bencogandesign ,

    The billing page is only for users with active recurring subscriptions at the gateway. It will communicate directly with your payment gateway to make credit card account changes that are not kept on your site.

    The pmpro_account shortcode will show a link to the billing page when the member has recurring billing.

    https://ibb.co/WnFGZSs

    The page should not link to itself. This shortcode should be placed on a page by itself. This is true for the [pmpro_member_profile_edit] shortcode, also. It should be on its own page.

    Kim W

    Thread Starter flemmingdesign

    (@bencogandesign)

    Ah, ok, that makes sense. Even though UM creates different URLs for each tab off of the parent URL it preloads the content for each via javascript on the main page (I think), and it doesn’t refresh the page when it loads each one. Not entirely sure, but that would make sense why PMP is treating it like it’s the same page.

    I ended up creating my own My Account page template with a side nav menu and just linked to the individual PMP pages, which will work just fine.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[pmpro_billing] Shortcode Not Working on Other Pages’ is closed to new replies.