Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rasmus Fjord 659 posts 1546 karma points c-trib
    Aug 21, 2012 @ 13:25
    Rasmus Fjord
    0

    Changing the getpaymentform "Form" markup

    Is there a way so I only get the URL and hidden inputs so i can wrap it in my own "form" with a class and such on ?

    needed for analytics and some validation.

    Or is there a way to change the "form" markup that comes out from the getpaymentform function, since there is a lot of hidden inputs aswell ?

     

  • Anders Burla Johansen 2560 posts 8256 karma points
    Aug 22, 2012 @ 09:11
    Anders Burla Johansen
    0

    Hmm the form is generated in TC and can change at the moment. Could you change it using JavaScript and add the class? Could you try and describe your case a little more and I can see if I can think of a way for you to do this.

    Kind regards
    Anders

  • Rasmus Fjord 659 posts 1546 karma points c-trib
    Aug 22, 2012 @ 09:30
    Rasmus Fjord
    0

    Sure thing, there is 2 things in it, 

    1. Validation.

    We just need to add a class/id to the form since we want to validate on the submit for a checkbox is checked(you know the standard "rights" checkbox). This could easily be done by throwing it in using javascript tough we would prefer a more direct way.

    2. Analytics

    Im not quite sure here, since its our analytics guy who told me, but at this step we should be able to send a few params to google on submit aswell, for creating a good funnel.

    Im aware that the form is changing depending on selected payment/transport so on, so my solution should be 2 small methods(in my world they are small :D ) but the changing elements are the action URL, and the hidden input fields, right ? 

    So how about 2 methods, 1 for fecthing the url and 1 for all the hidden inputs. This would give an easy solution for those in a hurry and a more markup freedomish way.

    In this way you will give the user a 100% freedom over markup like everything else in Umbraco, and that is why we use umbraco right ? :)

    This is so far the only place using teacommerce where I have had a thing i couldnt do.

    that reminds me that i need to buy a license for the solution asap heh

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies