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

Printable Price list :: support thread

Views: 232,005

Results 581 to 600 of 739
09 Apr 2015, 23:56
#581
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Printable Price list :: support thread

That's because there's not a tpl_pricelist_default.php file that's part of the distribution. Are you sure that you uploaded all the pertinent files into the proper directories?

17 Jul 2015, 14:01
#582
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

That's because there's not a tpl_pricelist_default.php file that's part of the distribution. Are you sure that you uploaded all the pertinent files into the proper directories?

I am also getting this same error / partial blank page on a local 1.5.4 installation when calling http://www.yourdomain.com/index.php?main_page=pricelist in the front end.

Yes, all files have been merged / uploaded as per instructions (and double-checked).

Swapped templates a few times and it is the same result on all templates.

Template Classic Green (default)

[16-Jul-2015 11:23:08 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/template_default/common/tpl_main_page.php on line 122
[16-Jul-2015 11:23:08 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/template_default/common/tpl_main_page.php on line 122

Template Bentley Classic

[16-Jul-2015 11:19:32 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/bentley_classic/common/tpl_main_page.php on line 141
[16-Jul-2015 11:19:32 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/bentley_classic/common/tpl_main_page.php on line 141

Template Responsive Sheffield Blue 2.0

[16-Jul-2015 11:23:37 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php on line 249
[16-Jul-2015 11:23:37 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php on line 249

Lines 122, 141 and 249 respectively in includes/templates/TEMPLATE_AS_PER_ABOVE/common/tpl_main_page.php are all calling for

require($body_code);

Tracing $body_code in DTK, I am ending up at /includes/templates/template_default/common/main_template_vars.php

That reads

  if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) { 
    $body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php'; 
  } else { 
    $body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php'; 
  }

and that file

DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php'

does not exist in the package. Therefore ZC is looking for a corresponding template file and tries to call tpl_pricelist_default.php and that does not exist either, hence the error.

Please correct me if I am wrong.

17 Jul 2015, 14:58
#583
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

The pricelist page's processing is similar to the popup-type pages, so the tpl_main_page.php file *should *be loaded from /includes/templates/template_default/pricelist/tpl_main_page.php ... **not **from /includes/templates/{current_template}/common/tpl_main_page.php (which is where the tpl_{current_page_base}_default.php file's load is determined).

That determination happens pretty early in a ZC page-load, handled by /index.php's processing. That said, I'm puzzled by the fact that the page-load is going down the "common" directory processing given that the plugin's files have been uploaded to the proper directories.

17 Jul 2015, 15:37
#584
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

FWIW, I just installed and ran the plugin in a (relatively) vanilla ZC 1.5.3 installation and it ran without issue. The /index.php file hasn't changed since dinosaurs roamed the earth (or at least back as far as Zen Cart 1.3.5, which is pretty close).

@frank18, has your site's /index.php file been modified in any way? What other plugins/templates do you have installed? Any changes to /includes/classes/template_func.php?

17 Jul 2015, 23:53
#585
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

FWIW, I just installed and ran the plugin in a (relatively) vanilla ZC 1.5.3 installation and it ran without issue. The /index.php file hasn't changed since dinosaurs roamed the earth (or at least back as far as Zen Cart 1.3.5, which is pretty close).

@frank18, has your site's /index.php file been modified in any way? What other plugins/templates do you have installed? Any changes to /includes/classes/template_func.php?

Thanks lat9

Have not tried this mod in ZC versions 1.5.3 and lower, only in 1.5.4

No modification to the /index.php file, it is still the same version

  • @version $Id: index.php 2942 2006-02-02 04:41:23Z drbyte $

Same with /includes/classes/template_func.php - no changes at all.

What puzzles me is that it happens in all 3 templates (see my post above) including the default.

Plugins (store front only): image handler 4, zen lightbox, minimum order - really nothing that would affect the functionality of this mod.

The store has been around since v1.3.7 (2007) and progressively updated to 1.5.4

I will pop this into another local 1.5.4 site on the weekend and see what happens.

18 Jul 2015, 00:12
#586
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

Relevant Server Information:

Server OS: Linux 3.16.0-36-generic Database: MySQL 5.5.43-0ubuntu0.14.04.1
Server Date: 18/07/2015 10:08:19 Database Date: 18/07/2015 10:08:19
Server Up Time: Disabled/Unavailable HTTP Server: Apache/2.4.7 (Ubuntu)
PHP Version: 5.5.9-1ubuntu4.11 (Zend: 2.5.0) PHP Memory Limit: 128M PHP Safe Mode: Off

18 Jul 2015, 09:05
#587
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

Installed on another 1.5.4 local site and have no problem running this plugin - so somewhere in the other site something has gone astray..... :rant::frusty:

Let's keep digging....

18 Jul 2015, 13:11
#588
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

Perhaps something in a .htaccess file?

19 Jul 2015, 01:37
#589
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

Perhaps something in a .htaccess file?

Nope, but very close: permissions!!!! :oops:

Worked a treat on the live server, but the live server automatically assigns the correct permissions to folders and files (755 and 644) whereas the local dev server didn't hence the partial blank page.

19 Jul 2015, 11:30
#590
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

@frank18, thanks for following up! Was it the permissions on the /includes/templates/template_default/pricelist folder that was giving you grief?

23 Jul 2015, 23:20
#591
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

@frank18, thanks for following up! Was it the permissions on the /includes/templates/template_default/pricelist folder that was giving you grief?

Yes, that was the culprit....

24 Jul 2015, 12:34
#592
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

Thanks, frank18! I'll add a note to the top of the plugin's readme to suggest that permissions on that newly-added folder might need to be checked. What are your host's default permissions?

24 Jul 2015, 14:19
#593
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

I've submitted v2.0.1 to the plugins' area for review:

  • BUGFIX: Corrected the name of /includes/templates/template_default/pricelist/profile-1.css (was proile-1.css).
  • BUGFIX: Include missing language /extra_definition files.
  • CHANGE: Open pricelist in a new window when Information sidebox link is clicked. Changed /includes/modules/sideboxes/YOUR_TEMPLATE/information.php.
  • CHANGE: Add configuration switch to enable/disable display of the currency symbol in the pricelist display's header. Changed /YOUR_ADMIN/includes/functions/extra_functions/init_price_list_admin.php and /includes/templates/template_default/pricelist/tpl_main_page.php.
  • CHANGE: Added permissions-check notice to the top of this readme.
25 Jul 2015, 01:48
#594
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

Thanks, frank18! I'll add a note to the top of the plugin's readme to suggest that permissions on that newly-added folder might need to be checked. What are your host's default permissions?

That problem happened locally (local Linux dev server on my computer) - entirely my fault. Had to tweak some settings so it does not bugger me again.

On the live server it worked instantly as permissions are automatically assigned to 755 (folders) and 644 (files).

25 Jul 2015, 01:50
#595
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Printable Price list :: support thread

lat9:

I've submitted v2.0.1 to the plugins' area for review:

  • BUGFIX: Corrected the name of /includes/templates/template_default/pricelist/profile-1.css (was proile-1.css).

LOL, noticed that and changed it before I installed it.

28 Jul 2015, 14:19
#596
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

v2.0.1 is now available from the Zen Cart plugins.

28 Jul 2015, 17:48
#597
apogeerockets avatar

apogeerockets

Zen Follower

Join Date:
Aug 2011
Posts:
104
Plugin Contributions:
0

Re: Printable Price list :: support thread

I installed this 2.0.1 version, but I've come to discover that all the functionality for columns has beens stripped out from the older version. With 3k products between the linked categories, having 2+ columns is a bit of a requirement to not use an entire tree if someone wants to print this.

Is there a somewhat easy way to put this back in? I don't really want to spend hours learning what this code is doing, then recode to put in columns.

28 Jul 2015, 17:53
#598
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Printable Price list :: support thread

I've noted your request in the plugin's GitHub repository (https://github.com/lat9/printable_price_list/issues/7).

28 Jul 2015, 17:57
#599
apogeerockets avatar

apogeerockets

Zen Follower

Join Date:
Aug 2011
Posts:
104
Plugin Contributions:
0

Re: Printable Price list :: support thread

Thanks. Didn't know there was a github for it. :)

04 Aug 2015, 11:03
#600
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Printable Price list :: support thread

lat9:

v2.0.1 is now available from the Zen Cart plugins.

I've installed that version here, but pages don't seem to break when printing or creating a pdf. Is anyone experiencing this? Please advise.