• Resolved s

    (@sdnazdi)


    Hi,

    I am a web designer. I like to include a buying a service such as a domain or host for my client. I am not a domain or hosting service, I just want to do this service to clients who do not know how (or not having time) to buy domain or host, so that I register/extend such services for them.

    I like to create a “Select” or “Radio” field, and in its option/value fields I like to put the pricing which depends on the pricing of the pricing of the domain/hosting in service provider and it updates automatically, so that I do not need to check time to time and update that pricing.

    For example if I want to add a service for domain, I create a “select” field with options:

    .com
    .net
    .org
    .co

    and their value come from a domain registrar such as https://www.namecheap.com/domains/#pricing

    $10.28
    $9.78
    $8.98
    $9.48

    By time, these pricing may change, so that I like to have update of these value automatically in my form.

    Is there a way to do this, or I have to update them manually time to time.

    A similar question for hosting packages.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @sdnazdi ,

    It is possible, with JS script you can insert value to a field in a form, but you need to somehow get that this value from the domain/hosting reseller.
    I suppose they do have API you can use and so you would need just get code that grabs prices and insert in the form.

    kind regards,
    Kasia

    Thread Starter s

    (@sdnazdi)

    thanks @wpmudev-support2 for your answer. What if that one reseller does not have api. Is there a JS or PHP code/snippet that I can use to solve my problem?

    • This reply was modified 1 year, 4 months ago by s.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @sdnazdi

    I’m afraid there’s no simple yes/no answer – it all depends directly on where do you want to fetch such information from.

    Forminator itself does not have any integrations built-in with any domain/hosting reseller/provider and cannot fetch any such data on its own.

    Getting data from some 3rd-party service depends on what tools for that given service possibly provides (e.g. API or similar) and if they do not provide anything like that, I don’t see any legitimate/legal and simple way to fetch data other than manually re-typing them as it would require “scraping” site’s front-end and that a) can result in legal complications and b) is very tightly related to specifics of the given site (its markup and behavior).

    I’m afraid that this isn’t something we could provide solution for. Even if there would be an API it requires additional custom code and this kind of development is out of scope.

    We could only provide code that would inject given data to Forminator fields – we’d just need to know to what type of fields (e.g. radio or select). If you need it, just let us know and we’ll help with that part.

    If it comes to fetching data, especially if there’s no api available, from 3rd-party services – it’s out of scope of our support. It may actually be a good idea to simply contact such service asking them about how to get data from them; they may be able to provide you with solution.

    Kind regards,
    Adam

    Thread Starter s

    (@sdnazdi)

    Thank you very much @wpmudev-support8 for your explanation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add field options from other website’ is closed to new replies.