Jump to content

Product description right below product image


petrklika

Recommended Posts

You can move the code after line 153 of product.tpl:

		<!-- center infos -->

until the following line at about line 243:

		<!-- end center infos-->

Move it after the following at about line 400:

		</div> <!-- end pb-right-column-->

Then you can add clear: left; to the .pb-center-column section at about line 312 of themes/default-bootstrap/css/product.css to display it below the image.

Link to comment
Share on other sites

You can move the code after line 153 of product.tpl:

		<!-- center infos -->

until the following line at about line 243:

		<!-- end center infos-->

Move it after the following at about line 400:

		</div> <!-- end pb-right-column-->

Then you can add clear: left; to the .pb-center-column section at about line 312 of themes/default-bootstrap/css/product.css to display it below the image.

 

Hello,

 

I totally followed your instructions but It doesnt work properly for me... Are you sure that it works?

 

Thank you! :)

Link to comment
Share on other sites

Yes, I tested it on my PrestaShop v1.6.1.10 test site and here's what I see:

 

post-13933-0-21515900-1481718048_thumb.png

 

Go to the Advanced Parameters > Performance tab and make sure "Never compile templates" isn't selected, otherwise the modified product.tpl won't be recompiled. Also, click the "Clear cache" button to make sure the old page isn't cached.

Link to comment
Share on other sites

Yes, I tested it on my PrestaShop v1.6.1.10 test site and here's what I see:

 

attachicon.gifscreenshot.png

 

Go to the Advanced Parameters > Performance tab and make sure "Never compile templates" isn't selected, otherwise the modified product.tpl won't be recompiled. Also, click the "Clear cache" button to make sure the old page isn't cached.

Yeah, but the problem is that I need to have my LONG description under the procuct picture as my images from the post says... :/

Link to comment
Share on other sites

Oh, sorry. I misunderstood your question.

 

I see now the problem is that the right column is too long and the long description is clearing it so there's a big gap.

 

That's harder to fix, but still possible. Change everything back the way it was originally. You'll need to find the following at about line 401 of product.tpl:

	</div> <!-- end primary_block -->

Then move it above line 678:

</div> <!-- itemscope product wrapper -->

This will put the long description inside the same block as three columns.

 

You'll then need to find all the instances of: 

class="page-product-box"

and change them to:

class="page-product-box col-xs-12 col-sm-8 col-md-9"

This will reduce the width so they don't overlap the right column.

 

You'll then need to force the right column to float right instead of left by adding the following to product.css:

.pb-right-column { float: right; }
  • Like 1
Link to comment
Share on other sites

 

Oh, sorry. I misunderstood your question.

 

I see now the problem is that the right column is too long and the long description is clearing it so there's a big gap.

 

That's harder to fix, but still possible. Change everything back the way it was originally. You'll need to find the following at about line 401 of product.tpl:

	</div> <!-- end primary_block -->

Then move it above line 678:

</div> <!-- itemscope product wrapper -->

This will put the long description inside the same block as three columns.

 

You'll then need to find all the instances of: 

class="page-product-box"

and change them to:

class="page-product-box col-xs-12 col-sm-8 col-md-9"

This will reduce the width so they don't overlap the right column.

 

You'll then need to force the right column to float right instead of left by adding the following to product.css:

.pb-right-column { float: right; }

This worked perfectly, thank you for your job!

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...