Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012
    Posts
    15
    Plugin Contributions
    0

    Default Adding custom field during checkout

    I want to add a custom field during checkout only if a particular coupon code is entered.
    For example: A customer fills a particular coupon code say FRIE. A text fields should appear which is mandatory to fill some details such as name and address of referrer. For any other coupon code or normal checkout this field is not needed.

    This functionality is needed just to track the referrer, as the number of referrers is not fixed.

    Is this possible? If yes then please guide me how to do it.
    thanks

  2. #2
    Join Date
    Nov 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Adding custom field during checkout

    If you are only using the coupon system becasue you want to track the referrer then you might consider writing a programming alteration to:

    includes/ templates/template_default/tpl_shopping_cart_default to prompt the user to entering a code and then store this in a new $Session variable. Then if this variable corresponds with a matching known variable (which you are storing in a MySQL table) then you prompt the user for the name+address or whatever info is needed. Again, this gets stored to a MySQL table.

    This way you don't need to use the coupon system which you'd need to do programming alterations to anyway to get it to work

 

 

Similar Threads

  1. Adding a required field during Checkout that Shows on the Invoice
    By Rabbcon in forum Customization from the Admin
    Replies: 13
    Last Post: 28 Jan 2010, 12:04 AM
  2. Adding a custom field to a product
    By icywindow in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Nov 2009, 01:53 AM
  3. Custom Checkout - PO# field
    By marcusimages in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Aug 2009, 04:15 PM
  4. validating custom field during account creation
    By ktrovato in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jul 2009, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg