Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2016
    Location
    Tellico Plains, TN
    Posts
    2
    Plugin Contributions
    0

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

    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.
    Code:
    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"
    Code:
    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
    Code:
                 
    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
    Code:
    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: trying to add a line to the "More Information" box.

    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.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: trying to add a line to the "More Information" box.

    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...

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: trying to add a line to the "More Information" box.

    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.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: trying to add a line to the "More Information" box.

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

    Code:
    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

  6. #6
    Join Date
    Apr 2016
    Location
    Tellico Plains, TN
    Posts
    2
    Plugin Contributions
    0

    Default Re: trying to add a line to the "More Information" box.

    Quote Originally Posted by carlwhat View Post
    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

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: trying to add a line to the "More Information" box.

    - 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.

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: trying to add a line to the "More Information" box.

    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.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: trying to add a line to the "More Information" box.

    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...

 

 

Similar Threads

  1. How to add more pages into "Information"? (sideboxes/information.php)
    By n_t_r in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 May 2011, 01:50 PM
  2. changing "page 4" name in the "more information" box
    By verdo131 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Dec 2009, 05:16 AM
  3. How to add more links to "More information" Side Box.
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Jul 2009, 03:27 PM
  4. Add pages to the "more information" box
    By PeterBKK in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jan 2008, 07:45 AM
  5. How to add an image under the "Information Box"
    By bfwdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Oct 2007, 07:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg