jimmyc1804
Sophomore
Just Getting Started
Member Likes (0)
Hi guys, I need some help I created up to 4000 coupon code and the system created 400 pages because it only shows 10 on each page, is there anyway I can add a search bar to look for coupon code instead of going page by page oris there anyway to show more than 10 on each page?
Responses (13)
Member (joined July 2011) Likes (1)Liked by: 
@jimmyc1804
Hi Jimmy,
This is an educated guess on my part. I don't want to mess up your back end display so execute this code change with caution. I assume you could revert to the original code if it doesn't work (or causes problems), and I think this code is for display purposes only and you are only changing the display numbers.
Go to wp-content/plugins/marketpress/marketpress.php
Find the following code (around line 5000 in my older version of MP)
Change the 1 for 'apage' to the number of pages you want.
Change the 10 for 'num' for the number of coupons per page you want.
I think that's how it works. Please let me know if it does or doesn't.
Don't know how to add a search. Sorry.
Like what you see? If so, please donate points :-)
Cheers,
Mark
DEV Diva (joined February 2012) Likes (0)
Hi @jimmyc1804
Wow, that's a lot of coupons :)
Great advice from @mark77210. You can also see this topic where the Developer expands on this.
I just wanted to check. Are you using the GridMarket theme with MarketPress or your own theme? Not sure if the site link that you provided as support information is the one being used with the coupons.
Let me know if you need further support with the code. Look forward to receive your feedback.
Have a great day.
Gina
DEV Diva (joined February 2012) Likes (0)
@mark77210
Some blue balloons coming your way for trying to assist another member. Thanks for participating and adding value here on our Community!
Member (joined July 2011) Likes (0)
@GinaB
I looked out my window but I did not see any blue balloons yet. I hear that sometimes birds take them and use them for nesting. :)
I'm interested to see if this fix works for Jimmy. I hope it does.
Cheers,
Mark
DEV Diva (joined February 2012) Likes (0)
@mark77210
Bless you! [Blush] Yes, the birds must have popped them. Let me try to send some more to you. This time I will ask for a delivery receipt :P
I am also interested to see how this will work out. I have to be honest, I have not tried this before - well, never had this many products in my test lab setup, so never had to try this. [Smile]
@jimmyc1804
As you can see both Mark and I are anxiously waiting for your feedback. This is an interesting topic to follow and to work with you on getting it sorted.
A blessed day to both of you!
DEV Diva (joined February 2012) Likes (0)
Hi @jimmyc1804
I just realized that I didn't deal with your question about the search. I would actually recommend you to use categories and tags to narrow down 'search' results. You can easily add the categories and tags widget to the sidebar for easy access by visitors of your site.
See if this would work for you.
Gina
Member (joined July 2011) Likes (0)
@GinaB
Balloons have arrived. Merci :)
I'm not sure, but I think Jimmy was asking if a search bar could be added in the back end to held with administration of coupons. I imagine that if you have hundreds of coupons and need to find one to delete, it can be frustrating. Needle in the haystack kind of thing. Even if he can have more than 10 on a page, there's no way to search (or even sort) the coupons in the admin section.
Cheers,
Mark
DEV Diva (joined February 2012) Likes (0)
Ah, now I understand @mark77210!
This is indeed a very good question @jimmyc1804. I'll ping the Developer to see if there is some way to customize the back end for this.
Talk soon again.
Gina
DEV Diva (joined February 2012) Likes (0)
A note for @Aaron
Any way that @jimmyc1804 can customize the back end administration of the products? He has 4000 coupons and no way to search for something on the back end. Any ideas how he can achieve this?
Thanks for your time Aaron!
Gina
Member (joined May 2012) Likes (0)
@mark77210
@Gina B
Sorry guys i was testing it at the end i think i will have to use 3dcart.com shopping cart for now because it has more features and more flexible than MarketPress or any other Wordpress shopping cart.
For now I am testing how to make more coupon show in one page
DEV Diva (joined February 2012) Likes (0)
Hi @jimmyc1804
Sorry to hear that :/
Nevertheless, wishing you all the best with your project. And if you have any questions regarding our other products, please don't hesitate to be in touch.
Have fun with your project!
Gina
Lead Developer (joined May 2009) Likes (1)Liked by: 
You can add this to the end of the coupons url:
&num=1000
to change how many show per page.
DEV Diva (joined February 2012) Likes (0)
Thanks @Aaron for your latest advice! Great to have some solutions available for our members; also in case anyone else requires this functionality.
@jimmyc1804
If you change your mind about MarketPress, you have a solution available for displaying more coupons per page :)
WordPress Questions?
We've got answers!
Find out more »