Jump to content

[SOLVED] To show Table format in Prestashop 1.5.2


Recommended Posts

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>

post-372665-0-81161900-1358231609_thumb.jpg

post-372665-0-21608700-1358231618_thumb.png

Edited by linster (see edit history)
Link to comment
Share on other sites

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

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

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

  • 2 months later...
×
×
  • Create New...