- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2016
06:24 AM
11-04-2016
06:24 AM
Hi folks
I need some help fixing some php code for the small description in magento.
We use the Amazon theme from cmsmart.
The problem is when using html code like (with WYSIWYG Editor or manually coding)
<table border="0"><tbody>
the code interferes with the theme code on the frontend of product page and gets all tangling up.
Here are some images on how it can looks.
1.png
2.png
This is a images of how we want it to look.
Images
This is the php code for the theme frontend.
<?php if ($tmpHtml = $this->getChildHtml('block_product_primary_bottom')): ?> <div class="block_product_primary_bottom"><?php echo $tmpHtml; ?></div> <?php endif; ?> <?php if ($_product->getShortDescription()):?> <div class="short-description"> <!--<h2>This is the short-description</h2>--> <?php $des = $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description');?> <div class="std"> <?php if(strlen($des) > 1800) { echo substr($des,0,1800).'...</html>'; } else { echo $des; } ?> </div></div> <?php endif;?>
If someone can give me some tips on how to make the short description code to not brake the theme front end code?
I really appreciate it.
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2016
03:01 PM
11-12-2016
03:01 PM
You need to make sure that all your tags have closing tags and they are correctly nested.
Tanel Raja
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2016
03:01 PM