Jump to content

Move Data Sheet Below More Information


EasyBeveiliging

Recommended Posts

Hi,

 

I'm very new to Prestashop, been looking all over the internet but can't seem to find the solution for my problem:

 

On my productsheet (for example: http://www.easybeveiliging.nl/index.php?id_product=10&controller=product)

 

There is the following order:

1. Short description
2. Data sheet

3. More information

 

I would like to change the order or 2 and 3 so it will be on the product page like this:

1. Short description

2. More information

3. Data sheet

 

I can't find that option anywhere. Hope someone can help.

 

I added a screenshot.

 

Thanks!!

 

Kind regards,

Robbert

post-1207859-0-25432200-1456948612_thumb.png

Link to comment
Share on other sites

Your code is really well commented.

In Chrome I Press F12 and I can see:

 
<!-- end primary_block -->
<!-- Data sheet -->
<section class="page-product-box">
(tone of code)
<!--end Data sheet -->
<!-- More info -->
<section class="page-product-box">
(tone of code)
<!--end  More info -->
<!--HOOK_PRODUCT_TAB -->

So if you want to change data sheet with more info you just have to swap the code between comments data sheet& end data sheet with more info&end more info.

Link to comment
Share on other sites

  • 2 weeks later...

I still didn't manage to change the order of DATA SHEET and MORE INFO on my product page :(

 

This is the code I found in my product.tpl:

 

{/if}
{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}
{if isset($product) && $product->description}
<!-- More info -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='More info'}</h3>
<!-- full description -->
<div  class="rte">{$product->description}</div>
</section>
<!--end  More info -->
{/if}
 
I really tried to swap the code but nothing changed to my product pages. I put it back the way it was. Could you show how my code should look like to switch Data sheet with more info?
 
Here is a link to a product page:
 
Thanks!!
Link to comment
Share on other sites

The code should look something like this:

{if isset($product) && $product->description}
<!-- More info -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='More info'}</h3>
<!-- full description -->
<div  class="rte">{$product->description}</div>
</section>
<!--end  More info -->
{/if}
{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}

1) Did you go to [your_shop]/themes/[your_theme]? I mean did you edited correct file? 

2) Did you clear your cache after editing the file?

  • Like 1
Link to comment
Share on other sites

Thanks!

 

Any chance you could help me with my other 2 issues?  :)  :)  :)

 

https://www.prestashop.com/forums/topic/515645-remove-subcategories-pictures/

https://www.prestashop.com/forums/topic/515649-productlist-looks-different-after-refresh/

 

 

 

Kind regards,

 

Robbert

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...