Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2006
    Posts
    188
    Plugin Contributions
    0

    Default Custom Forms - Help?

    Hi all,

    I found a previous thread that someone else had posted about custom forms. I tried using that thread (from Dr.Byte & Wayne) as a guide in helping me create my own custom form for my website.

    I copied and pasted the files that Doc had made, and uploaded them into the proper folders as he had written. I also changed the name "band-signup" to "birthday_club".

    I went back to my site, which is, www.pawglamour.com/catalog

    How do I get rid of that error?

    I am a COMPLETE novice at php, and don't know what to do.

    Help?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Forms - Help?

    please post the first 10 lines of your
    /includes/extra_datafiles/birthday_club.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2006
    Posts
    188
    Plugin Contributions
    0

    Default Re: Custom Forms - Help?



    I don't even have 10 lines...


    <?php
    // define the filenames used in the project
    * define('FILENAME_BIRTHDAY_CLUB', 'birthday_club');
    ?>





  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Forms - Help?

    The * in that line is invalid syntax. Remove it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    May 2006
    Posts
    188
    Plugin Contributions
    0

    Default Re: Custom Forms - Help?

    Oh Thanks! That solved the problem.

    But...

    What now? I copied and pasted and saved the files to the proper folders. Shouldn't my 'Birthday Club' have the form in it now?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Forms - Help?

    If you used band_signup as a base to work from, then the URL to your birthday_club form would logically be:

    http://pawglamour.com/catalog/index....=birthday_club

    ... but of course, that's revealing another error ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2006
    Posts
    188
    Plugin Contributions
    0

    Default Re: Custom Forms - Help?

    Well Doc, for all you wiz' at php, it may be logical but to me, it's just .

    So, like the first error you pointed out, the problem was the '*'. I took all of them out, and finally got the form to display on the page!

    But, the form is in the BOTTOM of the page, not where I'd like it to be (in between the sideboxes). http://pawglamour.com/catalog/index....=birthday_club.

    How do I make it so its in between the sideboxes?

    The code looks exactly like the tpl_bandsignup_default that you posted in Wayne's thread, except for the *s and 'band-signup' of course.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Forms - Help?

    lol -- my comment about "logical" was meant to be an educational statement, not a "slam" against you ;) .... sorry ... I could have worded it more gently.

    1. In looking at your site, I see that you have a line near the top of your tpl_birthday_club_default.php file that says:
    HTML Code:
    <tablewidth="70%" border="0" cellspacing="2" cellpadding="2" >
    You might want to split "tablewidth" into two words:
    HTML Code:
    <table width="70%" border="0" cellspacing="2" cellpadding="2" >
    2. In that same file, right above that table, you have a statement about zen_draw_form(FILENAME_BAND_SIGNUP, 'band_signup', .......
    You probably need to change that to FILENAME_BIRTHDAY_CLUB

    3. Related to #2, check to be sure that you've defined 'FILENAME_BIRTHDAY_CLUB', usually in a file in the /includes/extra_datafiles folder
    PHP Code:
    define('FILENAME_BIRTHDAY_CLUB''birthday_club'); 
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    May 2006
    Posts
    188
    Plugin Contributions
    0

    Default Re: Custom Forms - Help?

    Sweet! Thanks a whole lot! One more thing though, how do I take off the 'double legend' on the top where it says 'Home Band Sign-Up' twice?


  10. #10
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Forms - Help?

    In the top of that same template file, you have a section that starts with this:
    HTML Code:
     <td class="breadCrumb" colspan="2">  .................
    You need to remove that table cell, since it's carryover from a prior version.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. custom forms - data collection
    By waynerd in forum All Other Contributions/Addons
    Replies: 258
    Last Post: 19 Aug 2013, 01:32 AM
  2. creating custom forms
    By TheMortician4 in forum Customization from the Admin
    Replies: 7
    Last Post: 2 Feb 2012, 04:17 PM
  3. custom survey forms
    By cpk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 May 2011, 05:07 PM
  4. Custom contact forms
    By raverX in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 18 Apr 2011, 04:45 PM
  5. Custom Forms
    By wwiii in forum General Questions
    Replies: 3
    Last Post: 11 May 2009, 05:51 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR