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 261 to 280 of 326
This thread is locked. New replies are disabled.
25 Feb 2006, 6:37 PM
#261
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Pricelist For Printing

Thanks for the excellent suggestion but I've double checked and I did edit the right file - however, the problem remains:

Although my coding appears to be correct I cannot replace the divider between "Price List" and Log in"

**<?php if ($_SESSION['customer_id']) { ?>
<?php echo HEADER_TITLE_LOGOFF; ?>|
<?php echo HEADER_TITLE_MY_ACCOUNT; ?>|

<?php echo HEADER_TITLE_PRICELIST; ?>| <?php**

::frust Any further suggestions warmly welcomed!!!

shaggydogcrafts.com
Craft Materials and Crafty Ideas

harrisonwalton.info
Colourful, contemporary tiaras & crowns

fancyface.co.uk
Face Painting in Thanet, Kent

25 Feb 2006, 8:17 PM
#262
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Pixxi:

Just noticed a small change that's needed - if you have some categories disabled in admin the price list drop-down menu will still show them.

The fix is to add:

and c.categories_status= '1'

 Nice one Pixxi :-)

Maybe I will add it to the next version. I have plans to update the sql file soon anyway.
25 Feb 2006, 10:18 PM
#263
pixxi avatar

pixxi

Totally Zenned

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

Re: Pricelist For Printing

@Bryony:

Or the other gotcha where you're editing the files on your local (PC) test site but your browser window is connected to your site on the server?

... somehow the changes never seem to work if you do that ;)

2 Mar 2006, 4:21 AM
#264
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Updated sql file. Copy and paste it into the Zen sql tool text area (under tools in the Zen admin).

Better follows the (un)documented Zen sql requirements. And probaly/hopefully MySQL5.x compatible.

Unfortunately I can not upload to the contributions area, so I post it here:

# Printable Price-list database settings
# 2006/03/02


SELECT @sortorder:=max(sort_order)
FROM configuration_group;

# Main Price-list settings
INSERT INTO `configuration_group` VALUES (NULL, '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 configuration_group;

SELECT @pricelistid;

INSERT INTO configuration ( 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 configuration ( 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 `configuration_group` VALUES (NULL, 'Price-list Profile-1', 'Settings for printable price-list profile-1.', @sortorder+2, 1);
SELECT @pricelistid:=max(configuration_group_id)
FROM configuration_group;

SELECT @pricelistid;

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( 'Stock On Hand', 'PL_SHOW_SOH_1', 'true', 'Show the Stock on Hand', @pricelistid , 125, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 `configuration_group` VALUES (NULL, 'Price-list Profile-2', 'Settings for printable price-list profile-2.', @sortorder+3, 1);
SELECT @pricelistid:=max(configuration_group_id)
FROM configuration_group;

SELECT @pricelistid;

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( 'Stock On Hand', 'PL_SHOW_SOH_2', 'true', 'Show the Stock on Hand', @pricelistid , 125, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 `configuration_group` VALUES ('', 'Price-list Profile-3', 'Settings for printable price-list profile-3.', @sortorder+4, 1);
SELECT @pricelistid:=max(configuration_group_id)
FROM configuration_group;

SELECT @pricelistid;

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( 'Stock On Hand', 'PL_SHOW_SOH_3', 'true', 'Show the Stock on Hand', @pricelistid , 125, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

INSERT INTO configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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 configuration ( 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\'),' );
2 Mar 2006, 4:23 AM
#265
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

And an improved sql file to remove the above setting again if needed:

(designed to remove 8 profiles, but works fine for less profiles too)

# to remove settings FROM old pricelist version
#

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Printable Price-list";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-1";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-2";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-3";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-4";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-5";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-6";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-7";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Price-list Profile-8";
DELETE FROM configuration WHERE configuration_group_id=@pricelistid;
DELETE FROM configuration_group WHERE configuration_group_id=@pricelistid;

hth :-)

2 Mar 2006, 10:06 AM
#266
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

paulm:

And probaly/hopefully MySQL5.x compatible.
I ment to say here: MySQL5.x STRICT mode compatible (which includes the non STRICT mode too, I assume ;) )

3 Mar 2006, 12:19 PM
#267
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

And the updated sql, in case you want to add an on/off switchable link```
SELECT @pricelistid:=configuration_group_id
FROM configuration_group WHERE configuration_group_title='Printable Price-list';
select @pricelistid;
INSERT INTO configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ('Show Price List', 'SHOW_CATEGORIES_BOX_PRICELIST', 'true', 'If true Price-List link will show in Categories box', @pricelistid , 20, NULL , 'zen_cfg_select_option(array('true', 'false'),' );

20 Mar 2006, 4:31 PM
#268
monkeymadness avatar

monkeymadness

Zen Follower

Join Date:
Feb 2006
Posts:
270
Plugin Contributions:
0

Re: Pricelist For Printing

hello.. thanks paul for another great contribution...loving css buttons as well ::tup

my problem is that i have a lot of linked products between categories...ie "blue baby bib" product is in the "baby bib" category and "baby gift ideas" category...

the price list is repeating the products in each category..so some products are on the list 3 times etc...is there any way of the price list showing just products and not the categories or not repeating products?

thanks again :D

21 Mar 2006, 12:52 PM
#269
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

I am glad you like it monkeymadness :)

Actually making a pricelist without the categories would have been a lot easier. But I am not sure about what the best way would be to remove the categories code now. Also to be able to say how to display those products only once (in it their main cat) I would need to dig into the code.

An additional problem here is that it's been quite some time since I wrote the initial version (about 2 years ago), and looking back at the code now, I wonder what I was thinking when I wrote it :blink:
:D

Maybe/hopefully I will get some ideas later on, if so, I will get back to you of course.

21 Mar 2006, 1:51 PM
#270
monkeymadness avatar

monkeymadness

Zen Follower

Join Date:
Feb 2006
Posts:
270
Plugin Contributions:
0

Re: Pricelist For Printing

** I wonder what I was thinking when I wrote it
**

:lol: i wonder what it says as i read it! i am on the quest for coding knowledge though

never mind, sit back, relax and commend yourself for making contributions to a cart you don't use! ( or is that the maker of another contrib :blink: ) all the threads ive been reading are starting to merge into one big blur .... it works thats the main thing...a few extra links to each product on one page isn't going to kill me, my site or my customers

::tup

thanks for the quick reply

21 Mar 2006, 2:44 PM
#271
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

monkeymadness:

making contributions to a cart you don't use! ( or is that the maker of another contrib :blink: )
You got it right :D I still got plans to use it in the future though (been saying that for "years" already ;) )

I think I'll wait for v1.3, that will give me some time to sit back and relax :P

21 Mar 2006, 4:34 PM
#272
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

I've noticed some inline posts for sql changes (pages 34-35) are these also in the price-list product, or are they required to be done afterwards (or before) installation of the price-list product?

Cheers,
Quentin

21 Mar 2006, 4:48 PM
#273
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi Quentin,

these new queries, that are posted here, are replacements for the included sql files in the contribution. So these are to be used during installation. There is no use for it after a succesfull installation (so no need to upgrade or something).

Maybe I will repackage, and ask if it can be uploaded to the downloads section after all.

22 Mar 2006, 5:19 AM
#274
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

SQL loaded almost fine. Your profile 3 - needs a NULL not ''. I'm using MySQL 5.0 so there might be other changes as well, which I'll post about as I install the meat of it next.

22 Mar 2006, 5:36 AM
#275
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

Well it seems to work fine. I do have 4 questions.

  1. It has a logo box at the top, how is this defined?
  2. The portrait/landscape buttons, its not very clear which is in effect, as I can have them both highlighted.
  3. Is there a way to make it generate a PDF?
  4. Is it possible to have "Admin" price lists and non admin?

I probably could come up with more, but that should be good I think :-) for now....

actually, how do I put my own header into that page?

Note: The Delete scripts could be incorporated into the SQL scripts to run, thus ensuring no duplication will occur.

22 Mar 2006, 8:32 AM
#276
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

quentinjs:

SQL loaded almost fine.
:blink: O no not again! :D ::bsh This sql trouble keeps hunting me.

So, for MySQL5 compatibility, in no_prefix_pricelist-3.sql change:

# Profile 3

INSERT INTO `configuration_group` VALUES ('', 'Price-list Profile-3', 'Settings for printable price-list profile-3.', @sortorder+4, 1);

to:

# Profile 3

INSERT INTO `configuration_group` VALUES (NULL, 'Price-list Profile-3', 'Settings for printable price-list profile-3.', @sortorder+4, 1);
```(= replacing one '' by NULL)

Thanks for letting me know quentinjs :)

1&2: maybe later
3: PDF functionality is not included in this contribution
4: I got an alfa admin version somewhere, PM me if you really want it (it's totally unsupported).

And maybe I will indeed include the sql remove code, to prevent dupication, in the next version. Thanks for the tip.
22 Mar 2006, 10:47 AM
#277
titangen avatar

titangen

Zen Follower

Join Date:
May 2005
Location:
Brussels belgium
Posts:
177
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Paul,

Is it possible to add a short description and a thumbnail in this list ?

tanks in advance

chris

Zen cart or nothing !!

22 Mar 2006, 4:19 PM
#278
monkeymadness avatar

monkeymadness

Zen Follower

Join Date:
Feb 2006
Posts:
270
Plugin Contributions:
0

Re: Pricelist For Printing

hello again paul...

how do i add my website + contact information to the bottom of each page so that it appears on the site and when the price list is printed?...

thanks in advance

22 Mar 2006, 4:44 PM
#279
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

For the corporate info, that is pulled from the store configuration information.

Back to my question #1 (I believe) there is a "bitmap" on the page that shows a placeholder but no image. THis I am guessing should be configurable in some fashion.

And an admin functionality would be interesting to look at... as long as non supported means that when 1.3 comes cout it will still work! In my mind I was just thinking of multiple profiles, but linking some of them to be only seen if you were an admin person. I wonder what you have done that might be on top of that.

22 Mar 2006, 9:03 PM
#280
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

@titangen> **Is it possible to add a short description and a thumbnail in this list ?**It is possible of course, but it needs some coding (includes\modules\pages\pricelist\header_php.php needs to be editted, and the settings for it need to be added to the sql). It's not difficult, but it takes time. (edit: I might give it a shot some day myself)

@monkeymadness> **how do i add my website + contact information to the bottom of each page so that it appears on the site and when the price list is printed?...**In addition to what quentinjs said, this information is printed by default at the bottom of each page.

@quentinjs> ** there is a "bitmap" on the page that shows a placeholder but no image**Maybe it helps to check the url that the placeholder shows for the image? And maybe it's not coded as it should, but on my testsite it does show the logo ( http://www.zen-cart.nl/shop/index.php?main..._page=pricelist )

edit2:

And an admin functionality would be interesting to look at... as long as non supported means that when 1.3 comes cout it will still work! :D It's not even guaranteed to work on 1.2.7. It's a version that is to be installed in the admin dir, and it does print out something on my testshop, but it might (or does) have quirks and bugs.