cdoher01
Forum Replies Created
-
Great thanks
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] adverts_form_complete filter??Hi, okay thank you for that.
The user flow I am trying to achieve is:
– User registers in via the /my-account page (on success redirected to adverts add page)
– fills out advert form (on completion redirected to woo commerce checkout to purchase subscription)
– user purchases subscription (on purchase success redirected to page where user can finalize/publish advert)
– user publishes/manages advertsHow do you think I can best achieve that? It seems that payment flow could be relevant, but not sure if that integrates with woo commerce subscriptions?
Thank you for you help!
-ConnorHey Greg,
Looks like including the _wpacf_form_scheme_id is enabling it to pickup the other custom field values.
Thanks!
Here is a screenshot of how the info is showing up in Edit Classified screen: https://www.boatvalue.com/wp-content/uploads/2019/11/Screen-Shot-2019-11-25-at-5.47.33-PM.png
But when viewing it on the frontend only the default meta fields are showing:
https://www.boatvalue.com/advert/2016-tartan-sailboats-101/?preview_id=3006&preview_nonce=89b61196e4&preview=trueHowever if I were to click the update button on the Edit Classified screen for this advert it would then show on the frontend as expected.
It appears I need a script to run the code that would be trigger by pressing the update button. Is something like that possible?
I see: add_action( “save_post_advert”, “wpadverts_custom_fields_save_form_scheme_admin”, 10, 2 );
but I am not sure how to add that so it will happen automatically for these listings.Thanks