Jump to content

sort / filter products "sortPagiBar"


Paldru

Recommended Posts

Hi, I am using the homenewproducts module, which shows

new products on the homepage. What I would need

to have is the "sort by" feature displayed like it

is on all product list pages in the categories.

The homenewproducts module files are located inside

prestashop/modules/homenewproducts/

I tried to copy some seemingly sort-relevant code from a

file called new-products.tpl (located in themes/mytheme/)

to homenewproducts.tpl and changed it to:

 

{if isset($new_products) AND $new_products}

<div class="content_sortPagiBar">

 

<div class="sortPagiBar clearfix">

{include file="../../themes/default/product-sort.tpl"}

</div>

</div>

{/if}

 

 

It is not working - only the div shows as a grey bar,

but without the drop down form /sort function.

 

Maybe someone could give me a hint on what to change

to make it work.

Link to comment
Share on other sites

  • 2 years later...

I'm having the same problem, I wrote to  support (mypresta.eu) becouse a bought the homepage product pro module. but is similiar to the homenew products free module. As soon i have an aswer(if the give me one) i ll write you back. 

Link to comment
Share on other sites

hello

it's not possible to just copy and paste the code.

behind the .tpl file is a huge coding stuff

 

for thing like you want it will be necessary to develop the whole controller to handle the things you want

it means: a lot of customization! :(

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