Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Location
    Montreal, Quebec, Canada
    Posts
    28
    Plugin Contributions
    0

    Default can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    I was wondering if I could remove the HTML and TEXT-Only radio buttons from


    the form on the account registration page
    and
    from the form on the account modification page


    Any communication will be sent in TEXT-Only, so I don't want to allow the customers the choice of format in which to receive their order-confirmation emails, etc

    Is that possible?!

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    Quote Originally Posted by jdunique View Post
    I was wondering if I could remove the HTML and TEXT-Only radio buttons from the form on the account registration page and
    from the form on the account modification page

    Any communication will be sent in TEXT-Only, so I don't want to allow the customers the choice of format in which to receive their order-confirmation emails, etc
    This will fix you up:

    admin panel/ configuration/ customer details/ Customer Default Email Preference
    1. set to 0
    2. But the only problem to this is you see the fields
    To Permanently delete from the page..

    It is in /includes/ modules/ create_account.php
    Copy this .php file and place in modules/ YOUR_TEMPLATE/ create_account.php.

    Looks like this:

    if (!isset($email_format)) $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');

    You will half to edit out this comment
    Mark
    Hare Do

  3. #3
    Join Date
    Apr 2008
    Location
    Montreal, Quebec, Canada
    Posts
    28
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    It didn't work for me, but I'm still keeping at it and trying other things

    I'll update this post when/if I find something

    thanks! :)

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    Quote Originally Posted by jdunique View Post
    It didn't work for me, but I'm still keeping at it and trying other things

    I'll update this post when/if I find something

    thanks! :)
    Post me back the way you commented out the following:

    includes/ modules/ YOUR_TEMPLATE_NAME/ create_account.php.

    if (!isset($email_format)) $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');

    Show me the text above this line, and the code above, and below the line.
    1. I need to see you technique
    Mark
    Hare Do

  5. #5
    Join Date
    Apr 2008
    Location
    Montreal, Quebec, Canada
    Posts
    28
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    Good morning!

    I finally got it to work for me

    I used <!-- to comment out a line in the following file:

    /includes/templates/template_default/templates/tpl_modules_create_account.php

    this is the line I edited

    Code:
    <?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>

    haredo, in my create_account.php I didn't have the line that you posted.. (maybe because I'm using a custom-made template?)
    I had something similar, but when I commented-it out, it had to effect..

    but you did point me in the right direction, and now the problem's solved! :) :)

    many thanks

  6. #6
    Join Date
    Apr 2008
    Location
    Montreal, Quebec, Canada
    Posts
    28
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    Oh, I also needed to remove the

    FIELDSET for ENTRY_EMAIL_PREFERENCE

    in
    /includes/templates/template_default/templates/
    tpl_account_edit_default.php


    so that this doesn't come up when the user is editing is account

    everything seems to be working fine now

  7. #7
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: can I Remove the HTML & TEXT-Only options and Radio Buttons ?

    Great work, Don't you just love to read code and play. Glad you got her working correctly..
    Mark
    Hare Do

 

 

Similar Threads

  1. Newsletter Subscribe - Remove Text/HTML options?
    By joomoo79 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Jun 2010, 12:13 PM
  2. Login Page: Remove HTML & TEXT-Only Radio Buttons
    By MeltDown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jun 2009, 10:27 AM
  3. Can I remove the HTML/Text Only options?
    By monkeytown in forum General Questions
    Replies: 4
    Last Post: 15 Jan 2008, 10:19 PM
  4. HTML & Text-Only - default to HTML.
    By ceegeeaar in forum General Questions
    Replies: 3
    Last Post: 16 Aug 2007, 05:02 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