Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add-on for not having to use html in product descriptions?


JustinS

Recommended Posts

Posted

Is there one?

 

About to start a huge project and would really speed things up if I didn't have to use line break <br> and bold <b> etc, so was just wondering if there was an add-on that gives me a description box... well.. kind of like this forums' reply boxes etc where I can just click a button if I need to bold/underline or whatever and enter makes a line break.

 

Thanks a lot.

Posted

@@PupStar

 

when i download it, it gives me a weird error... hmm... says blank or something.

 

could you try it on yours to see if you get the same results?

 

thanks for the link as well

Posted

@@knifeman

 

You were right, was downloading the wrong one.

However, I can't find any instructions for this add-on - am I missing it or did he just throw it out there for people to figure out?

Posted

Step 1

-------

Go to ckeditor.com and download the latest Editor Release

 

_______

Step 2.

-------

Unzip it all, then upload the ckeditor folder and all it's contents to your admin directory.

 

_______

Step 3.

-------

Amend /public_html/admin/includes/template_top.php

 

__________

FIND THIS:

----------

 

<script language="javascript" src="includes/general.js"></script>

 

_____________

ADD AFTER IT:

-------------

 

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>

 

 

_______

Step 4.

-------

 

Amend /public_html/admin/categories.php

 

__________

FIND THIS:

----------

 

tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])));

 

___________

CHANGE FOR

-----------

 

tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),' class="ckeditor"');

 

_______

Step 5.

-------

Upload it and refresh the category (prodcut adding/editing) page. You should see the newly installed Editor. Enjoy!

 

 

 

I found instructions, but the scripts I am supposed to search for are not in my template_top and categories.php.

Posted

It's all about doing 2 simple things

 

1) add the ckeditor script to your file admin/includes/template_top.php, you can do that just before the closing </head> tag

2) add class="ckeditor" to any text area element you want, like e.g. the textarea for product descriptions

Posted

Yea I finally figured it out. I got better instructions from another source after my last post last night right before I went to work lol.

I can't believe how simple it really was and how long it took me xD

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...