Zen Cart Logo
Forums / All Other Contributions/Addons / Pricelist For Printing

Pricelist For Printing

Locked

Views: 48,091

Results 1 to 20 of 326
This thread is locked. New replies are disabled.
8 Jun 2004, 10:44 PM
#1
paulm avatar

paulm

Totally Zenned

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

Pricelist For Printing

The Pricelist for printing contribution is as good as ready.

Main features are:- Enables easy page printing

  • a4 portrait stylesheet included
  • a4 landscape stylesheet included
  • easy number of rows and columns setting (admin)
  • printing controlled by css
  • select product info to print through admin (manufacturer, model, weight etc)
  • prices including and excluding tax
  • special prices
  • profiles switchable through admin and url
  • profiles configurable through admin
  • extra notes fields (optional)
  • and more?!
    Sounds great? B)
    There is a downside: I don't know all about zen-cart yet and this price-list has a lot of new features compared to the "old" osC version, so I hope someone will volunteer to beta test before it's uploaded. So send me a PM if you want to help (but never for free personal support).

If I don't find a beta tester, it will be uploaded within a couple of days too, but there will probably be a few more bugs and alike issues then.

17 Jun 2004, 8:41 AM
#2
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Uploaded yesterday, just waiting for approval.

Demo (probably temporary):
http://www.televisiedokter.nl/zencart/inde..._page=pricelist

Unfortunately there are some problems with some of zen's special pricing features, other than that everything seems to work fine. Maybe someone who's knows more about the special pricing would like to help a litte?

9 Jul 2004, 7:30 PM
#4
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

kelvyn:

This contrib and the site map certainly make great "spider food".Yes, it's originally made to be a printable price-lists, but indeed it's also a handy all products page with quick links to all product_info pages.(and a.o. the notes fields make it a printable inventory list too, i.e. to check your real stock once in a while)

Originally posted by kelvyn@Jul 9 2004, 02:48 PM
**profiles 4+ "falling off" the bottom of the screen in admin (perhaps a flyout, instead of a continuation?).**noticed that but I couldn't find an easy solution, and I would not know how to create a fly out for it. Actually it's more a zen-cart DHTML menu problem I suppose, or even a general DHTML menu problem. One of the reasons I don't use DHTML menues myself.

Originally posted by kelvyn@Jul 9 2004, 02:48 PM
*and profile 3 saying ```
"language = english :: colspan = 8 :: stylesheet (printing) = profile-x ::
profile = 3
:: columns = 2 :: maxLines = 20 :: debug = true :: noWrap = true :: showTaxFree = true :: showModel = true :: showInactive = true :: mainCatsNewPage = true :: "



> **kelvyn:**
>
> BUT - profile 5 works fine for me and does exactly what I want. Many thanks again.I assume that it's clear that if profile 5 does what you want, you can make any of the profiles do what you want. All profiles have exactly the same admin configurable options.

Anyway I'm glad you like it's always nice to have some feedback :)

Note: I forgot to mention in the announcement that this contribution would never had become what it is now without the help of Carine! We developed the osC version together, so this is partly a translation of the osC version, allthough the zen version was the first public version with profiles.
26 Jul 2004, 10:38 PM
#5
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Pricelist For Printing

Thanks very much for making this mod available Paul, it's excellent!

Just one (very small) suggestion: could the pricelist be opened in a new window maybe?

At present you need to use the back button on the browser, which some customers may not think of using and so may give up (unless I'm missing something...?)

The install info perhaps also needs to mention adding a define to the english.php file:

// printable catalogue mod
define('CATEGORIES_BOX_HEADING_PRICELIST','Printable Catalogue ...');

(Again, unless I'm missing something...) :)

Thanks again for a brilliant mod

Dave

6 Aug 2004, 12:09 AM
#6
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Pricelist For Printing

Has anyone got this to work with v1.2? I am having all kinds of errors with this.

10 Aug 2004, 9:12 PM
#7
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi,

thanks for the positive response! I'm very glad you like it :D

@Pixxi

Pixxi:

Just one (very small) suggestion: could the pricelist be opened in a new window maybe?

At present you need to use the back button on the browser, which some customers may not think of using and so may give up (unless I'm missing something...?)
I'm sure that it can be opened in a new window, but it really should not be needed. Maybe you can explain more about this problem? (it's certainly possible that I am missing something too :) ).

@all zen-cart v1.2 users
I just came back from a holliday, no time to install (or even download) 1.2 yet. I hope to get to it soon and to be able make the pricelist to work on 1.2 also of course (if anyone else already has got it working please tell how you did it, or even better, upload the adapted version for 1.2 yourself :) ).

Paul

10 Aug 2004, 9:38 PM
#8
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Just one note:

I see there are two pricelists at the downloads now. They seem exactly the same (except for one totally unimportant file missing in the second upload). I'm 100% sure I didn't upload the second one (only the first one), so I wonder why it's there? :huh: Is it an upgrade somebody did without changing the version number and readme file? Or ???

12 Aug 2004, 1:07 PM
#9
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

bluewolf:

Any chance of getting this updated for v1.2?
Well I finally found some time to install the price-list on v1.2 today. There were three issues I run into for now and also found solutions for :D :

  1. if you have installed zen-cart v1.2 using a prefix for the database tables you will have to change the sql files accordingly. I will post the code for the three profiles sql file and the remove sql file in case you have used "zen_" as table prefix (for code see end of this post).

  2. if the show boxes in admin is set to true (setting almost at the bottom of each profile in admin), an error occurs. It seems to relate to the new way the box templates work. For now I found a quick hack that resolves this problem:

in "zencart\includes\templates\template_default\templatestpl_pricelist_default.php " find (approx line 57):

if (PL_SHOW_BOXES == 'true') {

and replace with:

if (PL_SHOW_BOXES == 'true') {

	// hack for zen-cart v1.2
	$column_box_default = 'tpl_box_default.php';

(as an alternative, if you really don't need the currencies and languages box at all, you can also switch the show boxes of in the price-list profile settings)

  1. Also the logo image doesn't display anymore, I suppose that can be resolved by placing a new logo at "/includes/templates/classic/images/logo.gif" as a quick hack for now (hope to find a more elegant solution later).

As far as I can see after only a quick test everything seems to work fine after those small adjustements.

hth,
Paul

/********************************************************/
code for three profiles sql file i.c.w. "zen_" database tables prefix:

# Printable Price-list database settings
# 2004/06/08
#
# changed for 1.2:
# renamed several configuration_group to zen_configuration_group
# and several configuration to zen_configuration_group
#

SELECT @sortorder:=max(sort_order) from zen_configuration_group;

# Main Price-list settings
INSERT INTO `zen_configuration_group` VALUES ('', 'Printable Price-list', 'The main options for the printable price-list module are stored here.', @sortorder+1, 1);
SELECT @pricelistid:=max(configuration_group_id) from zen_configuration_group;

select @pricelistid;

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Default Profile', 'PL_DEFAULT_PROFILE', '1', 'Choose the default profile to use.', @pricelistid , 10, NULL , 'zen_cfg_select_option(array(\'1\', \'2\', \'3\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( '', 'Show Profiles', 'PL_SHOW_PROFILES', 'true', 'If true available enabled profiles are shown', @pricelistid , 20, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

# Profiles

# Profile 1

INSERT INTO `zen_configuration_group` VALUES ('', 'Price-list Profile-1', 'Settings for printable price-list profile-1.', @sortorder+2, 1);
SELECT @pricelistid:=max(configuration_group_id) from zen_configuration_group;

select @pricelistid;

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Enable', 'PL_ENABLE_1', 'true', 'If enabled a link will be shown to this profile', @pricelistid , 10, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Profile Name', 'PL_PROFILE_NAME_1', 'A4 portrait', 'Give this profile a name', @pricelistid , 20, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Stylesheet', 'PL_PRINTING_STYLESHEET_1', 'a4-portrait', 'Choose the default printing stylesheet to use. If set to "profile-x", i.e. "profile-2.css" is loaded for profile-2', @pricelistid , 30, NULL , 'zen_cfg_select_option(array(\'a4-portrait\', \'a4-landscape\', \'profile-x\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Page', 'PL_MAINCATS_NEW_PAGE_1', 'true', 'If true main categories always start on a new page (also forces new table)', @pricelistid , 40, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Table', 'PL_MAINCATS_NEW_TABLE_1', 'true', 'If true main categories always start a new table (false is ignored if maincats start new pages)', @pricelistid , 50, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'No Wrap', 'PL_NOWRAP_1', 'false', 'To enable or disable wrapping on screen (nowrap is easyer for debugging)', @pricelistid , 60, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Columns', 'PL_MAXCOLUMNS_1', '2', 'Maximum number of columns to show per page', @pricelistid , 70, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Rows', 'PL_MAXLINES_1', '36', 'Maximum number of rows that can be printed on one page', @pricelistid , 80, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Tax Free', 'PL_SHOW_TAX_FREE_1', 'false', 'To show taxfree price in additional column', @pricelistid , 90, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Model', 'PL_SHOW_MODEL_1', 'true', 'To show model in additional column', @pricelistid , 100, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Manufacturer', 'PL_SHOW_MANUFACTURER_1', 'false', 'To show the manufacturer', @pricelistid , 110, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Weight', 'PL_SHOW_WEIGHT_1', 'false', 'Show the weight', @pricelistid , 120, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (A)', 'PL_SHOW_NOTES_A_1', 'false', 'Creates an empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 130, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (B)', 'PL_SHOW_NOTES_B_1', 'false', 'Creates another empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 140, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Show Inactive', 'PL_SHOW_INACTIVE_1', 'false', 'To show inactive products and categories', @pricelistid , 150, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Sort By', 'PL_SORT_PRODUCTS_BY_1', 'products_name', 'How products are sorted within a category', @pricelistid , 160, NULL , 'zen_cfg_select_option(array(\'products_name\', \'products_price\', \'products_model\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Asc Desc', 'PL_SORT_ASC_DESC_1', 'asc', 'Sort ascending or descending', @pricelistid , 170, NULL , 'zen_cfg_select_option(array(\'asc\', \'desc\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'All Categories default', 'PL_DEFAULT_SHOW_ALL_CATS_1', 'true', 'If true all catgories are shown by default, for large shops you might want to set this to false (to reduce memory usage).', @pricelistid , 180, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Boxes', 'PL_SHOW_BOXES_1', 'true', 'If true boxes are shown (to switch languages, currencies etc).', @pricelistid , 190, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Debug', 'PL_DEBUG_1', 'false', 'If true debug info is shown', @pricelistid , 200, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

# Profile 2

INSERT INTO `zen_configuration_group` VALUES ('', 'Price-list Profile-2', 'Settings for printable price-list profile-2.', @sortorder+3, 1);
SELECT @pricelistid:=max(configuration_group_id) from zen_configuration_group;

select @pricelistid;

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Enable', 'PL_ENABLE_2', 'true', 'If enabled a link will be shown to this profile', @pricelistid , 10, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Profile Name', 'PL_PROFILE_NAME_2', 'A4 landscape', 'Give this profile a name', @pricelistid , 20, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Stylesheet', 'PL_PRINTING_STYLESHEET_2', 'a4-landscape', 'Choose the default printing stylesheet to use. If set to "profile-x", i.e. "profile-2.css" is loaded for profile-2', @pricelistid , 30, NULL , 'zen_cfg_select_option(array(\'a4-portrait\', \'a4-landscape\', \'profile-x\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Page', 'PL_MAINCATS_NEW_PAGE_2', 'true', 'If true main categories always start on a new page (also forces new table)', @pricelistid , 40, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Table', 'PL_MAINCATS_NEW_TABLE_2', 'true', 'If true main categories always start a new table (false is ignored if maincats start new pages)', @pricelistid , 50, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'No Wrap', 'PL_NOWRAP_2', 'false', 'To enable or disable wrapping on screen (nowrap is easyer for debugging)', @pricelistid , 60, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Columns', 'PL_MAXCOLUMNS_2', '3', 'Maximum number of columns to show per page', @pricelistid , 70, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Rows', 'PL_MAXLINES_2', '25', 'Maximum number of rows that can be printed on one page', @pricelistid , 80, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Tax Free', 'PL_SHOW_TAX_FREE_2', 'false', 'To show taxfree price in additional column', @pricelistid , 90, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Model', 'PL_SHOW_MODEL_2', 'true', 'To show model in additional column', @pricelistid , 100, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Manufacturer', 'PL_SHOW_MANUFACTURER_2', 'false', 'To show the manufacturer', @pricelistid , 110, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Weight', 'PL_SHOW_WEIGHT_2', 'false', 'Show the weight', @pricelistid , 120, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (A)', 'PL_SHOW_NOTES_A_2', 'false', 'Creates an empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 130, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (B)', 'PL_SHOW_NOTES_B_2', 'false', 'Creates another empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 140, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Show Inactive', 'PL_SHOW_INACTIVE_2', 'false', 'To show inactive products and categories', @pricelistid , 150, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Sort By', 'PL_SORT_PRODUCTS_BY_2', 'products_name', 'How products are sorted within a category', @pricelistid , 160, NULL , 'zen_cfg_select_option(array(\'products_name\', \'products_price\', \'products_model\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Asc Desc', 'PL_SORT_ASC_DESC_2', 'asc', 'Sort ascending or descending', @pricelistid , 170, NULL , 'zen_cfg_select_option(array(\'asc\', \'desc\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'All Categories default', 'PL_DEFAULT_SHOW_ALL_CATS_2', 'true', 'If true all catgories are shown by default, for large shops you might want to set this to false (to reduce memory usage).', @pricelistid , 180, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Boxes', 'PL_SHOW_BOXES_2', 'false', 'If true boxes are shown (to switch languages, currencies etc).', @pricelistid , 190, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Debug', 'PL_DEBUG_2', 'false', 'If true debug info is shown', @pricelistid , 200, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

# Profile 3

INSERT INTO `zen_configuration_group` VALUES ('', 'Price-list Profile-3', 'Settings for printable price-list profile-3.', @sortorder+4, 1);
SELECT @pricelistid:=max(configuration_group_id) from zen_configuration_group;

select @pricelistid;

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Enable', 'PL_ENABLE_3', 'false', 'If enabled a link will be shown to this profile', @pricelistid , 10, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Profile Name', 'PL_PROFILE_NAME_3', 'Testing', 'Give this profile a name', @pricelistid , 20, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Stylesheet', 'PL_PRINTING_STYLESHEET_3', 'profile-x', 'Choose the default printing stylesheet to use. If set to "profile-x", i.e. "profile-3.css" is loaded for profile-3', @pricelistid , 30, NULL , 'zen_cfg_select_option(array(\'a4-portrait\', \'a4-landscape\', \'profile-x\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Page', 'PL_MAINCATS_NEW_PAGE_3', 'true', 'If true main categories always start on a new page (also forces new table)', @pricelistid , 40, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Main Cats New Table', 'PL_MAINCATS_NEW_TABLE_3', 'true', 'If true main categories always start a new table (false is ignored if maincats start new pages)', @pricelistid , 50, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'No Wrap', 'PL_NOWRAP_3', 'true', 'To enable or disable wrapping on screen (nowrap is easyer for debugging)', @pricelistid , 60, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Columns', 'PL_MAXCOLUMNS_3', '2', 'Maximum number of columns to show per page', @pricelistid , 70, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Max Rows', 'PL_MAXLINES_3', '20', 'Maximum number of rows that can be printed on one page', @pricelistid , 80, NULL , NULL );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Tax Free', 'PL_SHOW_TAX_FREE_3', 'true', 'To show taxfree price in additional column', @pricelistid , 90, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Model', 'PL_SHOW_MODEL_3', 'true', 'To show model in additional column', @pricelistid , 100, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Manufacturer', 'PL_SHOW_MANUFACTURER_3', 'true', 'To show the manufacturer', @pricelistid , 110, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Weight', 'PL_SHOW_WEIGHT_3', 'true', 'Show the weight', @pricelistid , 120, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (A)', 'PL_SHOW_NOTES_A_3', 'true', 'Creates an empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 130, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Notes (B)', 'PL_SHOW_NOTES_B_3', 'true', 'Creates another empty comment field, i.e. to make notes on your pricelist.', @pricelistid , 140, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Show Inactive', 'PL_SHOW_INACTIVE_3', 'true', 'To show inactive products and categories', @pricelistid , 150, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Sort By', 'PL_SORT_PRODUCTS_BY_3', 'products_name', 'How products are sorted within a category', @pricelistid , 160, NULL , 'zen_cfg_select_option(array(\'products_name\', \'products_price\', \'products_model\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Asc Desc', 'PL_SORT_ASC_DESC_3', 'asc', 'Sort ascending or descending', @pricelistid , 170, NULL , 'zen_cfg_select_option(array(\'asc\', \'desc\' ),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'All Categories default', 'PL_DEFAULT_SHOW_ALL_CATS_3', 'false', 'If true all catgories are shown by default, for large shops you might want to set this to false (to reduce memory usage).', @pricelistid , 180, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Boxes', 'PL_SHOW_BOXES_3', 'true', 'If true boxes are shown (to switch languages, currencies etc).', @pricelistid , 190, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) 
VALUES ( '', 'Debug', 'PL_DEBUG_3', 'true', 'If true debug info is shown', @pricelistid , 200, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

code for remove sql file i.c.w. "zen_" database tables prefix

# to remove settings from old pricelis version
#
# for 1.2 changed (only needed if a prefix is being used for the zen tables):
# 9x configuration to zen_configuration 
# and 18x configuration_group to zen_configuration_group 
#

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Printable Price-list";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-1";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-2";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-3";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-4";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-5";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-6";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-7";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id from zen_configuration_group where configuration_group_title="Price-list Profile-8";
delete from zen_configuration where configuration_group_id=@pricelistid;
delete from zen_configuration_group where configuration_group_id=@pricelistid;

end :D

20 Aug 2004, 2:02 PM
#10
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Uploaded Price-list for Printing v1.01 today

New for 1.01:

  1. adapted for, and tested on, zen-cart v1.2 (changes as in above thread)
  2. supports active/inactive categories now.

download somewhere at (after approval, takes some days?):
Downloads : Zen Cart : Other Modules :

:)

20 Aug 2004, 2:53 PM
#11
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Pricelist For Printing

Thanks Paul.

:)

20 Aug 2004, 4:19 PM
#12
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Pixxi:

Thanks Paul.
Thank you you too Pixxi, also because now I don't have to answer my own post again :D

There was a problem with the upload, and I forgot to take the file with me, so it might take another day before it's really available. I will post again when it really is there.

B.t.w. there hasn't changed much other than what I posted here already. There's is a small update included to make the active/inactive categories work, I can post that change here if anyone needs to upgrade (but not before tomorrow).

7 Sep 2004, 12:15 PM
#13
sean046 avatar

sean046

Inactive

Join Date:
Feb 2004
Posts:
42
Plugin Contributions:
1

Re: Pricelist For Printing

paulm, this is just what i needed, thank you.

a question though, how do i change the width of columns? i've got the column width set via the css files... but need to change the price and model colum width to 100px each. i also need the product cell to be left aligned and the two afforementioned columns to be right aligned, all vertically alligned to the top. is this css too?

i only need 1 profile, a4 portrait, to do this on.

thank you.

sean

7 Sep 2004, 7:21 PM
#14
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi sean,> sean046:

how do i change the width of columns?indeed all those settings are done through the stylesheet. I would not use pixel sizes for printing though, it's better to use cm's, inches or pt's for printing (because there isn't such a thing as pixel paper sizes).

For your purpose you can take the current profile-a4-portrait stylesheet and edit it. The CSS is a bit more complicated than normal because there are different settings dependant of the number of columns (=>the number of price-list tables next to each other per page), but I tried to explain some of it by adding comments to the stylesheet. Also the width of the table cells itself and the div's inside it both have to be set (the div's are being used to cut of the content if needed by assigning a overflow: hidden to the div's, it makes sure your print will always fit the paper).

Some width settings for one column printing are already set i.e. between the / one column settings / and / end one column settings / comment lines in the stylesheet for example.

It's all not really difficult, but it's not very easy to explain in a few words too. So I hope you"ll be able to sort it out,

Paul

23 Sep 2004, 11:25 PM
#15
boyemillar avatar

boyemillar

Zen Follower

Join Date:
Jun 2004
Location:
Irvine, Scotland
Posts:
89
Plugin Contributions:
0

Re: Pricelist For Printing

Love the price list mod...

Heres a sugestion though,

I Think it'd be great if you could say have all products and categories dwitched to show in the pricelist by default however if you could then add by means of say a tick box within the categories page and by each individual product as well would be great

I use the mod at present but would like the ability to select the individual parts to display as i am gettin on for displaying more that will fit on 1 page using 3 columns so if could say go into a category and say only display 4 of the products in that category then i could drill down the amount of products displayed and give a better range of products on 1 page rather than having 2 pages. I know this can be done by just disabling the products in zen but this would also stop them from showing in the catalog also.

My Webpage

3 Oct 2004, 10:45 AM
#16
ianetche avatar

ianetche

Zen Follower

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

Re: Pricelist For Printing

Hi Paul

Have just loaded the price list into 1.2.1 patch 1 and it works great. This is really nice work - many, many thanks.

Regards, Ian

5 Oct 2004, 12:07 PM
#17
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

this is an awsome add on!! works liek a dream

... but i have a small issue

it kills my sites graffical menu which is written solely in the templates stylesheet.css

it should look liek this :

but as soon as i drop the tpl_categories.php it looks like this

any suggestions around this?

5 Oct 2004, 11:56 PM
#18
jeff_fwd avatar

jeff_fwd

Totally Zenned

Join Date:
Jun 2003
Location:
CA
Posts:
212
Plugin Contributions:
0

Re: Pricelist For Printing

did you add the define for the variable?

define ('CATAGORIES_BOX_HEADING_PRICELIST','Price List');

6 Oct 2004, 12:45 AM
#19
soapin_mama avatar

soapin_mama

New Zenner

Join Date:
Oct 2004
Location:
Sturgeon Bay, WI
Posts:
80
Plugin Contributions:
0

Re: Pricelist For Printing

Somehow I ended up with the menu listing in ADMIN twice. Any way to safely remove it?

6 Oct 2004, 1:57 AM
#20
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Thanks guys

I have already done the winmerge thing to compare ~custom/sideboxes/tpl_categories.php with ~/default/sideboxes/tpl_categories. But was unsure which lines to bring accross and which were superseeded by the existing/most recently built code. Will look out for 'CATAGORIES_BOX_HEADING_PRICELIST','Price List' and make sure I include it and try again from there. Will have to wait til tonight when i can get back to my FTP.