Zen Cart Logo
Forums / Bug Reports / [Done v1.5.0] HTMLarea Editor doesn't show when editing coupons

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

Locked

Views: 2,858

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
27 Oct 2010, 3:52 PM
#1
Join Date:
Oct 2010
Posts:
12
Plugin Contributions:
0

[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 :smile:

27 Oct 2010, 4:26 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

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

27 Oct 2010, 6:24 PM
#3
Join Date:
Oct 2010
Posts:
12
Plugin Contributions:
0

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

:smile: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

27 Oct 2010, 8:01 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

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.

28 Oct 2010, 4:14 PM
#5
Join Date:
Oct 2010
Posts:
12
Plugin Contributions:
0

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

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

28 Oct 2010, 5:13 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

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 ?

28 Oct 2010, 8:52 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

respawnedelectronics:

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.

respawnedelectronics:

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 . . .

stevesh:

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.

28 Oct 2010, 8:53 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

Quick fix for v1.3.9h:

/admin/coupon_admin.php
line 306 has this:```

<?php if ($_GET['action'] == 'new') { ?>

Change that to this:

<?php if ($_GET['action'] == 'new'[B] || $_GET['action'] == 'voucheredit'[/B]) { ?>
29 Oct 2010, 2:22 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Also if you change line 887 from:

              echo zen_draw_textarea_field('coupon_desc[' . $languages[$i]['id'] . ']','physical','24','8', stripslashes($_POST['coupon_desc'][$language_id]));

to read:

              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 ...

3 Nov 2010, 3:17 PM
#10
Join Date:
Oct 2010
Posts:
12
Plugin Contributions:
0

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

:clap:

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