Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Mod gone bad? - fonts somehow screwed up

Mod gone bad? - fonts somehow screwed up

Locked

Views: 9,016

Results 41 to 44 of 44
This thread is locked. New replies are disabled.
4 Dec 2010, 3:11 AM
#41
filmlover7 avatar

filmlover7

New Zenner

Join Date:
Nov 2010
Posts:
21
Plugin Contributions:
0

Mod gone bad? - fonts somehow screwed up

bunyip:

Doug,
Achieving what you want is really quite simple - it's obvious that the company you hired doesn't have a good understanding of Zen Cart's architecture.

Five simple steps for what you want to do:

  1. For the content you want at the top of your main page, just use the existing define main page system, with no changes - just edit the define_main_page in admin as normal.
  2. For the content that you want to show at the bottom of your main page, create a new file includes/languages/english/html_includes/define_main_page_lower.php - you'll be able to edit the content of that from the Define Pages Editor in Admin.
  3. Create a new file includes/extra_datafiles/main_page_definitions.php with this content:```
<?php define('FILENAME_DEFINE_MAIN_PAGE_LOWER', 'define_main_page_lower'); ?>
> 4. Edit includes/modules/pages/index/header_php.php and add this line of code:```
$define_main_page_lower = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE_LOWER, 'false');
``` immediately below this line:```
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false');
  1. Make an override copy of includes/templates/template_default/templates/tpl_index_default.php and add this line of code immediately before the closing /div tag at the end of the file:
<div id="indexDefaultLowerContent" class="content"><?php require($define_main_page_lower); ?></div> ```

Can you please explain how the "Documents" function works in 139h? What doe it mean when you create a Category or a Product as a General Document?

Thanks,

15 Apr 2011, 1:31 AM
#43
trisha1581 avatar

trisha1581

New Zenner

Join Date:
Jan 2007
Posts:
66
Plugin Contributions:
0

Re: Mod gone bad? - fonts somehow screwed up

After completling these steps it did not work and now my main page is named Untitled Document. Any idea how i can get it back>

14 Dec 2011, 5:29 PM
#44
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Mod gone bad? - fonts somehow screwed up

trisha1581:

After completling these steps it did not work and now my main page is named Untitled Document. Any idea how i can get it back>

You're in the wrong thread for this question... This thread looks at adding exctra tect to the main page.

20 years a Zencart User