• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Subscription to a webapp item

Community Beginner ,
Oct 14, 2016 Oct 14, 2016

Copy link to clipboard

Copied

I have created Business Directory using Webapp.

  • There are existing business in the Business Directory
  • Business Owners have a "My Account" area via the Secure Zone
  • Business owners can login and upgrade their business listing from FREE to Paid
  • Each business listing is a webapp item
  • How do I go about setting up "Subscription" for upgrading the listing/a webapp item?

Please note....

  • I don't want to sell subscription to secure zone
  • I want to sell subscription for upgrading a webapp item.
TOPICS
Web apps

Views

425

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 14, 2016 Oct 14, 2016

Copy link to clipboard

Copied

Off the top of my head:

  1. Create a category/classification called, let's say 'upgraded'
  2. Have a special web app edit link that makes use of {module_url}.
  3. Access to the edit page via this link should show a regular payment form etc
  4. On payment form success, submit the edit form with the item now classified as 'upgraded'

There's definitely different ways to skin this cat, but I cannot think of a reason why this theory shouldn't work.

I hope this is a good starting point.

@webmosphere/@bespokify

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 15, 2016 Oct 15, 2016

Copy link to clipboard

Copied

Hi webmosphere, this is an interesting solution. How would you submit automatically the webapp item on the payment confirmation screen?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 15, 2016 Oct 15, 2016

Copy link to clipboard

Copied

LATEST

That's the part that will need experimenting, but as long as you submit the payment form with ajax, you can basically modify the script on this page: Submitting standard web forms with Ajax and JSON  ...to fire off additional events on success, or query the {module_webformresults} and then submit the form if certain conditions are met.

You can simply submit the form in jQuery with $('#formName').submit();

Or in vanilla via document.getElementById("formName").submit( );

Last time I checked, you could not submit web app forms with ajax, so keep this in mind.

If you are using Stripe, run some tests - I'm pretty confident what you goal in well within BC capabilities, one way or another.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines