Files in the /includes/init_includes folder are not auto-loaded. Thus, unless you have something configured to load that file, its existence will not make any difference.
Printable View
I tried looking to see if anyone else was having this problem but I didn't see anything. Sorry if I missed it.
My pricelist looks great but it drops down on the page when it loads. It's showing a js error. It seems to be some kind of conflict with Image Handler. I don't want to remove IH... so any idea how to fix it? I would appreciate any help.
http://www.kellyscountrycorner.com/i...page=pricelist
Thanks in advance.,
Kelly
I knew that but ....... :blush::blush::blush::blush:
The file init file was missing because it was part of another little mod I wrote, and I forgot to add it to the pricelist zip. Obviously the autoloader file was missing for the same reason. So why didn't I think about the autoloader file when I noticed the init file was missing? :frusty::frusty:
Anyway I:
- removed the non working pricelist-group-fix-for-v1.4.1.zip atachement from the thread
- and added the autoloader file to the new pricelist-group-fix-for-v1.4.1.zip and attached the file to this post
This should fix the group function bug in pricelist v1.4.1 without any code edits, I hope ........... ;-)
Thanks DrByte! :smile:
Hi Paulm,
I added the css to my pricelist css and it fixed the problem. The js error is still there but I can live with that. :smile:
Thanks!
Kelly
Appears to be a resource hog. Fails to load because it keeps hitting up against my 25mg memory limit.
ok 2949 products
18 top categories
142 sub categories (mostly under 5 of the top cats)
Quote:
Enable true
Group name
Profile Name A4 portrait
Stylesheet a4-portrait
Main Cats New Page true
Main Cats New Table true
No Wrap false
Max Columns 3
Max Rows 36
Tax Free false
Model true
Manufacturer false
Weight false
Stock On Hand false
Notes (A) false
Notes (B) false
Show Inactive false
Sort By products_name
Asc Desc asc
All Categories default false
Boxes false
Debug false
Images true
Image height 80
Image width 100
Descriptions true
Extra lines 5
Logo true
Headers false
Footers false
Show Add to cart button false
Only Add to cart false
Button target Cartpage
with all categories default set to false I get no products in the pricelist
right I had the memory problem when all categories default was set to true
ok when I turn on the boxes I can select a category now......the small categories work fine but the large categories with lots of sub cats now fails to a blank screen.....strange I don't get the memory error anymore. If the mod would list the sub-cats I could probably get around the issue.
The only other issue would be the price display. Our entire catalog is price by attribute......I don't want to display all of the attributes I only want to display "starting at" price. How difficult would it be to borrow the code that is used for that display on the product info page and use it here?
Another thought would be, how to remove the price block? We would use it this way and send it out to our wholesale customers to put out on the counter for their customers to browse through and the wholesale customers would not want their customers know what they pay for the cross stitch charts.
That's something that I had planned, but never got to. It's not difficult though, I just need some time spare to release a new version (and must not forget to make the price optional then).
About the memory issue (on shops with thousands of products): I would like to look into this further, and I do have several ideas, but I am afraid it would take much more time than is wise for me to spend on it a.t.m......
I've spent a couple of hours on this now and have read through all 22 pages looking for what I have done wrong
I have 1.3.7 and trying to install this module version 1.4.1
I believe I have followed the directions correctly - but when I go to
http://www.kwmagic.com/index.php?main_page=pricelist
I get this error:
Fatal error: Call to undefined function: display_price_nosymbol() in /home/kwmagicc/public_html/includes/modules/pages/pricelist/header_php.php on line 574
any insight appreciated
thanks
phil
Hi Phil,
it looks like you somehow do not have 1.4.1, but you have an older version (which required some manual core code changes). Version 1.4.1 does not make any call to a function display_price_nosymbol(), so it can not throw that error!
The latest stable version (currently 1.4.1) is the uppermost download at:
http://www.zen-cart.com/index.php?ma...roducts_id=276
Thanks for the reply Paul,
I definetly have the latest version. Tried uninstalling and downloading and re-installing.
I wonder if the there are remnants of the old version from before the upgrade to 1.3.7 ?
I have made some progress ... downloaded an older version and used the remove script.
When I try to print I now get a page saying Profile does not exist... and the profiles are gone from the admin.configuration section.
Tried running the script for 1.4.1 get the profiles back but when I go to print the pricelist page I am back to the same error Function display error again.
hmmmmmmm....
I just (re)downloaded 1.4.1 and it *certainly* does not call display_price_nosymbol(), the whole set of files does not even contain a string "display_price_nosymbol".
So you *must* have an old version installed. Maybe you are trying to upgrade from an older version, but are not overwriting the old files? Also your ftp programm might mess things up for you.
I've uploaded
I definetly think it is some old script that is causing the problem... I did use your printable price list on my PRE-Upgrade version of zen-cart.. worked great!
I wonder if I need to delete or change something from the old version?
the page looks like this now ( is this from an older version?)
http://www.kwmagic.com/index.php?main_page=pricelist
GOT IT
Thanks for the contribution Paul.
Sorry if I missed it somewhere in the thread... but did anyone ever figure out how/what to change so it would work properly with an 8 1/2 x 11 sheet of paper (instead of a4)???
Thanks
I have ver 1.3 on Zen Cart 1.3.7 - all works great. Is there a need to get ver 1.4.1 ?
If so, do I need to do any sql patches - or just uplaod the new files.
Thanks for your help.
Hi 2004g35,
there is no real need to install 1.4.1 if you're happy with 1.3 :smile: But if you do want to upgrade you will need to reinstall the sql (which will reset all settings, sorry: no time to write sql update patches).
Maybe it's better to wait for a new 1.4.x or newer version. I am on 1.4.3 now, but I am unsure if I will continue working on it until I have at least a 1.5 or newer version, or that I will release another 1.4.x version.
Here's a partial changelog (quoted from the readme..):
Quote:
######################################
# price-list v1.42 2007/10/04 #
######################################
Added missing file:
/includes/init_includes/init_zen_group.php
(adding this file should fix the group feature)
Minor change to /includes/extra_functions/group_functions.php which may fix the group function issue with older (1.2.x) Zen Cart versions.
Another minor change to header_php.php to fix a TABLE_HEADING_ADDTOCART bug
######################################
# price-list v1.41 2007/07/19 #
######################################
Minor fix in pricelist-3.sql patch file (to prevent install error on some MySQL versions/configurations when using the Zen SQL patch tool).
######################################
# price-list v1.4 2007/07/18 #
######################################
1) Made a small change to the sql (which might fix a possible column count error message at install when using the Zen SQL patch tool)
2) Fixed a minor bug (in tpl_main_page.php), now the selected profile should always be remembered when switching categories
3) Added random images floats (left/right) logic for nicer catalogue prints
Also added css to profile-3.css (edit it to control the image floats):
.imgDescrRndPL_3 img, .imgDescrRndPL_4 img {
float: left;
}
.imgDescrRndPL_1 img, .imgDescrRndPL_2 img{
float: right;
}
4) Added code for add to cart buttons (commented: //Added by Vartan Kat on july 2007 for Add to cart button), credits for this should go to Hubert and Vartan Kat
######################################
# price-list v1.3.6 2007/06/04 #
######################################
Several changes, some of which are:
1) Added basic functionality to print descriptions and images (height and width setting in pricelist admin profile settings)
2) Added group functionality. Uses zen the groups (group names) to allow disallow access to the pricelist. Set in pricelist admin profile settings.
######################################
# price-list v1.2 2006/10/20 #
######################################
Made several code changes (trying to clean up some mess ;-) ).
Removed the need to overwrite or edit the currencies class.
Merged several files into one. For easier layout edits (I hope).
Header, footer and body all moved to tpl_main_page.php
Some small changes to the stylesheet
Sorry, but I don't find any information about use this mod to generate price listing for wholesales (to use with this mod
http://www.zen-cart.com/index.php?ma...roducts_id=166)
I use the wholesales mod
http://www.zen-cart.com/index.php?ma...roducts_id=166
and I use price listing mod to generate price listing.
I would use price listing mod to generate price listing only when wholesales customer log in and show him the reserved price.
I hope I'm clear
Hi,
If this works with product images, is it possible to make use of it to generate a printable price list of the entire catalog and convert the html version to pdf?
@100asa: sorry, but whosale prices are not supported currently. That would require some custom coding.
@dealbyethan.com: you can try CutePDF Writer (= a free Windows programm). Everything you print it writes into PDF files.
(I use it myself to convert invoices to PDF ocasionally, and I assume it would work well on the pricelist too)
Hi
I love this module. I installed it successfully but I would like to fix a few things:
1. Tax inclusive and exclusive don't work when enabled in the admin. Both pricings are the same.
2. Logo doesn't display when enabled in the admin.
3. How do I move the product image up so it is on the same row as the pricing to the right?
4. I would like to enable the description. However I have also some product images inside the description. How do I display the description without showing them?
Any suggestion will be appreciated. Thank you so much.
1. I think the answer is in this thread. (use the "Search this Thread" button and search for "tax")
2. Screen or print?
3. ....
4. Try this: open the CSS file for edit, find the class of the description, and add img {display: none;}
Really useful functionality. Great work.
Is there an easy way to make a list where each product only once? I.e. if a product is listed in several categories, under the same modelnr., then it only displays in the "parent" category?
Such a list would be very useful while taking inventory, as most shops will have to do in just a month (at least in Norway) ...
I suspect it would be possible to do it by adjusting how the sql-query retrieves the product-list for each category, but I prefer to ask before I start messing too much with those ...
Any ideas?
//TrondOS
2. Logo doesn't display when enabled in the admin. On the screen the logo doesn't show up. From memory it displays the meta tags or shop name instead. I haven't tried printing it yet.Quote:
1. I think the answer is in this thread. (use the "Search this Thread" button and search for "tax")
2. Screen or print?
3. ....
4. Try this: open the CSS file for edit, find the class of the description, and add img {display: none;}
3. How do I move the product image up so it is on the same row as the pricing to the right? Do you mean you don't know or you don't understand? The product image is under the pricing at the moment, I would like to put it on the same row as the pricing.
Just tried this but it didn't work. The stylesheet I tried was profile-a4-portrait.css since I couldn't find any description class in stylesheet.css. My question was I would like to enable the description. However I have also full size product images inside the description. How do I display the description without showing them?Quote:
4. Try this: open the CSS file for edit, find the class of the description, and add img {display: none;}
I experimented the code at a few places but none of them work (see below).
/* bof added for image and description */
.imgDescrPL div{
border: 1px dotted black;
border-width: 0 0 2px 0;
/* cm or inch height for printing */
width: 100%;
}
[I PUT "IMG {DISPLAY: NONE}" HERE BUT THE MAIN PRODUCT IMAGE DISAPPEARED. I ONLY WANT THE IMAGES IN DESCRIPTION NOT TO SHOW.]
.imgDescrPL div img {
float: right;
}
[I PUT "IMG {DISPLAY: NONE}" HERE BUT THE MAIN PRODUCT IMAGE DISAPPEARED. I ONLY WANT THE IMAGES IN DESCRIPTION NOT TO SHOW.]
/* eof added for image and description */
/* screen or other media styles above this line or in the common stylesheet.css file */
@media print {
/* bof added for image and description */
.imgDescrPL div{
/* cm or inch height for printing */
height: 2.2cm;
overflow: hidden;
}
[I PUT "IMG {DISPLAY: NONE}" HERE AND THE MAIN PRODUCT IMAGE DID NOT DISAPPEAR. BUT THE IMAGES IN DESCRIPTION STILL SHOWS.]
/* eof added for image and description */
@trondos: good point about the "parent" category. Fortunately we only have to check the stock only once a year (as far as I know), not once a month :shocking:
I changed this (in the modules/pricelist/header_php.php file)
To this:Code:$query = 'SELECT *';
$query .= ' FROM ' . TABLE_PRODUCTS . ' p LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . ' pd USING(products_id) LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' pc USING(products_id) LEFT JOIN ' . TABLE_CATEGORIES . ' c USING(categories_id) WHERE pd.language_id="' . PL_LANG_ID . '" AND c.categories_id="' . $id . '"' . PL_SHOW_PROD_INACTIVE . PL_SHOW_CAT_INACTIVE;
And it seems to work as expected. The products only show up in the master category.Code:$query = 'SELECT *';
//$query .= ' FROM ' . TABLE_PRODUCTS . ' p LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . ' pd USING(products_id) LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' pc USING(products_id) LEFT JOIN ' . TABLE_CATEGORIES . ' c USING(categories_id) WHERE pd.language_id="' . PL_LANG_ID . '" AND c.categories_id="' . $id . '"' . PL_SHOW_PROD_INACTIVE . PL_SHOW_CAT_INACTIVE;
$query .= ' FROM ' . TABLE_PRODUCTS . ' p LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . ' pd USING(products_id) LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' pc USING(products_id) LEFT JOIN ' . TABLE_CATEGORIES . ' c USING(categories_id) WHERE pd.language_id="' . PL_LANG_ID . '" AND p.master_categories_id="' . $id . '"' . PL_SHOW_PROD_INACTIVE . PL_SHOW_CAT_INACTIVE;
I would like to add a switch to the configuration for this, but it might take a while before I get to it :(
It does show on a default install, so I assume the logo file has been removed or something. I can not reproduce this issue. The file is called logo.gif and it normally can be found in one of the subdirectories of includes/templates/
Sorry, but it meant that I did not have a quick answer (and not much time to look into it). Note that the images and descriptions were added as a quick hack only.
About hiding the images within your descriptions: I took a quick look, but the pricelist images do not have a separate wrapper or class, so (indeed) css edits only won't work if your own images can't be identified either.
If you change this (in modules/pricelist/header_php.php)
to:Code:if(PL_SHOW_IMAGE == 'true'){
$prodRow .= zen_image(DIR_WS_IMAGES . $cats[$cat_index][$prod_index]['products_image'], '', PL_IMAGE_PRODUCT_WIDTH, PL_IMAGE_PRODUCT_HEIGHT);
}
The "pricelist images" will have their own class, and then you should be able to hide your own (and still display the pricelist images) using css.Code:if(PL_SHOW_IMAGE == 'true'){
$prodRow .= zen_image(DIR_WS_IMAGES . $cats[$cat_index][$prod_index]['products_image'], '', PL_IMAGE_PRODUCT_WIDTH, PL_IMAGE_PRODUCT_HEIGHT, 'class="imgPL"');
}
(Other changes to this same part of the code will probably be needed to change the layout to your needs.)
@paulm: Works like a charm! Thank you very much. :-)
Glad to hear it works, and thanks for telling :-)
I attached a new version to this post (will upload the the downloads section later, the attachement will be removed then).
Changelog quoted from the readme:
Some settings have been added to the admin configuration. The included sql will overwrite your settings, so it might be handy to make a note of your current settings before installing the sql (or add the new settings to you configuration table manually).Quote:
######################################
# price-list v1.43 2007/12/12 #
######################################
1) Several code changes in header_php.php file (optimized a bit)
2) Moved some pricelist template files from YOUR_TEMPLATE/ to template_default/ (should make fresh installs even easer than before)
3) Added imgPL class to products images
4) Added code to optionally use the master_categories_id (i.s.o. the linked cats). New admin setting: "Use master cats only" (PL_USE_MASTER_CATS_ONLY)
5) Added option to switch on/off price display New admin setting: "Price" (PL_SHOW_PRICE)
6) Improvement of the specials display if no valid date is found (also added a TEXT_PL_SPECIAL definition to the language file for specials without valid expiry date)
7) Modified sql install file to work around sql patch tool oddities (this change should prevent false duplicate key errors)
8) Added some basic debug stuff into the main_page file (only shown when debug is enabled, and even then it will not be printed on paper)
######################################
# price-list v1.42 2007/10/04 #
######################################
Added missing file:
/includes/init_includes/init_zen_group.php
(adding this file should fix the group feature)
Minor change to /includes/extra_functions/group_functions.php which may fix the group function issue with older (1.2.x) Zen Cart versions.
Another minor change to header_php.php to fix a TABLE_HEADING_ADDTOCART bug
I managed to get logo.gif to appear. The problem was my logo name has been changed to a different one.
I upgraded to the latest version. The header_php.php code has already been changed to what you asked me to change. So then I repeated putting img {display: none;} code at the aforementioned places. The same problem occurred. I can't get hide the images within the description and still display the pricelist images.
Also, how do I show partial description only as some of them are rather long? Is it possible to truncate them after certain length?
Thank you for your help :)
Yeah, I imagined some of the changes would be probably be usefull for me too some day, and then I got carried away and I decided to update after all :smile:
I do not see the new .imgPL class when I look at your site (so I assume the latest is installed elsewhere) but it should work like this:
Code:/* hide all images in .imgDescrPL */
.imgDescrPL img {
display: none;
}
/* make .imgPL images visible again */
.imgDescrPL img.imgPL {
display: inline;
}
By default the descriptions are truncated @media print only. Or actually the descriptions are not really truncated, but partially hidden (using css). The advantage is that the HTML (and thus the basic layout) of the descriptions is preserved this way. A disadvantage is that the descriptions are cut off without a "more info available" text (or somehing like that) that indicates they are cut off.
A problem with real truncating (which is not supported by the pricelist) is that you need to strip most HTML to keep the code valid, and to make sure it's really truncated to the required size you even need to strip all HTML and change the font to non proportional. And then the descriptions will become one long, usually almost unreadable, line.
Anyway I am note sure what you want and if I can help, but hopefully the above clarifies how it currently works and why.
I installed it as per the instructions but it doesn't work. One thing I did differently is that my site begins with Shop folder ...not ZenCart folder. I get several errors:
Warning: main(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /home/mccarthy/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 119
Warning: main(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /home/mccarthy/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 119
Fatal error: main(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mccarthy/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 119
Any body know what I'm not doing correctly?
:dontgetit
New install? Version?
New install of the module. Never been on there before. Have installed Canada post module, superorders module, & edit orders module successfully.
I run Zen-cart 1.3.7
My website is www.mccarthyhighland.com
I still still trying to figure out where to put this code because it doesn't achieve what I want. If this can be done, I will then want to truncate description. I believe this can be done. Standard zencart can show list all products this way, i.e. no images in description and truncated description.Quote:
/* hide all images in .imgDescrPL */
.imgDescrPL img {
display: none;
}
/* make .imgPL images visible again */
.imgDescrPL img.imgPL {
display: inline;
}
The following code might be useful to help us figure out how to make description truncated. It's taken from tpl_modules_products_all_listing.php. What do you think?
Code:if (PRODUCT_ALL_LIST_DESCRIPTION != '0') {
$disp_text = zen_get_products_description($products_all->fields['products_id']);
$disp_text = zen_clean_html($disp_text);
$display_products_description = stripslashes(zen_trunc_string($disp_text, 150, '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
} else {
$display_products_description = '';
}
Success! :) :) :)
Managed to achieve what I want.
- Display description without within images.
- Display truncated description with more info link at the end.
- Hyperlink thumbnail product image.
There is one more thing I would like to do...
Is it possible to show subcategories in the dropdown menu?
Sorry.
1.4.1
This is what I would like to figure out. Having the ability to populate the dropdown with the sub-cats would make this mod useful for me. My top-cats are so large I run into the memory problemQuote:
There is one more thing I would like to do...
Is it possible to show subcategories in the dropdown menu?
I did do that. Unless I have to put it somewhere else in my structure? I also replaced the word "zen-Cart" in the instructions with the word "shop".
Can I email you to continue with this? I'd prefer not posting some of the details of my shop online?
my email: office AT mccarthyhighland.com
Scratch that....works now. Quite nice! Very compact. Great job!
I forgot to copy the renamed folder up to the server.
Dohhh! Thanks for your help.
One issue though. Every second page printed is blank. The list continues uninterupted on the page after that. Why?
That is possible (by changing some lines of code). The only thing is that the categories that have subcats won't show products anymore then (the pricelist will just show the "no products found" message). So if you show the list to your customers that might confuse them.
@highlander2:
That happens when your available papersize height (height minus margins etc) is less than the height set in the stylesheet.Quote:
Every second page printed is blank. The list continues uninterupted on the page after that. Why?
Maybe I will release another update soon which will add an admin configuration for the subcategories dropdown and ad admin configuration for the paper height setting.
The only real solution to the memory problems is to get a limited number of products of course. But I am am not sure if/when I will get to that (a total rewrite would probably the best solution, the way this currently works is a mess...).
In my case we don't want to show the pricelist to customers. We want to use it to generate a hard copy catalog to take to shows. My sub-cats should be small enough to avoid the memory problem.
Special xmas edition :smartalec:
I am a bit in a hurry, so it might have last minute bugs. Please try on a test shop first and backup before install (as always...).
Remove or overwrite the old YOUR_TEMPLATE/pricelist/ files when upgrading!Quote:
######################################
# price-list v1.44 2007/12/20 #
######################################
1) Added "Printable page height setting" setting to admin
(Removed height setting from stylesheet file, added as in document style now depending on admin setting)
If every second page printed is blank this usually means you need to lower this value (depends on your paper size and margins etc).
2) Added "Category tree main cats only" feature setting
Depending on this setting the category dropdown will show main the cats only, or the whole category tree.
So now you can print all products in a main category + its subcats (like in older versions of the pricelist) OR all products in a subcategory.
3) Added "Specials" switch to admin
Now it's possible to switch of the Specials display. This will reduce the amount of queries dramaticly (4 queries per product less)
4) Added "Specials expiry" switch to admin
5) Added "Truncate descriptions" feature + admin config
+Lots of other changes
woops, that should say: price-list v1.5.0 2007/12/20Quote:
# price-list v1.44 2007/12/20 #
Thank you for the update on a great add-on.
Hi Folfs
Installed the mod
Can use the external link ie /shop/index.php?main_page=pricelist and it generates the price list.
However none of the configuration keys appear in Admin>Configuration.
Any clues?
Using
ZenCart 1.3.7
Mod 1.4.1
Thanks
I have installed the Price List (hey thanks Paulm! - excellent) and the appropriate listings appear under Configuration but when I go to http://www.example.com/shop/index.ph...page=pricelist
I get a Page Not Found error. What might be going wrong?
Iīm sorry, but i can not make any admin settings.
how can I make the settings about the admin tool ?
what must I do to find the settings in admin config? Iīve made no files in admin directory!
Can somebody help me please?!
At the moment Iīve made all changes in phpmyAdmin.
Thanks a lot
Lissy
Sorry...
Iīve a next question!
I donīt get the Link: echo '<br /><a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a>';
into my information.php. (in the Box from Information!!)
If i put the link on, the price list link is always stay outside the Box!
please, how tellīs me where the link must be setting for stay in the Box of Information?
Thanks a lot!
Lissy
I'll ask again cos I really need this thing to work ...
I have installed the Price List and the appropriate listings appear under Configuration but when I go to <.../shop/index.ph...page=pricelist> I get a Page Not Found error. What might be going wrong?
Anyone?
Hello,
When I set up an EZ-Page to display the price list in my cart using:
Open in new window = YES
Internal Link URL:= index.php?main_page=pricelist
And then I click on the link in my cart, it brings up the url:
http://www.Mydomain.com/catelog/inde...t="_blank
which brings up a page not found error.
Is this a bug?
Kind regards,
Anthony
This page is full of questions with no answers! Is there anyone out there that can support this contribution?
jenpen, Lissy73, and xman888 - It is far easier for those on the forum to help you if we can see your site to see whats going on. Please post your real URLS.
Jen - Posibile problems I can think of include that your zencart is not really in a "/shop/" directory and that your url is wrong. For most people it will be like mine; http://www.pezcollectors.com/index.p...page=pricelist
Also, the script could be timeing out, I have that problem sometimes when I have images turned on. Talk to your host to find out the correct way to change your script timeout settings. Also, make very sure that you uploaded ./languages/english/pricelist.php and that its in that directory, and not an override directory.
Lissy73 - I'm sorry, but I am having a very hard time understanding your posts. I can tell you that you should never install your SQL patches for mods in phpmyadmin. Instead you should open the .sql file in wordpad (NOT notepad), and copy all of the text. Then in your admin go to Tools, then Install SQL Patches, past the text into the box and hit send. Since you may have goofed the SQL patch, I suggest doing this with pricelist_remove.sql, then with pricelist-3.sql.
To add the link to your information box, edit the file ./includes/modules/sideboxes/NAME-OF-YOUR-TEMPLATE/information.php
After the linesAddPHP Code:
if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
}
xman888 - Can you view the pricelist if you go directly to the page? If not, try the same suggestions I gave jenpen. If you can, do the rest of your EZ-Pages work, and with the same settings?PHP Code:
$information[] = '<a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a>';
Hi gothstone,
sorry for my bad english!!! :-(
Thank for help with the php code itīs working now under Information.
I want to change this in my category box under "All products", where must this php code on?
I was trying the link from readme.txt :
And:
echo '<br /><a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a>';
to one of the the template files (depending on where you want the link to show up).
and it doesnīt work.
My Question in post before:
in readme.txt find this:
/****************************************************************************/
// Usage and Configuration
/****************************************************************************/
The pricelist settings should be available at the bottom of your "admin::configuration" screen now.
There is a main Price-list setting and there are several Price-list profile settings.
(If the admin DHTML menu does not show all the profiles, click on "configuration" at the top to use the alternative menu.)
I can not find the pricelist settings on admin->configuration !
Always i donīt want to have the head see picture:
http://www.dreamsofgames.de/images/test/bild4.jpg
Where can i do delete?
Lissy
Lissy73 - I compleatly understand how hard it is to post in another language, especialy when you have to include technical terms that don't translate. While I don't speak or write in German very well at all, I can read it; it may be easier for you to PM me in German.
Glad to hear its working in the information box now!
To have the link under All Products in the Categories box, edit ./includes/templates/NAME-OF-YOUR-TEMPLATE/sideboxes/tpl_categories.php
After the lines:
insert:PHP Code:
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
}
The link in the readme text is pure HTML. Thats fine when your are adding it to static content, but it you add it to dynamic php, you have to follow the structure of the php file you are adding it to.PHP Code:
$content .= '<a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a> . "\n";
I tried to manualy go to your pricelist on your site, it was not found. I suggest, as I did before, running the pricelist_remove.sql, then running the pricelist-3.sql. Then you should reupload all the files in the mod. If you still can't see the configuration for pricelists in admin, go to tools, admin settings. Does your user have a yellow P beside it? If so, you have admin profiles installed, and you need to click on that P and give yourself permission to configure pricelists by checking it under Third Party mods.
I'm not sure where your are seeing that header, it can probably be turned off in the configuration for pricelists.
I looked at your site. While it has a great look, your scrolling images in the specials and new products sideboxes are causing major problems. Your site cannot even be seen in firefox. I would highly suggest you only work on one mod at a time, get it working, and don't move to the next untill its compleated. One error will spawn several more. Good luck! :cool:
Gothstone, thank you!
My Zen Cart is currently hosted locally on my machine so that link was the actual link. Might this be the problem?
Hello gothstone,
I figured out a solution to my problem:
"Hello,
When I set up an EZ-Page to display the price list in my cart using:
Open in new window = YES
Internal Link URL:= index.php?main_page=pricelist
And then I click on the link in my cart, it brings up the url:
http://www.Mydomain.com/catelog/inde...t="_blank
which brings up a page not found error.
Is this a bug?
Kind regards,
Anthony "
The problem was is that it is adding "="_blank " to the end of the link.
I instead put in the full url into the External Link Url, and it doesn't do this, therefore it works perfectly.
Kind regards,
Anthony
Jen - its hard to say. If you are running linux, and have realy named your system example.com, then it should work perfectly. If you are running windows useing something like apache2triad, you will find strange problems frequently. I would suggest useing a real server for your development, preferable the host you intend on using, as different host configurations can make a difference in how your site works. For instance, I just moved hosts (the old one went from wonderfull to absolute hell in the last year) to camalot hosting. While I love my new host, their configuration prevents me from using php overides in .htaccess files, so I had to rethink a few things. Also, it your dev site it on a real server, we on the forum can look at it, making it much easier to help with most problems.
xman888 - Glad to hear you got it working!
Hi,
I want to upgrade to the latest version but not sure how to. I did some customization on the current version I am using now and don't want to lose them. Please advise. Thank you.
after I have installed pricelist (last rev.1.5.0) on 1.3.7 I have this message:
Warning: Variable passed to each() is not an array or object in /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start() [function.session-start]: open(SESSION_WRITE_DIRECTORY/sess_da83da7b42932237cafd2ecf9e92787c, O_RDWR) failed: No such file or directory (2) in /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/functions/sessions.php on line 108
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/classes/db/mysql/query_factory.php:114) in /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/classes/db/mysql/query_factory.php:114) in /home/ujrctznj/domains/sospcshop.com/public_html/store/includes/init_includes/init_templates.php on line 78
Warning: The sessions directory does not exist: SESSION_WRITE_DIRECTORY. Sessions will not work until this directory is created.
ERROR! Profile does not exist, loading default Profile instead. (PL_DEFAULT_PROFILE)
Zen Cart! Printable Price List
Displaying 0 products, click on the links for detailed product information.
No products or categories match your query, please make another selection.
Warning: Unknown: open(SESSION_WRITE_DIRECTORY/sess_da83da7b42932237cafd2ecf9e92787c, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (SESSION_WRITE_DIRECTORY) in Unknown on line 0
and the only way to work is to uninstall the pach !
can someone help me ?
thanks !
Thanks for the nice mod.
I installed it but got some problems.
I use 3 languges on my site english, finnish and sedish.
All proifiles are enabled, but only profile 1 is shown and that only in english language.
The all other profiles or languges I get statement that I dont have right to see the list even when loged in.
Well I do have admin_profiles_v1_0_6 module installed, but not sure if that is causing the problem?
Can somebody help me?
marksu
I forgot also to mension that I did mark checkboxes on admin setttings
Printable Price-list
Price-list Profile-1
Price-list Profile-2
Price-list Profile-3
that did not help.
marksu
Marksu,
I made the same mistake. Marking the boxes in Admin Profile is not enough. You need to go into Price-List Profile-2 and Price-List Profile-3 in the Admin>Configuration menu and remove the Group Name setting. When it is blank then everyone can see the profile. It is used to restrict the Price List to only members of a Group which you set up in Admin>Customers>Group Pricing. (You can set the discount to 0% for the group.) Then add a customer to the group and they can see the catalog profile you selected.
Hope this helps
PaulM,
I know you said you didn't really have time to support this mod for all the requests you've had, but there is one which seems quite critical. The majority of products in my catalog are "priced by attribute" because they come in various sizes or forms.
Can you give me any direction as where to begin looking if I want to try to adapt this mod to show attributes and their prices and weights within a product listing?
BTW, I think you've done a great job on the current version
@marksu: if you can post or PM a link I will take a look at the language issue
@mauryg: sorry, I can not help with attributes. I think the pricelist main code (big parts of includes\modules\pages\pricelist\header_php.php) would have to be rewritten first, which is very unlikely to happen soon. And even then I am not sure about adding attributes support.
Correct. The readme may not be very clear about this because in older versions the lists were available to everyone by default.
I'm missing something.....
Great MOD love it, this is even better than the first version!
Since updating zen and installing the new version my logo etc don't print (they don't appear in the preview either?? both are turned on. The footer prints.
Would appreciate it if anyone has a suggestion.
thanks www.platypusscreenprinting.com.au
link is in the 3rd box, last item
Thanks in advance!
sorry should add the header and footer are turned "on" in the pricelist profile pages and the footer prints, just not the header.
Printing on A4 but think it is a margain/page size issue. I have played with the sizes under admin with no luck
Hi all !
I have installed the latest version . All is ok but truncate descriptions function doesn't work.
I set different values but nothing changes.
Even if "Trucate description =0" the descriprion is truncated always in the same place
What's wrong ?
Thank you in advance
Mauro
Has anyone ever figured out how to setup the pricelist to print correctly on letter size paper (8.5in x 11in)??? I've played around with the settings but nothing seems to work...
thanks.
Check the settings for your printer when it goes to print. There is often a check box for "fit to page" or something similar. It might be under advanced settings or something like that.
My printouts fit very nicely onto letter size paper, are clearly readable, and I've never modified anything.
Thanks for the reply. When I select print preview in IE7. And choose shrink to fit, the top of the second page appears on the bottom of the first page.
This happens on every page I view and it progressively moves up so the top of the page moves up the page until it starts over again about page 11.
Thanks.
Hi all,
I'm really sorry to have to post this because I'm sure there is someone else who has asked it before...
I have no background with SQL things and so far I've learnt alot about various aspects of the whole ZenCart package and my website works really well (after many months of "learning" I should add.)
Anyway... I'd really like to add this mod successfully first time... rather than fiddle with it in the wrong way and guess things...!! I've loaded the first sql item (pricelist-3.sql) and its showing up under the admin: config: (1,2,3) area.... but the part that loses me is:
(from the readme)
Use the zen sql tool (admin=> Tools :: Install SQL Patches) to load the sql (copy and paste into the text area, do NOT use the file upload feature!).
In rare cases the tool does not work, use phpMyAdmin in those cases (think about adding the table prefix if needed).
---------
What do I put into this tool to load the sql?!! Is there a standard text somewhere for loading the sql?
I've done sql patches before - I understand the idea of it but I've got no clue what to type in to actually execute this requirement.... I've always used the patches included with the documentation...
I'm sorry to have to ask, I feel quite stupid, but I've gone through a lot of the 29 pages worth of support and didn't see someone else ask - and I only have SO long to sift through the threads....
Thanks guys...
Kristan
Its real simple....open the sql file in notepad, then select all and copy. Goto to the spl patch tool in the admin and paste the code you just copied and hit send. Thats all there is to it.
Thank you very much...
You know I half-wondered if thats all it was, but as I said in my original post, I didn't want to do anything wrong in the first place to stuff it up!!
Thanks again
Kristan.
Has no one else experienced this?
What settings are peope using for US letter size?Quote:
Select print preview in IE7 and choose shrink to fit, the top of the second page appears on the bottom of the first page. This happens on every page and it progressively moves up ( top of the page moves up the page until it starts over again about page 11)????
Thanks.
@gsdcypher:
Yep, i had this problem as well.....
I am using the Pricelist Profile-1.
Don't know if it is something to do with IE7 or not.....but my fix was to change the 'Printable Page Height' to 26.5cm.
I have a feeling it is something to do with 'Shrink To Fit' changing the size of the tables - but this worked for me. Give it a go and see.......:smile:
Hey guys, great MOD and the options for expansion on it are remarkable.
My question for the guru's above is this: is it possible to add an extra field that has the ZenCart ID for the item (Not the Model No, you enter that manually...i mean the number ZenCart allocates) ???
Also, i couldn't see anywhere a fix for the 'Log in to see prices Issue'....Has anyone found a fix for this?:blink:
Thnx
I forgot to mentiion that while I do have my printer settings set to "shrink to fit" and everything fits nicely onto letter sized pages for me, I do get 1 blank page after every printed page. Strangely....the page numbers are still correct on the printed pages though.
Has a fix been discovered to print on letter sized paper?
It sounds as though you may have the checkbox for start each category on new page, and maybe some additional space has been added to the bottom of each category causing it to fall onto a new page.
check the code to see if any additional <br>'s or <p>'s are there that aren't neccessary.....
also check that in your printer settings you dont have a tickbox called 'seperator page' ticked. That will also cause this problem.
For US letter size you should actually decrease this value (from the default 25.5cm). I think approximately 9inch (or 23.5cm) should be the value (? 11inch minus 2x1 inch margin).
The 'Printable Page Height' setting forces the page break. And if its value is slightly higher than the height available for printing this page break will make your printer output a second (ususally blank) page following every page.
I am not sure about how "Shrink to fit" influences this. It may sometimes compensate for a wrong setting of course.
The products_id? That's easy.
I attached a modified version of:
includes\modules\pages\pricelist\header_php.php to this post. I think it's possible to copy over an existing 1.5 version (it's actually a file from a 1.5.1 beta version). THe products id should be listed after the file is copied over the original pricelist header_php.php file.
At the the top of the file you can find these two lines:
Of course these definitions should actually be moved to the database settings and language file.PHP Code:
define('PL_SHOW_PRODUCTS_ID_1', 'true');
define('TABLE_HEADING_PRODUCTS_ID', 'id');
Make sure you have a backup of your version of the file at hand, so you can quickly restore it if needed!
No time to look at the 'Log in to see prices Issue' now though. I guess it would not be very difficult.
I have been using this program quite successfully on my site www.bobkatgifts.net - I use the default of http://www.bobkatgifts.net/index.php...page=pricelist - recently I added Magic SEO URL to my site and now my Printable Price list gives the user a Error 500 - Internal Server error. Does anyone have any ideas or a suggestion on how to fix this. I am using version 1.5. Do I need to re-install anything? Thanks for your help.