spott Posted August 10, 2019 Share Posted August 10, 2019 (edited) Hi I am using Prestashop 1.6.24 with Warehouse theme. And I like to add after short description link to full description. Its seems easy work - but as I am using friendly URL-s also - its complicated. When I am adding fallowing code to product.tpl <a href="#descriptionTab" class="btn btn-default">{l s='Read more'}</a> its working fine - BUT - this adds to product url #descriptionTab part (so that url looks - https://mydomain.com/nice-product#descriptionTab not any more just https://mydomain.com/nice-product)- and now I am getting error - as there is no product with this combinations and no Add to cart button any more. Is there any way to add link without this # part? I added fallowing code to product.tpl <button class="btn btn-default" onClick="document.getElementById('descriptionTab').scrollIntoView();" >{l s='Read more'} </button> I have descriptionTab div class - and its moves nicly to this part. So change it to your div class what you have and where you want to scroll. Edited August 11, 2019 by spott (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now