Jump to content

How to delete the bottom part of the sortPagiBar


generalexperts

Recommended Posts

I am wondering how to delete the "Previous (page 1,2,3,4,5,etc) Next" part of the sortPagiBar toward the top of the page. And just show the Sort by & Show # of products per page at the top. Then the opposite at the bottom. Remove the Sort by & Show # products per page, and leave just the "<<Previous/page number/Next>>"  Lots of duplicate functions not needed... I'm using Prestashop 1.5.4.1. Thanks!

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

Please take a look at this code:

{if $products}
	<div class="content_sortPagiBar">
		{include file="$tpl_dir./pagination.tpl"}
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
	</div>
	
	{include file="./product-list.tpl" products=$products}
	
	<div class="content_sortPagiBar">
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
		{include file="./pagination.tpl"}
	</div>
{/if}

If you want to delete all of the top, just delete this below:

	<div class="content_sortPagiBar">
		{include file="$tpl_dir./pagination.tpl"}
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
	</div>

The final code would be look like this below:

{if $products}
	
	{include file="./product-list.tpl" products=$products}
	
	<div class="content_sortPagiBar">
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
		{include file="./pagination.tpl"}
	</div>
{/if}

Or you can hide by CSS style, the final code would be look like this below:

{if $products}
	<div class="content_sortPagiBar" style="display:none">
		{include file="$tpl_dir./pagination.tpl"}
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
	</div>
	
	{include file="./product-list.tpl" products=$products}
	
	<div class="content_sortPagiBar">
		<div class="sortPagiBar clearfix">
			{include file="./product-sort.tpl"}
			{include file="./product-compare.tpl"}
			{include file="./nbr-product-page.tpl"}
		</div>
		{include file="./pagination.tpl"}
	</div>
{/if}

I hope this help you.

 

 

Regards

Link to comment
Share on other sites

I'm Sorry I don't exactly understand that. I'm not looking to delete everything. Just the next/previous on the top and leave it for the bottom. And, I want to keep the sort by on the top and delete it for the bottom. Is that what you mean by "The final code would be look like this below:" ?   thanks!

Link to comment
Share on other sites

  • 3 weeks later...

For the effect I was going for I changed part of the category.tpl to (approx Line 99):

 

                <div class="sortPagiBar clearfix">
                    {include file="./product-sort.tpl"}
                    {include file="./product-compare.tpl"}
                    {include file="./nbr-product-page.tpl"}
                </div>
            {include file="./product-list.tpl" products=$products}    
            <div class="content_sortPagiBar">
                {include file="./pagination.tpl"}
            </div>

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

  • 3 months later...

How do I delete the bottom part of the SortPagibar in the "Manufacturing" page? It worked for pages like this: http://www.mydomain.com/17-blocks but it doesn't work for the manufacturing page (renamed "Brands").  Also the image I had set around to sortpagibar shows a "?" instead of the image. Any ideas on what happened?

 

Thanks!

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

  • 4 weeks later...
  • 6 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...