eldridge Posted September 23, 2011 Posted September 23, 2011 Hi, I have a problem on the product edit page. When I'm editing a product through the product edit page, the product description returns a "p" character instead of the actual product description of the product. Please see the screenshot attached. I don't know how to fix this since i don't know where to find what causing the problem. Thank you.
multimixer Posted September 23, 2011 Posted September 23, 2011 Does the product name display correctly? Is the description ok in the database? Take out the WYSIWYG, how is the display then? Your file is admin/categoris.php My community profile | Template system for osCommerce - New: Responsive | Feedback channel
eldridge Posted September 23, 2011 Author Posted September 23, 2011 Yes the product name displays correctly including all other informations except only the Product Description. The description in the database is ok. I removed the ckeditor and still the same.. Thank you for your reply sir. I hope you can help me.
eldridge Posted September 23, 2011 Author Posted September 23, 2011 I have fixed the problem by replacing, (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) to stripslashes($product['products_description']) Thanks.
multimixer Posted September 23, 2011 Posted September 23, 2011 I don't think you fixed something here. What will be in case of more languages? Post the complete section of this area My community profile | Template system for osCommerce - New: Responsive | Feedback channel
eldridge Posted September 23, 2011 Author Posted September 23, 2011 Hi sir, I understand what you are trying to say.. can you help me with this? Here is the code of the product description field before modifying it. <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id = products_description[' . $languages[$i]['id'] . '] class="ckeditor"'); ?></td> Thank you.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.