pewpew41
Forum Replies Created
-
Marked as resolved – I have figured this out myself.
Thanks for that. I have the level ID now.
I’m using the pmpro_checkout_after_level_cost hook and want to grab the numerical cost amount from the “The price for membership is …” statement – any advice on how to do that?
I did the below, but it’s still showing $0.00:
global $pmpro_level; function test_message( ) { $pmpro_level = $_REQUEST['level']; $level = pmpro_getLevel( $pmpro_level ); $level = pmpro_filter_price_for_text_field( $level->billing_amount ); $level = pmpro_formatPrice( $level ); echo "$level"; } add_action( 'pmpro_checkout_after_level_cost', 'test_message' );Thanks for the reply. I have turned off the State Dropdown Add On and it is now working as intended.
Thanks, I have edited the code snippet to my requirements.
I can confirm that I am running PMP v2.11.2 (WordPress v6.2.2). There are no other special settings that I’ve set besides what’s in the OP.
I hhave replicated this issue with no other plugins installed besides PMP. Upon further troubleshooting, it appears that if Show field on user profile? for the field in the group is set to ‘Yes’ (instead of ‘Inherit group setting’) , then the fields in the group will show on the checkout page, regardless of what the Show fields on checkout? group value is set to.
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceAbsolutely! Happy to upgrade to the Pro version too once my site is up and running!
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceYep, that has fixed the issue. Thanks so much for your help!
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceDoesn’t appear as if the console has anything to do with the “after” attributes not being respected – tried the page on a browser with no extensions installed:
Current field value config:
{address1:long_name after=", "}{address2:long_name after=", "}{locality:long_name after=" "}{administrative_area_level_1:short_name after=" "}{postal_code:short_name}Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceThanks for the suggestion – I’m still getting the same console errors, even after adding your code snippet. (webpage link updated again).
EDIT: I removed the pmpro-membership-maps-google-maps code from the Membership Maps php file itself and it seemed to work (not the ideal way, I know):

The “after” attributes still don’t seem to be respected:

I also tried a different input field on a page without PMP’s Membership Maps loaded with the same result:

My latest console:

- This reply was modified 2 years, 11 months ago by pewpew41.
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceHad to update the link.
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceHere you go. The same page is also using Paid Membership Pro’s Memberships Map addon. Also, on the rare occasions that the plugin does load successfully, the “after” attributes don’t seem to be reflected:

Below are the latest config (I added an id to the input field to simplify it):

- This reply was modified 2 years, 12 months ago by pewpew41.
Hi @andrewza , thanks for letting me know. I had figured this out a few days ago after looking at the confirmation.php coding myself. No rush, not a priority.
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceFurther information:
This page I have the field in loads a map (Google Maps). In addition, it looks like on random occasions (upon refreshing the page), the console errors don’t show and the autocomplete loads.
Forum: Plugins
In reply to: [Address Autocomplete Anything] Setup configuration assistanceConsole shows the following errors:

Hi @mariaojob ,
That recipe works for the Checkout page, but not for the Confirmation page (sorry, I quoted the incorrect page in the OP).