If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Pricelist For Printing

Pricelist For Printing

Locked

Started by paulm on 8 Jun 2004, 10:44 PM · Views: 48,373

Results 61 to 80 of 326
This thread is locked. New replies are disabled.
19 Nov 2004, 6:47 PM
#61
paulm avatar

paulm

Totally Zenned

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

Pricelist For Printing

Hi IanEtche,> IanEtche:

would you or anyone else be interested in a mod for showing descriptions in the listing?thanks very much for the offer, it looks graet! Maybe it could be integrated sometime, but I am not interested at this moment. I am currently trying to set my mind to another project.

But you are free to create your own version, and upload it yourself of course! I will only do the small update for now (probably tonight).

Note that there is a problem with descriptions and page printing, as you probably noticed. With the current price-list it's very easy to make the prints allways fit the pages, but if you add descriptions I think that it will become almost impossible or at least very difficult.

(B.t.w. I'm using something alike: http://www.panda.nl/pricelist.php?category...ry=66&profile=4
only this version uses the full description and prints a thumbnail too)

19 Nov 2004, 9:37 PM
#62
duwane avatar

duwane

Zen Follower

Join Date:
Aug 2004
Location:
Auckland, New Zealand
Posts:
120
Plugin Contributions:
0

Re: Pricelist For Printing

Before you package it up let me do some testing, as I have already found another minor problem. The currency symbol is now not displaying for items not on special. I am sure it is something small and will have a look at it now and post my findings.

19 Nov 2004, 10:12 PM
#63
duwane avatar

duwane

Zen Follower

Join Date:
Aug 2004
Location:
Auckland, New Zealand
Posts:
120
Plugin Contributions:
0

Re: Pricelist For Printing

OK. I added this code to includes\module\pages\pricelist\header_php.php

if (($_GET['currency'])!=NULL) {
$current_currency = $_GET['currency'];
}
else {
$current_currency = $_SESSION['currency'];
}
define('PL_CURR_SYMBOL', $currencies->currencies[$current_currency]['symbol_left']);

Add it up the top before the function declarations, and also get rid of the define of 'PL_CURR_SYMBOL' later on in the script and it all works again.

I will keep testing and see if I can find any other problems.

19 Nov 2004, 10:25 PM
#64
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi duwane,

duwane:

Before you package it up let me do some testing oops, I already uploaded the new version :rolleyes: (will take some time before it's really available though)

Thanks for testing and the currencies fix!
If you like I can mail the 1.02 version to you, so you can test it i.c.w. your latest fix.

22 Nov 2004, 9:58 PM
#65
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi duwane,

thanks again for the currencies fix, it works very well!

I did make some small changes though. Yes you may call me pigheaded (if that's the right English word anyway) :)

In "includes\module\pages\pricelist\header_php.php"
Before (approx line 188):

define ('PL_CURR_SYMBOL', $currencies->currencies[$currency]['symbol_left'] . $currencies->currencies[$currency]['symbol_right']);

add:

// begin register globals mod
if (isset($_GET['currency'])) {
$currency = $_GET['currency'];
}
else {
$currency = $_SESSION['currency'];
}
// end register globals mod

So line 188 itself remains unchanged now.

I noticed my last upload isn´t available yet, so I will asap add the currencies fix and upload as v1.03

25 Nov 2004, 12:54 PM
#66
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

paulm:

I noticed my last upload isn´t available yet
Uploaded and mailed a couple of days ago, still waiting :(

I will put a temporary link in my signature for version 1.03 until it's available at the zen-cart.com downloads section.

So for the latest version see my signature below.

28 Nov 2004, 12:49 PM
#67
crusader avatar

crusader

Zen Follower

Join Date:
Jun 2004
Posts:
98
Plugin Contributions:
0

Re: Pricelist For Printing

Tkanks a lot Paul for making such nice and needed contribution ::tup . I downloaded version 1.03 from ZC an it works fine with ZC 1.2.2d. I have two questions.

  1. Included readme file mentions a choice of 3 or 8 profiles. SQL file with 8 profiles isn't included in the package. How can I get it?

  2. The layout I need for printing is Manufacturer, Product Code (Model), Product Name, Price without VAT, Price with VAT. Is this one of the ready made profiles? If not how can I make such layout?

28 Nov 2004, 6:49 PM
#68
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Crusader:

I downloaded version 1.03 from ZC an it works fine with ZC 1.2.2d. :) Thanks, I wasn't completely sure about 1.2.2d, didn't have time to test it yet.

Originally posted by Crusader@Nov 28 2004, 12:49 PM
**1. Included readme file mentions a choice of 3 or 8 profiles. SQL file with 8 profiles isn't included in the package. How can I get it?**updating the 8 profiles file took too much time, so I dropped it (but I forgot about the readme)

Crusader:

  1. The layout I need for printing is Manufacturer, Product Code (Model), Product Name, Price without VAT, Price with VAT. Is this one of the ready made profiles? If not how can I make such layout?You can set it under the configuration :: pricelist settings in your zen admin.
28 Nov 2004, 11:03 PM
#69
crusader avatar

crusader

Zen Follower

Join Date:
Jun 2004
Posts:
98
Plugin Contributions:
0

Re: Pricelist For Printing

Here is my suggestions and questions if you decide to add some features in your spare time.

  1. I can set in configuration what is displayed but I cannot change the order of columns. I understand that I have to shuffle some code probably starting at line 466 in header_php.php. I tried but it didn't work. I have no knowledge of PHP whatsoever. Maybe in the future you could do a switch in the admin that way:

We have 9 variables in your code:

  1. Product
  2. Model
  3. Manufacturer
  4. Weight
  5. Stock
  6. Notes A
  7. Notes B (btw: what are these notes?)
  8. Price with Tax
  9. Price without Tax.

Putting let's say: 321985467 and switching notes A, B and Weight off would give me: Manufacturer, Model, Product, Price without tax, Price with tax.

  1. logo.gif is hardcoded in pricelist_header.php. I would suggest to move it to css so someone can choose a logo that is better for printing purposes.

  2. With ZenCart 1.2 you can set your own sort order within categories for products. Is it possible to achieve same sort order on a pricelist?

  3. What is max columns switch for? I tried different values then default 2 but it seemed to have no effect on display.

  4. When switching "All categories default" to off no products are shown. What is this switch for?

Sorry for being such a pain. This is really great contribution. I just hope to use it to its full potential.

29 Nov 2004, 8:41 AM
#70
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi Crusader,

  1. I've considered to add a feature to sort the columns. I even have got some example code from Carine, so it shoulden't be to difficult. The only thing I need now, is some spare time <_<

  2. I know, and it should be fixed, but I'm still not sure what the zen-way would be to code it right. I was hoping for someone else to fix it :)

  3. Of course it's possible. If I didn't have a family, and a business to run, I would probably do it right away :)

  4. The max columns setting indeed is a bit confusing, maybe I should have called it "max tables next to each other"?. But if you have some more products per category for example, the pricelist will print multiple tables next to each other (=the max columns), which will save a lot of printing paper. Depending on what data you're printing, and the width of the printing paper, printing only one column of tables per page would be a terrible waist.

  5. Setting "All categories default" to false will reduce memory usage (prevent memory overflow) and speed up the price-list a lot, if you have a lot of products divided over several categories. By default the list will be empty then, but if you select a category, it should print all products inside this category.

**Sorry for being such a pain.**You're not, I like the feedback. And most ( :D ) of your questions are valid.

30 Nov 2004, 12:56 AM
#71
tehbizness avatar

tehbizness

New Zenner

Join Date:
Nov 2004
Posts:
24
Plugin Contributions:
0

Re: Pricelist For Printing

I had this working before, but then out of the blue I got a Call to undefined function: display_price_nosymbol() in /home/xxxxx/public_html/zen-test/includes/modules/pages/pricelist/header_php.php on line 524

And I looked everywhere for that function and it is indeed non-existant, what should I do?

30 Nov 2004, 10:44 PM
#72
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

tehbizness:

I looked everywhere
you shouldn't look everywhere. Just in you zen cart dir, and if it's not there, in de price-list files. The price-list replaces includes/classes/currencies.php, and the function "display_price_nosymbol" should be in your currencies.php file.

29 Dec 2004, 12:18 PM
#73
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Paul,

Thanks for the great contrib!!! ::tup ... and the continued support throught the thread!

I had a quick peek at your site

(B.t.w. I'm using something alike: http://www.panda.nl/pricelist.php?category...ry=66&profile=4
only this version uses the full description and prints a thumbnail too)

and really liked the look of your pricelist! Not sure of the protocal here... asking for someone elses code... but I was wondering if I could grab the code for the pricelist? If I am out of line, just let me know and I'll pull my head in! ::bsh

Although I don't need the thumbnails, I really, really could use the attributes listed (I am no PHP guru - it's just taken me 15 mins to work out how to swap the product and manafactures fields around! - I would not even be able to start bringing in the attributes).

Cheers!

Kelly-Anne

29 Dec 2004, 10:49 PM
#74
crusader avatar

crusader

Zen Follower

Join Date:
Jun 2004
Posts:
98
Plugin Contributions:
0

Re: Pricelist For Printing

I asked someone to swap the columns for me in the code and have mine here:
http://www.palmtops.com.pl/index.php?main_..._page=pricelist

I didn't have time to change the css yet so didn't add link for customers to categories yet.

The idea with the description is quite good in fact though in my case it would display nearly the same as my Product Listing which has been harcoded for me by a coder.

30 Dec 2004, 10:50 PM
#75
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

CabernetCat:

Not sure of the protocal here... asking for someone elses code...no problem to ask at all :) Only I don't have any "ready to use" code for you I'm afraid, because my cart still isn't zenned (it took me lots and lots of time and energy but my other cart is quite close to my ideal cart now, zen-cart came just a little to late for me :( ).

CabernetCat:

I really, really could use the attributes listedThat would be quite a problem for me too. Or do you mean products descriptions?

The main reason I didn't add the products descriptions in the first place to the zen price-list, is that I would not know how to do it properly. The idea (or at least my idea) with the price-list is that it should print the required information, fitting nice and easy on paper. And products descriptions make that task (almost?) impossible.

Again I don't have much spare time myself at the moment but if anyone is interested, here is a link to the latest osc version (for as long as it will last) You can NOT use it as it is, but it might help to add some of the functionality to the zc version.

31 Dec 2004, 12:17 AM
#76
cabernetcat avatar

cabernetcat

Zen Follower

Join Date:
Dec 2004
Location:
Victoria, Australia
Posts:
145
Plugin Contributions:
0

Re: Pricelist For Printing

Howdy guys,

Thanks for the replies. I will check out the osc version in the new year. If I can get it working I'll let you know (don't hold you breath... it may take some time :rolleyes: )

From looking at the pricelist on your site, I assumed that all the product details were attributes... but you refer to description, so all that detail is in your description field? PC's - catalog

Kelly-Anne

31 Dec 2004, 8:42 AM
#77
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi CabernetCat,

now I see what you mean. That could (or even should?) have been attributes, but it's not, it's all description. Actually we sell those for 99% at our "real" store, and then you they are sort of attributes/options (options and attributes are the same thing aren't they? (English is not my native language)) but not in our webshop.

Maybe I will give the column sorting a shot next year, but as you say, don't hold you breath... :)

31 Dec 2004, 10:12 AM
#78
ianetche avatar

ianetche

Zen Follower

Join Date:
Aug 2004
Posts:
138
Plugin Contributions:
0

Re: Pricelist For Printing

Hi All

I am not sure if it is what is wanted or not, but I included a description field in an earlier release (see my last post here for an idea of the work others have done since I did this and the amount of integration that would need to be done). You can see it working at http://www.premier-proms.com/index.php?mai...194e813dac13487 . From memory I included a field in the price list parameters which sets how many characters to show from the description field - I think mine is currently set to about 100. If this is of any interest, let me know and I will post or upload or send to someone by email depending on what is preferred.

Happy New Year to All

Regards, Ian

6 Jan 2005, 6:25 AM
#79
ghostcorps avatar

ghostcorps

Zen Follower

Join Date:
Aug 2004
Posts:
398
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Paul

I have followed your instructiones many pages back.. but am still seeing the pricelist links in he dropdown (see pic)

I have run the remove script a few times already, and cannot see the pricelist scripts in mySQL. Do you have any suggestions how I can remove it?

the reason being that I have had trouble transporting the pricelist when I moved the site.. so I am trying to remove the pricelist completely and reinstall it.

Sometimes the best advice is to tell me I'm not thinking about the problem enough.
FleshMetal.com.au

6 Jan 2005, 6:53 PM
#80
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Pricelist For Printing

You're on the right topic but not on the right page. ;)

http://www.zen-cart.com/modules/ipb/index....topic=5405&st=8

You will find ' all relevant SQL statement ' readings regarding the price-list entries. ;)