Re: Let Customer choose number of products displayed on page
I got it. it's simple!
Just use <form method="POST" action="/store/change_ppp.php" id="pppForm"> Show products per page <select name="ppp" onchange="this.form.submit()"> <option value="9" {if $products_per_page eq 9}selected{/if}>9</option> <option value="12" {if $products_per_page eq 12}selected{/if}>12</option> <option value="15" {if $products_per_page eq 15}selected{/if}>15</option> <option value="18" {if $products_per_page eq 18}selected{/if}>18</option> <option value="21" {if $products_per_page eq 21}selected{/if}>21</option> <option value="24" {if $products_per_page eq 24}selected{/if}>24</option> <option value="99" {if $products_per_page eq 99}selected{/if}>all</option> </select> </form> in products.tpl |
Re: Let Customer choose number of products displayed on page
Hi All,
This is a great mod and came in super handy. I modified it slightly to have a "view all" button outside of the drop-down menu. When you click it it will show the "all" option in the drop-down (for clarity's sake), otherwise it's not there. Here's the code and thanks Holub! HTML Code:
|
Re: Let Customer choose number of products displayed on page
I have this search sort by feature on my site. However, the options to sort by are Product, Price or Default. This is fine but I want to change the word product to movies even though I want it to sort by the product still. The only thing I want to change is the label, not the function. Anyone know how?
|
Re: Let Customer choose number of products displayed on page
Has any one tried this on 4.3.x?
|
Re: Let Customer choose number of products displayed on page
How can I get this to work in the manufacturers area as well?
|
Re: Let Customer choose number of products displayed on page
Hello Sir,
Looking through the X-cart forum I came across this topic. I need the same thing but for manufacturers. I need a drop down menu with the manufacturers, that stands next to the search box on my website. So when the user chooses to search "mascara" for example, he can search only for mascara, maunfactured by Lancome. I badly need some help, and I will appreciate it. Thanks in advance. |
Re: Let Customer choose number of products displayed on page
works for 4.2.1? thank you
|
Re: Let Customer choose number of products displayed on page
I have something similar but not in dropdown format over here:
http://forum.x-cart.com/showthread.php?t=23796&page=6 It's working on 4.3.2. |
Re: Let Customer choose number of products displayed on page
I would love this option in 4.3.x
I did see the thread you posted above and Show All won't really work for my customer. |
Re: Let Customer choose number of products displayed on page
I've completed this for 4.3. I couldn't find this mentioned elsewhere so hopefully this isn't redundant.
New file change_ppp.php: PHP Code:
New file skin1/customer/change_ppp.tpl: PHP Code:
Add the following to home.php just below the auth.php line: PHP Code:
Add the following to the very end of skin1/customer/main/navigation.tpl: PHP Code:
Add the following to .nav-pages in skin1/main.css: Code:
float: left; |
All times are GMT -8. The time now is 09:02 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.