i'm still scratching my head over this issue anyone have any new idea of what could of happened here?
i'm still scratching my head over this issue anyone have any new idea of what could of happened here?
www.gorillagear.ca = zencart v1.3.9h with 40+ mods
To display the main page defines text below all the specials and featured products find the line in the tpl_index_defines.php:
Then cut it and move it right down to the bottom of the file and reinsert it before the last </div> on the file, so the last two lines look likeCode:<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
Code:<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> </div>
or why not just make your main page defines text blank...so you can add images etc later if you want to above the featured/specials, and just pick a blank defines page (i.e i've used number 4 in this example) then add the following before the last </div> in the same file
Code:<?php $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_4, 'false'); ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
sorry, file is tpl_index_default, NOT tpl_index_defines as i wrote before!
what ever i do to the templates/mytemplate/templates/tpl_index_default.php does nothing i deleted my main custom greeting and the main text stuff in changes nothing on my main page?
then i deleted other random parts of the file still no change on my main page makes me assume this file isn't working for some reason or at least isn't being used
www.gorillagear.ca = zencart v1.3.9h with 40+ mods
now i'm playing with the /templates/template_default/templates/tpl_index_default.php file and moved the main text content to the bottom of the page with no changes to the frontpage of the site. then i started cutting out everything up to the this peice of codeCode:<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php
nothing changed on the site and i cleared my cache and everything what is this file for and where is there another file that i might of missed
www.gorillagear.ca = zencart v1.3.9h with 40+ mods
I am by no means a PHP developer but so far I have got this to work by looking for the following code
<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) {?>
<?php
/**
* get the Define Main Page Text
*/
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>
Cutting it from its present position and pasteing it immediately prior to the last </div>
So far I have only made this change in my localhost test store but it appears to be working fine.
I would appreciate feedback if this is not good coding or may cause problems later.
Cheers
Brett
www.1-daydeals.com
I am not sure this is the correct place to post this but I am going to give it a shot.....I used an older version via godaddy app. I messed up a file trying to redirect url in a php file (everything was DONE) go daddy advised to uninstall and reinstall ugh! did that now it's a different version v1.3.9h and I am so lost! none of my notes are any good. none of the files are where they used to be. I am a self taught user. All I need at this point is to remove "Congratulations! You have successfully installed your Zencart" and "Sales Message Goes here" I am sickPlease help!!! Thank you in advance.
Start your own thread
The tutorials are a reference for these basic and often asked questionsOriginally Posted by april3508
These are in the same place for years
I searched for Congratulations
https://www.zen-cart.com/tutorials/i...hp?article=129
I searched for Sales Message
https://www.zen-cart.com/tutorials/i...hp?article=127