WordPress.org

Ready to get started?Download WordPress

Forums

Embedding/Transfering Javascript order form into WordPress? (11 posts)

  1. darktemplar
    Member
    Posted 4 years ago #

    Hey guys . . I'll try to explain the best I can . . .

    I'm creating a webpage for a company using WordPress and all the main information is set (FAQ, the Blog, Testimonials page, etc.), but the only thing I am having is getting the order form they are currently using into a newly created WordPress "Page". There is a script they are using also (called 'order.js' that is uploaded onto the server). I'm just really lost on how I can literally "copy and paste" if it were that easy, the order form they are using with the entire code into a Page on WordPress. I have copied and pasted the visual form, but when I click the 'Place Order' button, it does absolutely nothing. Any feedback is much appreciated! Thanks a million everyone.

    SS

  2. iridiax
    Member
    Posted 4 years ago #

  3. darktemplar
    Member
    Posted 4 years ago #

    Hey man, thanks a lot for the reply! That helped me get in the right direction a bit, but I'm still really really confused. I'm pretty much completely done setting up this website using WordPress except for being able to integrate this order form. In the HTML on the order page is this at the top:
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="Scripts/order.js">alert("abc");</script>

    On the server, in the /public_html/authorize folder there are these "auth_" files:
    auth_config.php
    auth_extra.php
    auth_footer.php
    auth_form.php
    auth_header.php
    auth_submit.php
    example.xml
    failed.php
    index.php
    phpgatewayapi.css
    process_transaction.php
    thankyou.php

    In the scripts folder there is:
    AC-RuntimeActiveContent.js
    order.js

    And the HTML for the "Place Order" button they are using is:
    <input name="submit" type="submit" class="getStarted" value="PLACE ORDER"/>

    Sorry if all of this information is unnecessary. I thought I was onto figuring it out, but I'm still completely lost. All I want to do is be able to integrate that order form, onto a WordPress Page. Thanks guys!

    SS

  4. iridiax
    Member
    Posted 4 years ago #

    script src="Scripts/AC_RunActiveContent.js"

    You need to use full URLs with WordPress. Relative ones like this will break.

  5. darktemplar
    Member
    Posted 4 years ago #

    So all I need to do is put something like:
    script src="http://www.example.com/Scripts/AC_RunActiveContent.js"?

  6. iridiax
    Member
    Posted 4 years ago #

    Yes, an URL with http will work.

  7. darktemplar
    Member
    Posted 4 years ago #

    First of all, thanks so much for helping out man. I really appreciate it. I just tried doing that, adding the http://www.example.com/ before the /Scripts/AC_RunActiveContent.js and before the /Scripts/order.js, and nothing happened still when I clicked the Place Order button. Is there anything else I could be doing wrong?

    SS

  8. iridiax
    Member
    Posted 4 years ago #

    Unfortunately, I'm not a javascript expert and haven't use this sort of script before. :-( Maybe you'll have better luck with a javascript plugin?

    http://wordpress.org/extend/plugins/search.php?q=javascript

    I haven't tried any of these plugins since I just use javascript in my theme template files and not in posts or pages.

  9. darktemplar
    Member
    Posted 4 years ago #

    Thanks a lot! It doesn't completely work, but that's the closet that it's come to working. I added the 'Raw HTML' plugin and just added:
    <!--start_raw-->
    html code here
    <!--end_raw-->

    Like I said, it almost works, just the order is still not going through. The website is HERE with the order form, and I am trying to embed it into HERE. If someone could take a look at it and the source HTML to help any further it would be very appreciated! Thank you again iridiax.

  10. darktemplar
    Member
    Posted 4 years ago #

    Does anyone else have any clues? NOBODY that I've asked seems to know what I should do. The links to the source page with the Form and the Page in WordPress I am trying to bring it to are in the above post. Thanks in advance.

    SS

  11. probablepossible
    Member
    Posted 4 years ago #

    Darktemplar, it looks like you solved your problem-- what was the solution?

Topic Closed

This topic has been closed to new replies.

About this Topic