| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Let Customer choose number of products displayed on page | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() Quote:
Right, Jon, you've lost me now... (By the way, after I implemented your suggestions, I noticed that if I clicked on the ALL option, I simply received a blank page in my browser (change_ppp.php). Clicking on the other options worked fine.)
__________________
X Cart Pro v. 4.1.9 Download Expander (from Altered Cart) X-Magnifier Dynamic Preview (from BCS Engineering) Customer Rewards Points (BCSE), used as credit purchasing system |
|||||||
#12
|
|||||||
|
|||||||
![]() Pretty slick! I've been thinking about adding "Products Per Page" to the category modify template so the cart can be configured at the category level for page length. Don't suppose anybody's already done that?
__________________
Versions 4.3.1 - 4.5 |
|||||||
#13
|
|||||||||
|
|||||||||
![]() I don't want to hijack this thread as it's a good mod... and not my mod... but I've had to assist several store owners who have had the misfortune of having their sites hacked due to varying exploits, so please excuse my paranoia and hesitation to rely on x-cart's data sanitizing
![]() Here's the code I would use in change_ppp.php: Code:
|
|||||||||
|
#14
|
|||||||
|
|||||||
![]() I appreciate that thanks Jon that code seems to work fine, including the show ALL...
__________________
X Cart Pro v. 4.1.9 Download Expander (from Altered Cart) X-Magnifier Dynamic Preview (from BCS Engineering) Customer Rewards Points (BCSE), used as credit purchasing system |
|||||||
#15
|
|||||||||
|
|||||||||
![]() Thank you, Jon, for this corrections. Of course, somebody could read this thread and use opened code to find a security hole. Anyway thanks Jon.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#16
|
|||||||
|
|||||||
![]() Has anyone encountered problems with this working in HTML Catalog mode? Can't seem to make it work there, only in dynamic mode
__________________
X-Cart 4.1.9 PHP 4.3.10 MYSQL 3.23.58 Apache/2.0.51 (Fedora) Linux Perl 5.008003 |
|||||||
#17
|
|||||||
|
|||||||
![]() Excellent post and exactly something I needed...except for one thing -> the onchange in the form provided in post #2 gave this error: "document.product_per_page_form has no properties"
So instead of onchange="javascript: document.product_per_page_form.submit();" I used onchange="this.form.submit()" which fixes the problem I then stripped out the unnecessary name attribute in the form tag and the all option (since that would have been overkill for me), and added an id so I could apply styles: Code:
I successfully tested it in PC Firefox & IE7, Mac Firefox & Safari. You can see it in action here: http://www.shopbettylin.com/home.php?cat=249 |
|||||||
#18
|
|||||||||
|
|||||||||
![]() Yes, you right about this modification.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#19
|
|||||||
|
|||||||
![]() Works great...thanks for the great contribution Antony and I appreciate the concern for security Jon.
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
#20
|
|||||||
|
|||||||
![]() Very useful mod, but I guess it's only for 4.1.x and not for 4.0.x?
Because changing the number of products brings me straight away to home.php... Anybody a idea what to change so it will also work with 4.0.x? I really could use this mod in our store... Thanks! ![]() ![]() ![]()
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
|
|||
X-Cart forums © 2001-2020
|