How can I link a JotForm with an Opencart site?

  • Profile Image
    iuliann
    Asked on March 06, 2013 at 02:18 PM

    I want to create a form with few lines... That means... I want to link few categories and some under...categories in OpenCart with this form. See http://www.autodaytona.ro/index.php 

    I want a drop down with "Car", another with "model", another with "fuel" and another with "body"

    May I ling this form with those categories? In free mode... 

    Or, is there a form payd mode?

    Or... is this possible?

    I want to do this on my site because this willl be a growing database...

    And...

    I will need another forms a little bit more complicated...

    TX

  • Profile Image
    ardy0689
    Answered on March 06, 2013 at 02:37 PM

    Hello TX, thanks for posting your concerns.

    Unfortunately, what you are asking requires a constant interaction between a JotForm and your OpenCart's database and JotForm is not designed this way. It also opens your shopping cart site into security risks. But I will still pass this to our developers and see what they think about it. I can not give you a specific timeframe to when they will update this thread but we will sure to let you know if anything comes up.

    However, you can still be able to do this without worrying with the database but this requires manually adding and typing the link categories and subcategories into a dropdown field everytime you added or removed one from your OpenCart site. A constant update on the form is needed.

  • Profile Image
    iuliann
    Answered on March 06, 2013 at 03:12 PM

    Thank you ardy0689... for answer me so fast!

    I think again an I saw I do not need to link that form with an increasing database on Opencart.

    In fact I want that form just to READ my category database and return a specific data. As I said, few data from my Category database. In fact I will increase my data base and I want that form to READ that and return answers.

    That's is it.

    Could it be possible?

  • Profile Image
    ardy0689
    Answered on March 06, 2013 at 03:55 PM

    Hello Juliann,

    This is not really what JotForm is intended to do but it could work but only outside of JotForm. You have to get the whole source code of your form . You have to get it so you can store it on your website and be loaded from there. You can manipulate the source code using server scripts and using javascript.

    However, you can also prepopulate the form values using URL parameters but this will become limited and not flexible to what you want to do.

    Now a method that could work is to have a server script made. In this case, you need to use PHP because you are running an OpenCart platform which is based in PHP script.  Now let your PHP script read all the values that you need on your Category database. Depending on the results you can now remodify the values of the form. Like for example prepopulate the dropdown boxes with your category names.

    Having said that, this could be a bit trickier to handle like for example you have Conditions set which are dependent on the initial values you have set before. Prepopulating and changing the values using the PHP script will destroy the behaviours of these conditions, assuming you have put one. What if those conditions make the Next and Back buttons work and the functions are destroyed, you can not proceed and fill the rest of the form if this thing happen. It is better not to use conditions if you are going to use this approach

    Anyway, this is a long shot and not really an easy to do fix but more into programming tasks. I have forwarded this to our development team if they can integrate OpenCart system. I can not give you a timeframe yet. They will have a say on that.

    Thanks

  • Profile Image
    iuliann
    Answered on March 07, 2013 at 02:31 AM

    Ok. I understand. I'll wait for a while. Thank you again.