Jump to content

Adding Previous and Next navigation buttons to the Prestashop product page


myselfidem

Recommended Posts

Hello,

 

Many thanks to Nemo1 for his awesome project !

 

http://nemops.com/prestashop-previous-next-product-buttons/#.VIyzvCl0yUl

 

Working fine for me with PS 1.6.0.6

 

I made only one change about the text buttons to have with my French language :

<div itemscope itemtype="http://schema.org/Product">

<div class="product-navigation clearfix" style="margin-bottom:20px">
	{if $prev_product}
		<a title="{$prev_product.name}" class="btn btn-default" href="{$link->getProductLink($prev_product.id_product, $prev_product.link_rewrite)}">{l s='Previous'}</a>
	{/if}
	{if $next_product}
		<a title="{$next_product.name}" class="btn btn-default" style="float:right"href="{$link->getProductLink($next_product.id_product, $next_product.link_rewrite)}">{l s='Next'}</a>
	{/if}
</div>

http://www.librairie-eauvive.ch/dictionnaires-encyclopedies/1112-dictionnaire-biblique-pour-tous-9782850312861.html

 

Friendly

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

  • 3 months later...

Hello Nemo1

 

I found a trouble using Quick View.

 

We can see the buttons : previous and next also using Quick View and doesn't work very well.

 

To avoid this trouble we can add some code Inside your nice tip for : product.tpl

 

-----------------------------------

<!-- Navigation -->

{if !$content_only} <!-- added -->

<div class="product-navigation clearfix" style="margin-bottom:20px" itemscope itemtype="http://schema.org/Product">

{if $prev_product}

<a title="{$prev_product.name}" class="btn btn-default" href="{$link->getProductLink($prev_product.id_product, $prev_product.link_rewrite)}">{l s='Previous'}</a>

{/if}

{if $next_product}

<a title="{$next_product.name}" class="btn btn-default" style="float:right" href="{$link->getProductLink($next_product.id_product, $next_product.link_rewrite)}">{l s='Next'}</a>

{/if}

</div>

{/if} <!-- added -->

----------------------------------

 

Now works fine using Quick View !

 

Friendly

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

  • 7 months later...

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