linster Posted January 15, 2013 Share Posted January 15, 2013 (edited) Hi, I have recently migrated to Prestashop 1.5.2. And I am having problem trying to get the table format showing in the "Info" section. I need to have the Info section of the Products to show table format as my previous 1.4. The coding is in the new website's Product Description section but it is not showing on the front end. Current new website Product Page for reference: refer to old.jpg in attachment Previous website Product Page for reference: refer to new.png in attachment The coding is as follows: <p><strong>Madana Professional Natural Rubber Jute Yoga Mat</strong> is made of 100% natural jute fibers that are submerged in 100% natural rubber. Our jute mats are free from toxic chemicals and are 100% biodegradable; to ensure the best for you and the environment. <br />The mat has excellent grip and you will not find yourself slipping easily, so you’ll be able to concentrate on the practice and on aligning yourself.</p> <p> </p> <table border="1"> <tbody> <tr> <td style="text-align: left;" width="60px"><span class="bold" style="color: #000;">Colour</span></td> <td style="text-align: left;" width="120px">Black</td> <td style="text-align: left;" width="120px">Beige (out of stock)</td> <td style="text-align: left;" width="120px">Green (coming soon)</td> </tr> <tr> <td style="text-align: left;"><span class="bold" style="color: #000;">Size</span></td> <td style="text-align: left;">61 x 183 x 0.4cm</td> <td style="text-align: left;">61 x 183 x 0.4cm</td> <td style="text-align: left;">61 x 173 x 0.5cm</td> </tr> <tr> <td style="text-align: left;"><span class="bold" style="color: #000;">Weight</span></td> <td style="text-align: left;">2.2kg</td> <td style="text-align: left;">2.2kg</td> <td style="text-align: left;">2.2kg</td> </tr> </tbody> </table> Edited January 16, 2013 by linster (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 15, 2013 Share Posted January 15, 2013 Try to find "strip_tags" in the TPL. That might remove your HTML. Link to comment Share on other sites More sharing options...
linster Posted January 16, 2013 Author Share Posted January 16, 2013 Hi Bill, thanks for your advise. I tried looking for it but there is no strip_tags for "More Info" section. Here is the coding: <!-- description and features --> {if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments} <div id="more_info_block" class="clear"> <ul id="more_info_tabs" class="idTabs idTabsShort"> {if $product->description}<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>{/if} {if $features}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} {if $attachments}<li><a id="more_info_tab_attachments" href="#idTab9">{l s='Download'}</a></li>{/if} {if isset($accessories) AND $accessories}<li><a href="#idTab4">{l s='Accessories'}</a></li>{/if} {$HOOK_PRODUCT_TAB} </ul> <div id="more_info_sheets" class="sheets align_justify"> {if $product->description} <!-- full description --> <div id="idTab1">{$product->description}</div> {/if} Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 16, 2013 Share Posted January 16, 2013 So if I understand you can see the table in BO but it will not show in FO, correct? As you can see, it works for me. http://bdalton.ca/en/home/12-t.html Here is my code, <!-- description and features --> {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments)} <div class="more_info_inner"> {if $product->description}<h3>{l s='More info'}</h3>{/if} {if isset($product) && $product->description} <!-- full description --> <div id="idTab1"><div>{$product->description}</div></div> {/if} </div> This seems to be the relevant line. <!-- full description --> <div id="idTab1"><div>{$product->description}</div></div> Hopefully someone reading can help us. Link to comment Share on other sites More sharing options...
linster Posted January 16, 2013 Author Share Posted January 16, 2013 Ya... it's working for you but not for me... So if I understand you can see the table in BO but it will not show in FO, correct? As you can see, it works for me. http://bdalton.ca/en/home/12-t.html Here is my code, {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments)}{if $product->description} {l s='More info'} {/if} {if isset($product) && $product->description} {$product->description}{/if} This seems to be the relevant line. {$product->description} Hopefully someone reading can help us. Link to comment Share on other sites More sharing options...
linster Posted January 16, 2013 Author Share Posted January 16, 2013 It is showing ok now... 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 16, 2013 Share Posted January 16, 2013 Good Stuff. 1 Link to comment Share on other sites More sharing options...
AnnieW Posted March 18, 2013 Share Posted March 18, 2013 I have the same problem. May I know which file i need to edit and where it is located? Thanks Link to comment Share on other sites More sharing options...
linster Posted March 18, 2013 Author Share Posted March 18, 2013 Hi AnnieW, The file is product.tpl of your template. I have the same problem. May I know which file i need to edit and where it is located? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts