Discount codes for web forms

Question:
I have been using two web forms to allow access to a secure zone. Of them, one is for the trial user access and another is for the paid user access.
The problem is: Can I use discount codes for the secure zone access? I can't see the way of integrating eCommerce discount codes with web forms.
Answer:
Discount codes don't actually work with secure zone access since you have to accept payment through web forms. However, I hired an outside developer to write some code for me, which I don't mind sharing:
Put this in the Head of your document:
<script type="text/javascript">
function refreshAmountToCharge() {
var frm = document.forms[0];
var defaultAmountToCharge = 100;
var couponCode = "ABC123"; // A tribute to Michael Jackson...
var percentOff = 50;
var couponCode2 = "DISCOUNT2";
var percentOff2 = 67;
var couponCode3 = "DISCOUNT3";
var percentOff3 = 99;
var couponCode4 = "DISCOUNT4";
var percentOff4 = 75;
/* Fixed amount coupon c*/
var fixedCouponCode1 = "FIXED1";
var fixedAmount1 = 20.00;
var fixedCouponCode2 = "FIXED2";
var fixedAmount2 = 6.00;
var fixedCouponCode3 = "FIXED3";
var fixedAmount3 = 7.00;
var amountToCharge = defaultAmountToCharge.toFixed(2);
if (frm.couponCode.value.toUpperCase() == couponCode)
  amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode2)
  amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff2 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode3)
  amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff3 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode4)
  amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff4 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode1)
  amountToCharge = (defaultAmountToCharge - fixedAmount1).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode2)
  amountToCharge = (defaultAmountToCharge - fixedAmount2).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode3)
  amountToCharge = (defaultAmountToCharge - fixedAmount3).toFixed(2);
frm.Amount.value = amountToCharge;
// ----------- End Coupon Code Javascript ---------------------
</script>
Then, you'll need a Coupon Code field in your form:
<div class="item">
    <label for="couponCode">Coupon Code</label><br />
    <input type="text" name="couponCode" id="couponCode" class="cat_textbox" />
    <a href="javascript:refreshAmountToCharge()">Update</a>
</div>
That's it. Let me know if you have any questions. You can set multiple codes, either percentage based or fixed amount. Experiment with it to make sure it works as expected.

This is great Mario! Thanks so much for sharing. It works very well.
One thing I want to add is a validation for the coupon update action. If the coupon is no longer valid or entered incorrectly, a message would be great, because the person might no even notice the fact that the amount did not change even though they think they entered a valid discount code.
Sean

Similar Messages

  • How to setup a purchase discount on my web form?

    How to setup a purchase discount on my web form? I use adobe form central and my wix web page only allow me to insert ready host form URL.

    Hi,
      I believe you want to embed a form on your web page.  Please take a look at this link, http://forums.adobe.com/docs/DOC-1991 and see if it works with your web page.  I am not familiar with wix websites tools, but if after trying it out with the instructions on how to embed the form, and does not work, maybe you can provide the FormsCentral web form URL on your web page.  Your end users visit your web page, click on the web form URL link and the form will open in a new browser.
    To get the FormsCentral web form URL, open the form, go to Distribute Tab / Web Form sub-tab and select "Copy Link", then paste the link on your web html page.
    If you want to set up your form to work with PayPal for payment transaction, please see this link: http://forums.adobe.com/docs/DOC-1632
    Hope this helps,
    Thanks,
    Lucia

  • Discount Code for Single Product

    Is it possible to create a discount code for just a single product? I know I can do it for a single catalog - but hoping I can do it on single products, too.

    I've had to display two BC catalogs on one page whenever clients request this, which seems to be a common request. Often clients want one page displaying two different catalogs side by side.
    You can accomplish this with jQuery.
    Set up an empty div on the page that will hold the catalogs...
    <div id="the-catalog-1"></div>
    <div id="the-catalog-2"></div>
    Then include a script so jQuery will use Ajax to load in the normal BC catalog page from the BC server and insert it into the div on your page...
    <script type="text/javascript">
    $('#the-catalog-1').load('/promotional-items div.shop-main').slideDown();
    $('#the-catalog-2').load('/promotional-items/t-shirts div.shop-main').slideDown();
    </script>
    In this example I'm pulling a parent catalog named /promotional-items and reading only the content from that BC page that is within its div having class="shop-main"
    jQuery will let you load only part of the content from the BC catalog page, in this case, I only wish to load the catalogs and/or products displayed within the div class="shop-main" in order to avoid loading the entire catalog page which of course would include the page template which I don't want.  I only want the part of the page in which BC is using the BC catalog layout or small product layout to list catalogs/products, eliminating the normal page template it displays within. For docs see "Loading Page Fragments" on the jQuery documentation page for the load command here: http://api.jquery.com/load/
    In #the-catalog-2 in the example I am loading the products displayed within the t-shirts subcatalog off the promotional-items catalog.
    You would likely need to set some CSS to set the width and perhaps height of #the-catalog-1 etc. although in my example I have no height so nothing is displayed until the catalog page loads and then I'm using a jQuery slideDown() to slide the div open and down with the content in it.
    Of course in order to run jQuery code you site needs to load jQuery in your page template etc. If you don't know how to do that there are instructions on my site:
    http://www.atlantawebdesignga.com/_blog/Adobe_Business_Catalyst_Developer/post/Loading_jQu ery_-_Loading_Latest_jQuery_-_Test_If_jQuery_Loaded/

  • Could you provide example code for interactive form

    Dear all.
    I have got document at link below
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    In that document it has some part of abap code.
    Could you have full example code for interactive form online and offline?
    Thank you very much.

    Hi,
    Go to the following link to know more about adobe interactive form.
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
    The following link contains a offline application in ABAP. You can try it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    For further questions, check the follow
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
    Hope this helps!!
    Regards,
    Arafat

  • Anti spam codes for website forms are not being accepted on my imac or iPad

    anti spam codes for website forms are not being accepted on my imac or iPad

    In Safari go to preferences click on privacy and on Block Cookies tick the never box

  • Message box for web form

    I am trying to create a new C# web application. I need the message box and confirmation message box for my application. I knew there is no such control for web forms. I created a script string and registered it by using ScriptManager.RegisterStartupScript(Button1,
    Button1.GetType(), "key", javascriptStr, false). Unfortunately the message box won't pop up when i click the button first, it will pop up when i click it on the second time.
    I really don't know what is wrong.
    Thank you in advance,

    Hello yangyangxiaohui,
    If you post your question in
    ASP.NET forums, you'll get more valuable answers.
    Please open up a new thread there, thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do we customize the default CKEditor for Web Form Editor in UCM 10gR3?

    Our customers are using the Web Form Editor for some WYSIWYG changes. The form has too many options and they would like to limit what the users can do. We have attempted to make changes to the following files to customize the CKEditor for Web Form Editor and cannot see our changes reflected after saving/restarting Content Server.
    Instance\weblayout\webform\ckeditor\config.js
    Instance\weblayout\resources\wcm\3rdparty\fckeditor\fckconfig.js
    Instance\custom\FCKEditor\webform\ckeditor\config.js
    To test a simple change we tried adding the following to change the toolbar options.
    CKEDITOR.editorConfig = function( config )
    config.toolbar = 'MyToolbar';
    config.toolbar_MyToolbar =
    ['NewPage','Preview'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    ['Styles','Format'],
    ['Bold','Italic','Strike'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['Link','Unlink','Anchor'],
    ['Maximize','-','About']
    There isn't much standard documentation on this out of the box feature and I've searched Oracle Support with no luck.
    Content Server 10gR3 (10.1.3.5.1)
    FCKEditor 2010_12_18 ($Rev: 90491 $) br-10g-10.1.3.5-release
    CS10gR35UpdateBundle 2011_02_08 (build 93)
    Thanks,
    Angela

    Posting the answer:
    You need to make the changes to the webforms component inside the ~\custom\FormEditor\templates\fe_config.js file. Then propagate your changes using the Administration > Actions > Publish layout files page.
    One more quick question - where do we limit the Styles, Fonts, Sizes, Colors?
    in the same file we added lines similar to the following to limit the fonts,
    styles....
    CKEDITOR.config.font_names = 'Arial;Times New Roman;Verdana';
    CKEDITOR.config.fontSize_sizes = '16/16px;24/24px;48/48px;';

  • Modifying the appearance of the search box, the search button, and the submit button for web forms

    I'm trying to modify the appearance of the search box, the search button, and the submit button for web forms by modifying the CSS on Stylesheets. None of the tags I'm using (e.g. .webform .cat_button) seem to be working. What are the correct tags for those three elements?

    When you generate the help you can select / deselect the buttons that are displayed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • HT201209 I am ebook retailer. How do I set up a redemption/discount code for my ebook?

    I am ebook retailer. How do I set up a redemption/discount code for my ebook?
    I would like offer limited discounts on limited quantities.

    Unless it's a textbook or other book eligible for Apple's Volume Purchase Program for educational institutions, I don't believe you can, but you can contact Apple and ask.
    [email protected]
    Regards.

  • URG: Blank Screen for Web Forms

    Hi Friends,
    I deployed all my forms on web recently I configured them to open in a separate frame .
    My problem is now when I click on the link for Web forms it opens a new window "Oracle Developer Forms Runtime" --Title with a blank screen. If we resize the window manually then it will launch the application.
    Previously it was working fine.
    configuration : DEV6.0
    OAS 4.07
    JINITIATER: 1.1.7.18
    CLIENTS WIN95 with Netscape 4.7 browsers
    HTML:
    <EMBED
    type="application/x-jinit-applet;version=1.1.7.18"
    java_CODE="oracle.forms.engine.Main"
    java_CODEBASE="Java"
    java_ARCHIVE="f60all.jar"
    WIDTH="400"
    HEIGHT="400"
    lookAndFeel="oracle"
    colorScheme="blue"
    serverPort="9000"
    serverHost="rsforms.dcr.net"
    background="no"
    splashScreen="no"
    separateFrame="true"
    serverArgs="module=J:\Webforms\dcr_LOG21.fmx userid=payroll_dba/[email protected] "
    serverApp="Default"
    pluginspage="http://dcr.net:8887/Java/jinit_download.htm">
    <NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    Any help...?
    Thanks in Advance
    Smita T

    For me <param name="splashScreen" value="no"> worked fine.
    jeff rahr (guest) wrote:
    : theo korol (guest) wrote:
    : : I am following the release notes for dev 6.0 that say that
    you
    : : can replace the splashscreen that comes up with your own by
    : : specifying
    : : <param name="splashScreen" value="custom.gif">
    : : in the html
    : : no luck, I can't remove it by specifying value="no"
    : : either, any one else have this problem?
    : : thanks
    : I was having a similar problem until I moved the gif file from
    : the directory specified as the icon directory in the
    registry.dat
    : file to the same directory as the html file.
    null

  • HTML code for adobe forms/formsCentral

    Anyone has the HTML code for any of these forms? I would like to add one of the forms to my website.
    Thx

    Hi,
    FormsCentral has Embed Form feature which enables you add a FormsCentral form to your web site. Please check out the first part of the document on how to embed a form into an html page: http://forums.adobe.com/docs/DOC-1991.
    Thanks,
    Wenlan

  • Possible to show file upload progress for web form submission?

    I just made a simple form as a test. There are 3 files being submitted here via a "web form".
    Files being uploaded in this case are of these sizes:
    110MB
    9MB
    24MB
    I'm testing functionality that will let a print shop's clients upload their files. For larger files they'll use FTP but this "order form" does a lot of business for them so we're trying to replicate in BC.
    My problem is that I am wondering if there is a way to show the "upload progress" as a total %. Such as a visual status bar, etc.
    As of now the only way it's showing is in the default browser status bar (chrome in this case):
    http://cl.ly/image/1d3U0S1h2521
    I read somewhere that the limit is 150MB for an upload. Wondering if that means 150MB TOTAL as in 3 files combined in my case. Or If I chose to allow 3 files to be attached would it allow for 450MB?
    Also, if you do a user submitted web app instead and allow people to attach files that way, does the same file limit apply?
    My second issue is that the upload speed seems to be SLOW. I know it's not my connection because on my non BC site as well as another with the same form, the files upload fairly fast. But on BC it just crawls and on a few tests I get this:
    http://cl.ly/image/2T2q160M1R1n
    Any help or suggestions with the file upload progress as well as file upload speed would be appreciated.
    Thanks!

    So if i have 3 files to be uploaded, the max allowed is 750MB correct? (just wondering if when uploading its 250mb total or per file).
    Guess i'll do something fake to make it appear its working with a loading graphic or something.
    My web browser (chrome in this case) shows the % uploaded. I wonder if all web browsers do the same. I havent tested yet.
    If only there were a way to have javascript or something grab that same #% from the web browser itself and just format it to appear where I want on the form along with the % uploading.
    Anyone know if that's possible?
    Here's where Chrome for mac shows it:
    http://cl.ly/image/1c3i3x25262j
    If I could grab that (uploading 19%) from the browser and format it into css/html i'd be gold.
    Then find if similar browsers do the same and write some js for each browser specifically to grab it.
    In a perfect world at least....

  • Implement get_file_name for web forms: SOME HELP PLS

    Hi ppl,
    Anyone used the code in note 74140.1 as regards to the implementation of get_file_name for webforms? Because I got stuck.
    Till now I managed to complie the FDialog and FDialogPJC java source and the classes are stored in the /oracle_home/forms60/java. Then I created a form with a block having two items namely, the text item and the bean area/ Then I created the WHEN-CUSTOM-ITEM-EVENT trigger. I'm a bit perplexed of where do I have to put the trigger that brings up the FileDialog. What else do I have to do to test this java bean. Till now nothing happens. I'm using Forms 6i and I never used Java Beans with Form Builder.
    Thanks a lot for your help,
    Cheers
    Marija

    Look at some of the samples on OTN and follow what they do. The examples are mostly for Oracle9i Forms, but it should still help you figuring it out for Forms 6i.
    Regards,
    Robin Zimmermann
    Forms Product Management.

  • HOW TO FIND T-CODES FOR SCRIPT FORMS?

    HI EVERY BODY,
    "ME9F" IS THE T-CODE FOR PRINTING "MEDRUCK" FORM ALONG WITH THE DATA FROM PRINT PROGRAM.
    LIKE WISE WHAT ARE ALL THE OTHER T-CODES FOR SAP PROVIDED FORMS. PLEASE LET ME KNOW HOW TO FIND THESE T-CODES?
    THANKS IN ADVANCE,
    REGARDS,
    MOUNIKA.

    Hi Mounika,
    Please check this transaction as well.
    ME9A  - Message Output: RFQs                 
    ME9E  - Message Output: Sch. Agmt. Schedules 
    ME9F  - Message Output: Purchase Orders      
    ME9K  - Message Output: Contracts            
    ME9L  - Message Output: Sched. Agreements    
    PJNA  - Message Output                       
    WLN14 - Message Output Agency Documents      
    WLN15 - Message Output for List Documents   
    Hope this will help.
    Regards,
    Ferry Lianto

  • Code for a form

    Hi, I need help with making a form manditory to have
    informtation entered before submitting. I already have the form set
    up I just need the correct code to make it not send the form until
    they have entered all of their contact information. Please help.
    Thank you in advance.
    Regards,
    Dannah

    The code you have posted tells nothing. It's the generic
    function code.
    The actual validation details are in your <form> tag,
    but do this - select
    the <form> tag on the QuickTagSelector, and edit the
    behavior you have
    applied to it by double clicking on the validate form
    behavior name in the
    Behaviors panel. Cycle through your form fields and make
    those missing ones
    also be required.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dannah" <[email protected]> wrote in
    message
    news:[email protected]...
    >I got most of my forms to work, thank you! But I am still
    having a problem
    >with
    > validating this code. It is only making name, state,
    zip, country
    > required.
    > Well we need the contact information like phone and
    email to be required
    > this
    > is way more important.
    >
    > Here is the following code that I am working with for
    this form:
    >
    > function MM_validateForm() { //v4.0
    > var
    i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    > for (i=0; i<(args.length-2); i+=3) { test=args[i+2];
    > val=MM_findObj(args
    > if (val) { nm=val.name; if ((val=val.value)!="") {
    > if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
    > if (p<1 || p==(val.length-1)) errors+='- '+nm+' must
    contain an
    > e-mail
    > address.\n';
    > } else if (test!='R') { num = parseFloat(val);
    > if (isNaN(val)) errors+='- '+nm+' must contain a
    number.\n';
    > if (test.indexOf('inRange') != -1) {
    p=test.indexOf(':');
    > min=test.substring(8,p); max=test.substring(p+1);
    > if (num<min || max<num) errors+='- '+nm+' must
    contain a number
    > between '+min+' and '+max+'.\n';
    > } } } else if (test.charAt(0) == 'R') errors += '-
    '+nm+' is
    > required.\n';
    > }
    > } if (errors) alert('The following error(s)
    occurred:\n'+errors);
    > document.MM_returnValue = (errors == '');
    >
    > Any information would be greatly appreciated...
    >

Maybe you are looking for

  • Net price field should not be edited in PO, when created reff. to contract

    Dear friends, I have a requirement like this..... User referring the contract in creating the purchase order, details of the contracts are copied in to the purchase order. the price field is in edit mode.... requirement is that user should not edit t

  • Just some more 24pA footage

    But this one is unique to all the other threads I've read. Footage is from a Panasonic HDX900, shot in DVCPROHD 1080i in 24pA mode. I captured 12 tapes from the camera that shot the footage using the DVCPROHD 1080i60 24pA preset and 13 tapes using a

  • Will i still be able to run illustrator CS2 if I upgrade to snow leopard?

    will i still be able to run illustrator CS2 okay if I upgrade to snow leopard? i was told by employee at the apple store i need to install snow leopard to take advantage of the cloud and sync my itunes to my iphone 4s. mainly use my laptop for design

  • [SOLVED] Installing Arch x86_64 to HP Chromebook 14 Model 14-q013 4GB

    Hello All, I've had success installing a basic Arch system to my HP Chromebook 14 Model 14-q013sa 4GB, but only if selecting x686 instead of x86_64 The result is, (it's very early days, so please excuse any mistakes) Gnome reporting only 2GB RAM free

  • Can't see NAS in Finder after upgrade to Yosemite

    That's it - before, in Mavericks, my NAS always was visible on the left pane in Finder.  Now, it's gone and I can't find a way to access it at all from my MacBook.