Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / trying to add a line to the "More Information" box.

trying to add a line to the "More Information" box.

Started by neonjohn on 24 Apr 2016, 3:18 PM · Views: 1,031

Results 1 to 9 of 9
24 Apr 2016, 3:18 PM
#1
neonjohn avatar

neonjohn

New Zenner

Join Date:
Apr 2016
Location:
Tellico Plains, TN
Posts:
2
Plugin Contributions:
0

Post #1 by neonjohn

Good morning guys. Experienced embedded systems programmer and EE but very little web programming experience. New to Zen Cart.

I'm trying to add another line to the "more information" side box. My symptoms are that the header text loads along with the "Back" button but no text displays. The new line is visible in the "define page editor" and I can edit its text. So far I've found "page_4" in the following files and added lines identical except for page_5.

includes/templates/template_default/templates/tpl_page_5_default.php
includes/templates/template_default/templates/tpl_site_map_default.php:
includes/languages/english/page_5.php
includes/modules/sideboxes/more_information.php
includes/languages/english.php:
includes/filenames.php
daboss/includes/languages/english/define_pages_editor.php
daboss/includes/languages/english.php
includes/modules/sideboxes/more_information.php
includes/modules/pages/page_5/header_php.php

I am using the override system wherever possible.

No logs are being generated.

Of possible relevance, last night I installed the "read logs" plug-in. It doesn't work. The admin page popup has the following URL associated with the "click here"

https://www.tnduction.com/daboss/FILENAME_DISPLAY_LOGS.php

I looked at the code and saw that FILENAME_DISPLAY_LOGS is not being assigned a value during initiation.

After 3 solid days of struggling, searching, FAQing and manual reading with this problem, I figured it was time to ask for help.

OK the vitals.

Virgin installation

Site is Tnduction. The store is semi-live. I don't have any plastic processors tied in yet but the products are real and can be purchased via a paypal invoice manually sent.

ZC is running on DreamHost, installed via 1 click installer.
Host info is

             
Last login: Fri Apr 22 18:48:25 2016 from 67.44.209.19
[george-taylor]$ version
-bash: version: command not found
[george-taylor]$ vers
-bash: vers: command not found
[george-taylor]$ $ cat /etc/*-release
-bash: $: command not found
[george-taylor]$ cat
[george-taylor]$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
NAME="Ubuntu"
VERSION="12.04.5 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.5 LTS)"
VERSION_ID="12.04"

ZenCart Poop

Server Host: george-taylor (173.236.224.102)       	Database Host: mysql.tnduction.com (208.97.173.113)
Server OS: Linux 3.2.61-grsec-modsign    	Database: MySQL 5.6.25-log
Server Date: 04/24/2016 08:10:30   	Database Date: 04/24/2016 08:10:30
Server Up Time: 08:10:30 up 40 days, 59 min, 1 user, load average: 2.06, 2.00, 2.13 	HTTP Server: Apache
PHP Version: 5.6.19 (Zend: 2.6.0)   PHP Memory Limit: 90M 	PHP Safe Mode: Off
PHP File Uploads: On    Max Size: 64M 	POST Max Size: 65M
Database Data Size: 785 kB 	Database Index Size: 507 kB

I have made no other code modifications other than those associated with the file list above.

24 Apr 2016, 5:32 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #2 by swguy

To add another line to the information sidebox, you could just add it directly to

includes/templates/YOUR_TEMPLATE/sideboxes/tpl_information.php

If you want to get a little more sophisticated, you could add it to the $information array in

includes/modules/sideboxes/YOUR_TEMPLATE/information.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Apr 2016, 6:53 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #3 by mc12345678

The missing define: FILENAME_DISPLAY_LOGS is a missing file upload usually in the extra_definitions folder.

Otherwise there is always a concern related to one-click installers not containing the original content of a self installed version that is available from the main page of this website. It doesn't mean it is the cause of this particular issue, but it could introduce issues in other areas...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Apr 2016, 12:20 AM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #4 by carlwhat

other concerns:

  • if this is a new site, why not start with the latest code source? the latest is v1.5.5; your site is running something less than that.... i'm pretty sure that an experienced embedded systems programmer could download the latest and get it running. ;)
  • you have posted the link to the admin section of your site. i would change daboss to something else at this point. its generally considered a security precaution to not expose where your admin is.

good luck!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

25 Apr 2016, 2:40 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

I think that you also need files for page_5 in these areas - I do not think that I have missed any??

includes/languages/english/html_includes/define_page_5.php
includes/languages/english/html_includes/your_template/define_page_5.php
includes/modules/pages/page_5/header_php.php

Zen-Venom Get Bitten

25 Apr 2016, 4:47 PM
#6
neonjohn avatar

neonjohn

New Zenner

Join Date:
Apr 2016
Location:
Tellico Plains, TN
Posts:
2
Plugin Contributions:
0

Post #6 by neonjohn

carlwhat:

other concerns:

  • if this is a new site, why not start with the latest code source? the latest is v1.5.5; your site is running something less than that.... i'm pretty sure that an experienced embedded systems programmer could download the latest and get it running. ;)
  • you have posted the link to the admin section of your site. i would change daboss to something else at this point. its generally considered a security precaution to not expose where your admin is.

good luck!

Thanks for the good luck. I need it.

The problem is that our company has just branched off from a larger one. I'm the CEO and have the responsibilities for getting us going, getting manufacturing started again, reestablishing relationships with vendors, etc. Dreamhost's one click installs have always been excellent. Click the button and the package runs. I figured customizing the store and putting in inventory would be a weekend project.

I read the instructions on doing a from-scratch install and it sounded to me like a long-drawn-out procedure.

Now the question is, can I upgrade to the current store without losing my customizations? I have a cron job that backs up the code base and the SQL database every night so recovery would be minimal work. What say you? Should I give it a try?

Thanks,
John

25 Apr 2016, 5:08 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,768
Plugin Contributions:
56

Post #7 by swguy

  • Download a complete copy of your current store to your local PC.
  • Pull a fresh copy of 1.5.5 and 1.5.4 to your local PC.
  • Copy 1.5.5 to a working area; this will become your (local) new store.
  • Compare your current store (1.5.4) to the fresh copy of 1.5.4 you downloaded. Apply these changes to the local new store files. Check for any new files in your current store which do not exist in 1.5.4; copy these to the local new store.
  • Test test test.
  • Upload the local new store files.
  • Upload your configure.php files from the copy of your current store you downloaded.

Voila! Updated site.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Apr 2016, 7:28 PM
#8
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #8 by carlwhat

john,
you have 8 products, you have your site up and running... i would still go through the upgrade. especially since it looks like you do not have that many changes... as of yet... and while it might be a lot of work, i think the more effort you put into the beginning, the better off you will be.

cronjobs for backing up the DB is awesome. as far as the code, i am a HUGE fan of using some sort of source version control. frankly i use git, but any product where you can use version control and where you can push your code base to a separate server is the way to go.

as far as the swguy's recommendations for upgrading; that is the way to do it. i like to compare the code first and then once i have applied all of my changes, update the database only using the /zc_install folder, and go from there. which mainly involves debugging work

i make use of meld as it allows me to compare 3 code directories at the same time, ie: v1.5.4, my live site, and v1.5.5. you can read download/read about i here:

http://meldmerge.org/

as far as the time commitment, i hear you. we only have so much time to do so many things; and frankly once you get started on a modern shopping cart, it can be an incredible time suck.... only you can decide if you think its worth the effort.

let us know how it goes!

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

25 Apr 2016, 7:34 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #9 by mc12345678

Beyond compare also allows three version compare with the ability to store the merge in a fourth location. Don't yet know about meld, but beyond compare allows a mix of server and local compares (of course also all one or the other).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...