dreadedhamish
Forum Replies Created
-
Forum: Plugins
In reply to: [Extensions for Leaflet Map] How does the D3 integration work?No worries. I loaded it seperately, and after inspecting some other extensions and with the help of ChatGPT I managed to hook into the leaflet map and then d3 was happy to add markers.
@stefancotitosu this should be considered core functionality – I am really surprised mpg launched without it.
@dlparker1005 Are you open to moving redirect_url from the JS to the functions.php?
@gripgrip argh…. that was it. It turns out I when i copied it to to a snippet I decided to change the function name, and I fat-fingered it. And then I totally forget I did that, and was convinced I just did a simple cut-and-paste and so the error must be elsewhere.
Thanks for your time!
- This reply was modified 2 years, 6 months ago by dreadedhamish.
This mostly answers my questions – https://docs.themeisle.com/article/1465-how-to-generate-list-of-nested-pages
You can’t use multiple projects in the free version – and I can’t test in a paid version so that’s as far as I got.I had hoped to it would be possible using a single source twice to create:
a) /state/city/ and then
b) /state/
I just tried creating ‘b’ and while it did create example.com/washington/ and that page resolved, when i clicked the “See all URLs” and viewed the sitemap it had created one entry per city in the state, so hundreds or repeated URLs. I was hoping it automatically (or with the checking of a checkbox) would return only unique values. So it looks like using a local file won’twork for this.I tried another option that looks to be working – create a Google Sheet with 2 worksheets – the second worksheet using =UNIQUE to filter just state, and using this worksheet ID for the source. This looks to have worked.
I’m sill curious what other have done.
@dwpriv thanks for your help.
I was wanting to add the download button to the individual order page (frontend)
@dlparker1005 Would this work?
Move redirect_url from rwstripe.js to functions.php > rwstripe_restricted_content_message as a hidden field. rwstripe.js can then grab it from the form like the other elements.
Then a form could be output anywhere using php and inserting a postID that has the desired subscriptions:<?php $product_ids = rwstripe_get_restricted_products_for_post( 308 ); rwstripe_restricted_content_message( $product_ids ) ?>and redirect_url would now be filterable, allowing you to then send them to the desired content after subcription.
yeah that works perfectly – so I muched it up somewhere in my convoluted multi-find-replace scheme. Sorry – i should have stripped it bare before posting.
I get it!
I’m working on my own sign-up form, hard-coding the product ID and loading your JS. It got complicated quickly and I’m cutting and pasting more and more from your code (is user logged in, are they a current subsriber etc…).
I can see others wanting a user flow that removes extra steps, and a simple form (that allowed specifying the product and redirect url) would be a great addition to this plugin, and not overly complicated, but I get desire to keep things simple!
of note – I had to disconnect from Stripe and reconnect after adding the filter.
found it:
add_filter( ‘rwstripe_connect_in_test_mode’, ‘__return_true’ );
I tried manually changing these entries in the database but either I got no output from the plugin or a “this product is not purchasable”:
rwstripe_stripe_access_token
rwstripe_stripe_publishable_key
rwstripe_stripe_environmentI guess I’d also need to wrap the custom form in the same logic that the plugin uses – so that my custom form would only show if the user didn’t have a current subscription, and instead show an “acess content” button. And it would get much more complicated if I have more than 1 type of subscription.
I am really keen to remove steps needed to make a purchase!
- This reply was modified 2 years, 7 months ago by dreadedhamish.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Leaflet.FeatureGroup without marker cluseter?BINGO!
Thanks for the prompt response.