Results 1 to 10 of 10
  1. #1

    Default [Done v1.5.0] HTMLarea Editor doesn't show when editing coupons

    Hello All,

    Thanks in advance for any assistance you may offer.

    I have done a lot of searching in the forums and am not sure which path to follow here.

    I am using zencart version 1.3.9G. The issue that I am having is that when adding products or using coupon admin the html editor is not showing any tools. Whether it is on plain text or html editor the result is the same. When previewing a new product before insertion into the catalog what you see is the html data not the text.

    I would like to be able to toggle back and forth between html and plain text so I can add html where needed when adding new products and also adding/editing coupons.

    Can someone point me in the right direction?

    Thanks again.

    Sincerely, Respawned Electronics

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: HTML WYSIWYG Editor Issues

    First, upgrade to 1.3.9h, which fixes the HTML problem on define and other pages.

  3. #3

    Default Re: HTML WYSIWYG Editor Issues

    Hi stevesh,

    Thanks for the assistance.

    I have transferred the docs file from 1.3.9h into my server, overwriting the existing files from 1.39g.

    I did read that because this was an upgrade from 1.3.9g a full reinstall was not necessary. Evidently I am missing a step here ?

    Kindest Regards, Ann Respawned Electronics

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: HTML WYSIWYG Editor Issues

    You need to open /docs/changelog-1-3-9h.html and note which files have been modified. Then copy those files from the new files to the appropriate folder on your site, overwriting what's there.

  5. #5

    Default Re: HTML WYSIWYG Editor Issues

    Hi Stevesh,

    I overwrote all of the necessary files. The html editor is now working when I add products which is great :)

    I still don't have it working when using the coupon admin. Is there a setting I'm missing. I set it to html prior to editing a coupon but there are no html controls in the coupon admin . . .

    Thanks again for your assistance :)

    Kindest Regards,
    Ann / Respawned Electronics

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: HTML WYSIWYG Editor Issues

    It appears that if you create a coupon in either HTMLArea or Plain Text, once it's confirmed, it can't be edited using HTMLArea, at least not in my fresh 1.3.9h test site. I can Insert a new coupon using HTMLArea.

    I don't know if that can reasonably be called a bug or not.

    Can you Insert a new coupon using HTMLArea ?

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

    Default Re: HTML WYSIWYG Editor Issues

    Quote Originally Posted by respawnedelectronics View Post
    I am using zencart version 1.3.9G. The issue that I am having is that when using coupon admin the html editor is not showing any tools. Whether it is on plain text or html editor the result is the same.
    Quote Originally Posted by respawnedelectronics View Post
    I still don't have it working when using the coupon admin. Is there a setting I'm missing. I set it to html prior to editing a coupon but there are no html controls in the coupon admin . . .
    Quote Originally Posted by stevesh View Post
    It appears that if you create a coupon in either HTMLArea or Plain Text, once it's confirmed, it can't be edited using HTMLArea, at least not in my fresh 1.3.9h test site.
    I can Insert a new coupon using HTMLArea.
    That appears to be a very-long-time bug, which only occurs when editing an existing coupon.
    .

    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.

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

    Default Re: HTML WYSIWYG Editor Issues

    Quick fix for v1.3.9h:

    /admin/coupon_admin.php
    line 306 has this:
    Code:
    <?php if ($_GET['action'] == 'new') { ?>
    Change that to this:
    Code:
    <?php if ($_GET['action'] == 'new' || $_GET['action'] == 'voucheredit') { ?>
    .

    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: HTMLarea Editor doesn't show when editing coupons

    Also if you change line 887 from:
    Code:
                  echo zen_draw_textarea_field('coupon_desc[' . $languages[$i]['id'] . ']','physical','24','8', stripslashes($_POST['coupon_desc'][$language_id]));
    to read:
    Code:
                  echo zen_draw_textarea_field('coupon_desc[' . $languages[$i]['id'] . ']','physical','100%','25', stripslashes($_POST['coupon_desc'][$language_id]));
    The text box will be a better size for editing ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10

    Default Re: HTMLarea Editor doesn't show when editing coupons



    Hi guys,

    I made all of the changes you outlined. Worked like a charm.

    Thanks so much for all of your help.

    Kindest Regards,

    Ann / Respawned Electronics

 

 

Similar Threads

  1. HTML Editor doesn't show in new install
    By beyre in forum General Questions
    Replies: 20
    Last Post: 16 Feb 2011, 01:46 AM
  2. Replies: 3
    Last Post: 5 Feb 2010, 06:34 PM
  3. Editor doesn't default to HTMLarea
    By high2K in forum General Questions
    Replies: 0
    Last Post: 27 May 2008, 10:24 AM

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