Forums / All Other Contributions/Addons / Printable Price list :: support thread

Printable Price list :: support thread

Views: 232,326

Results 61 to 80 of 739
4 Apr 2007, 9:03 PM
#61
troy77 avatar

troy77

New Zenner

Join Date:
Jan 2007
Posts:
45
Plugin Contributions:
0

Printable Price list :: support thread

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

4 Apr 2007, 9:14 PM
#62
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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.

4 Apr 2007, 9:45 PM
#63
troy77 avatar

troy77

New Zenner

Join Date:
Jan 2007
Posts:
45
Plugin Contributions:
0

Re: Printable Price list :: support thread

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.

5 Apr 2007, 8:03 AM
#64
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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).

5 Apr 2007, 8:15 AM
#65
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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: )
5 Apr 2007, 10:31 AM
#67
troy77 avatar

troy77

New Zenner

Join Date:
Jan 2007
Posts:
45
Plugin Contributions:
0

Re: Printable Price list :: support thread

Great stuff, i have to say this is the best mod ive installed to my zen cart so far.

Thanks again

5 Apr 2007, 11:42 AM
#68
troy77 avatar

troy77

New Zenner

Join Date:
Jan 2007
Posts:
45
Plugin Contributions:
0

Re: Printable Price list :: support thread

Oh yeah and before i forget the blank page thingy i was on about only does it in mozilla not IE

5 Apr 2007, 12:26 PM
#69
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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.

11 Apr 2007, 2:01 PM
#70
hdonald avatar

hdonald

New Zenner

Join Date:
Oct 2006
Posts:
32
Plugin Contributions:
0

Re: Printable Price list :: support thread

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.

11 Apr 2007, 3:36 PM
#71
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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!

11 Apr 2007, 4:44 PM
#72
hdonald avatar

hdonald

New Zenner

Join Date:
Oct 2006
Posts:
32
Plugin Contributions:
0

Re: Printable Price list :: support thread

Thank is just what I am looking for, but now I can't get the price list to display. Any thoughts on that one?

11 Apr 2007, 4:55 PM
#73
hdonald avatar

hdonald

New Zenner

Join Date:
Oct 2006
Posts:
32
Plugin Contributions:
0

Re: Printable Price list :: support thread

Never mind, my own fault. It works great! This is perfect for what I need.

12 Apr 2007, 5:03 AM
#74
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Re: Printable Price list :: support thread

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.

No products or categories match your query, please make another selection.

Something I missed ?????

12 Apr 2007, 7:32 AM
#75
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

Something I missed ?????
Did you paste the sql into the Zen admin sqltool box, and submit?

12 Apr 2007, 8:09 AM
#76
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Re: Printable Price list :: support thread

Yes ..... Sure did. I will remove and install again, this time through MyAdmin .... see if that makes a difference.

12 Apr 2007, 8:21 AM
#77
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Re: Printable Price list :: support thread

Still no go ..... I think I will leave this one in the hard basket ..... to many other things to do.

12 Apr 2007, 8:25 AM
#78
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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! :-)

12 Apr 2007, 1:11 PM
#79
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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)

12 Apr 2007, 1:33 PM
#80
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Printable Price list :: support thread

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 :-)