Sort Printable Price list with keyword search
Hello All,
I have installed a great mod on my website called "Printable Price List" (thanks to paulm and others who helped). There is a drop down box that filters the list of products by category. I would like to add a Keyword Search Field so that I can filter the product list with a keyword search.
I have already added the search form to includes/templates/template_default/pricelist/tpl_main_page.php but I am not sure how to modify the query and make the keyword search field work in conjunction with the category select box.
I'm pretty sure the query I need to modify is includes/modules/pages/pricelist/header_php.php
If anyone can give me some guidance, I would appreciate it.
The link to the test page is here: http://blackoliveeastnursery.net/zen...page=pricelist
Re: Printable Price list :: support thread
No matter what I've tried, the descriptions are truncated. I've set the "Truncate Descriptions" setting to null, 0, and a high number (1000). The descriptions still get truncated.
Anyone know how to remove the truncation of descriptions in code? Or any other way to let the entire description show in the price list?
Thanks.
Using ZenCart 1.3.8a and latest version of the Price List mod.
Re: Printable Price list :: support thread
You may want to look at the following a post http://www.zen-cart.com/forum/showpo...&postcount=345 it may have some information that could be useful.
Sawhorse
Re: Printable Price list :: support thread
Thanks a lot. That didn't handle it for me, but I got some good ideas from that post.
I finally found the problem. In my distribution, a line was un-commented that shouldn't have been. In includes/extra_configures/pricelist.php, the following line was un-commented:
PHP Code:
define('PL_TRUNCATE_DESCRIPTION', '500');
All the rest of the lines in that file were commented out, and the settings were placed in the database, and settable via the admin pages. For some reason, this one line was un-commented. Once I commented it out, the admin setting took over.
I'm good now, thanks. :clap:
Re: Printable Price list :: support thread
Re: Printable Price list :: support thread
This is a great add on. It worked fine a month or so ago. And now I am getting a blank page. I really need to print out product data again.
Zencart 1.3.8a
www.burnerbooks.com
admin/reports/price list/ and click here. Takes me to:
http://www.burnerbooks.com/index.php...page=pricelist
Re: Printable Price list :: support thread
About all you can tell from a blank page is that there is an error in the php code somewhere. You might be able to find the error in your error log. That would at least point you in the right direction.
Re: Printable Price list :: support thread
Anyone interested in building the pricelist, including attribute prices?
I am looking for a complete pricelist.
Re: Printable Price list :: support thread
Quote:
Originally Posted by
kehrli
About all you can tell from a blank page is that there is an error in the php code somewhere. You might be able to find the error in your error log. That would at least point you in the right direction.
I ran the debug file for my blank page on printable price list. Error is:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3003116 bytes) in Unknown on line 0
Does anyone know what this means? And how to fix? :unsure:
Re: Printable Price list :: support thread
You might get a better answer from someone with more expertise, but: That looks like a small amount of memory to be throwing an error. It looks like you are on a shared host that doesn't allow you enough ram resource to do the work that the price list script requires.
Assuming that's correct, the only solutions you have are to 1) break the price list down into sections, or 2) get your ram resource raised either with your current host, or with a new host.
I haven't had this problem, so I don't know how you would work out how to separate the price list into sections. You'll have to see if they have a way to filter the categories. If not, you'll have to modify the files by hand to filter the categories for you.