New Zenner
- Join Date:
- Jan 2007
- Posts:
- 45
- Plugin Contributions:
- 0
Post #61 by troy77
Hi thanks for the quick reply, the US settings wont matter to me, i am in the uk.
Ill av another look round it, see if i can figer it out.
thanks again
New Zenner
Hi thanks for the quick reply, the US settings wont matter to me, i am in the uk.
Ill av another look round it, see if i can figer it out.
thanks again
Totally Zenned
Aha, wrong assumption here then :-)
Maybe your margins are larger than mine? And you can still edit the same settings of course, as you probably understand.
Note:
I have decided to upload price-list_v1.3-pre2.zip to the zen downloads section after all. I think it's better to use price-list_v1.3-pre2 than any of the previous versions.
New Zenner
Yes i would agree, i downloaded the 1 on page 2 is that the right 1? as it says its unfinished maybe thats why im having probs.
Its odd really because it looks perfect until you go to print preview.
But still great mod, im not very good at coding but ill have a look around it.
Totally Zenned
troy77:
i downloaded the 1 on page 2 is that the right 1? as it says its unfinished maybe thats why im having probs.That is the right one. I think it's better than any of the older versions and I don't think your blank page problem is related to the version.
That it looks ok on the screen, but inserts pages when printing, isn't strange when you know the cause.
The contrib includes CSS code to start a new printing page when a page is finished (this prevents the next page to start on the previous when the previous page is not full yet). It also includes CSS which sets the height when printing (this allows you to print a footer at the bottom). If the height (+ margins) do not fit the paper the printer will start a new page (which will probably be blank, only if the CSS height exceeds the paper a lot your footer might be printed on it).
So if the total height (height set in the CSS + margins set in your browser) does not fit your paper, both the CSS and printer will start a new page, and a "blank page" is inserted (so this "blank page" is actually just a couple of mm of the bottom of the previous page).
Totally Zenned
So the idea is that the PHP script decides when a page is full (after printing x number of rows), then it inserts a CSS class (.pagePL) which forces a new page to start. This new page should start just before your printer decides that the page is full. If it starts a new page after the printer does, extra (blank) pages will be the result.
This is the CSS that tells the printer to start a new page (unless it's the first page):
.pagePL
{
page-break-before: always;
}
#pageOnePL, .pageOnePL
{
page-break-before: avoid !important;
}
```(note: Do not change this! Only telling this because I can't stop talking! :smartalec: )
Totally Zenned
I just removed the attachement form this thread because it's available at the Zen Cart downloads section now.
So for the latest version (which (still) is v1.3-pre2) goto: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=276
New Zenner
Great stuff, i have to say this is the best mod ive installed to my zen cart so far.
Thanks again
New Zenner
Oh yeah and before i forget the blank page thingy i was on about only does it in mozilla not IE
Totally Zenned
troy77:
Oh yeah and before i forget the blank page thingy i was on about only does it in mozilla not IEThat is possible. Some sizes differ a bit between those two browsers (if I remeber well line-heights are never exactly the same). And of course page margin settings may be different too. I always use Mozilla FF myself, only check IE to see if things work in IE too.
So once you got it right in Firfox you will probably waist a little space at the bottom when using IE.
New Zenner
This may have already been covered, but is there anyway to change 1 profile so it is just a list without the pictures? I don't need the pics and discription as an inventory list, but it is nice for my customers to have pics.
Totally Zenned
Hi hdonald,
can you try the attached price-list_v1.3-pre3 version?
It's untested (I only tried the new sql), so it might have typos/parse errors. Only the sql install file, header_php.php and the extra_configures/pricelist.php config have changed since the previous version (the old config file should be removed or overwritten).
If it works you should be able to set it through the admin now. Please let me know how it goes!
New Zenner
Thank is just what I am looking for, but now I can't get the price list to display. Any thoughts on that one?
New Zenner
Never mind, my own fault. It works great! This is perfect for what I need.
New Zenner
I have installed v1.3.7 on Zen Cart v1.3.7. I get the followinf error.
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.
Something I missed ?????
Totally Zenned
Something I missed ?????
Did you paste the sql into the Zen admin sqltool box, and submit?
New Zenner
Yes ..... Sure did. I will remove and install again, this time through MyAdmin .... see if that makes a difference.
New Zenner
Still no go ..... I think I will leave this one in the hard basket ..... to many other things to do.
Totally Zenned
Don't forget to add your zen db prefix then! (if any)
By default the default profile is 1 and it (PL_DEFAULT_PROFILE) should be defined by this setting in the admin (admin: configuration: pricelist settings):
Default Profile 1
Which pricelist version is it that you installed? On which Zen Cart version?
edit:
to many other things to doThat reminds me! :-)
Totally Zenned
And again another unexpected update :smile:
To make this mod usefull again for myself I have added a feature that makes it possible to show the lists only to customers that belong a certain "pricelist group".
If a group name is entered, the list will be shown only when the customers groupname starts with the name you entered (using the Zen Cart group pricing feature (at: admin|customers|group pricing)).
A group name setting has been added to the admin for each profile.
changed files:
pricelist-3.sql (includes removal of old settings now too)
includes\templates\YOUR_TEMPLATE\pricelist\tpl_main_page.php
includes\modules\pages\pricelist\header_php.php
new:
includes\extra_functions\group_functions.php
And the languages file has changed and moved from languages/english/extra_definitions/ to languages/english/ (I think it ended up in the extra_definitions/ folder by mistake). So don't forget to (re)move your language file too, to prevent possible confusion.
File attached to this post (will be removed again when/if uploaded to the Zen downloads section).
(edit: should work on 1.3.6 and 1.3.7)
Totally Zenned
Woops, the new file should be added to:
includes\functions\extra_functions\group_functions.php
(not to: includes\functions\group_functions.php)
Other than that it seems to work fine :-)
Tell staff why this post should be reviewed.