MagneticOne Support Forum
  MagneticOne Support Forum > osCommerce Shopping Cart > osCommerce Make-A-Deal
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2011, 10:40 PM
imanewbe imanewbe is offline
Junior Member
 
Join Date: Mar 2011
Posts: 1
imanewbe is on a distinguished road
Default [Resolved] cannot find line in file when installing

Hey. Im trying to install the Make-A-Deal module for Zen Cart v1.3.9.

In the installation instructions on https://docs.google.com/View?docid=dff4j2j5_49ff8br8x4 it says "locate the line <div id="mainWrapper"> "
This line is not in the file.

Code:
<?php
/**
 * Common Template - tpl_main_page.php
 *
 * Governs the overall layout of an entire page<br />
 * Normally consisting of a header, left side column. center column. right side column and footer<br />
 * For customizing, this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * - make a directory /templates/my_template/privacy<br />
 * - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />
 * <br />
 * to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />
 * to turn off the header and/or footer uncomment the lines below<br />
 * Note: header can be disabled in the tpl_header.php<br />
 * Note: footer can be disabled in the tpl_footer.php<br />
 * <br />
 * $flag_disable_header = true;<br />
 * $flag_disable_left = true;<br />
 * $flag_disable_right = true;<br />
 * $flag_disable_footer = true;<br />
 * <br />
 * // example to not display right column on main page when Always Show Categories is OFF<br />
 * <br />
 * if ($current_page_base == 'index' and $cPath == '') {<br />
 *  $flag_disable_right = true;<br />
 * }<br />
 * <br />
 * example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
 * <br />
 * if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
 *  $flag_disable_right = true;<br />
 * }<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_main_page.php 7085 2007-09-22 04:56:31Z ajeh $
 */
?>

<?php
// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  }


  $header_template = 'tpl_header.php';
  $footer_template = 'tpl_footer.php';
  $left_column_file = 'column_left.php';
  $right_column_file = 'column_right.php';
  $body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
<?php
 /**
  * prepares and displays header output
  *
  */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_header = true;
  }
  require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');

?>

    <div class="content">
	<?php require($body_code); ?>
    </div>


<?php
 /**
  * prepares and displays footer output
  *
  */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_footer = true;
  }
  require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>

Any idea where i would add in the lines needed?

Cheers
Reply With Quote
  #2  
Old 03-22-2011, 03:28 PM
sasha's Avatar
sasha sasha is offline
Super Moderator
Forum Moderator
 
Join Date: Dec 2009
Posts: 241
sasha is on a distinguished road
Default

Hello,

Thank you for contacting us.

The mentioned line should be available at default Zen Cart. Does your shopping cart is customized?
__________________
Thank you,
Oleksandr
------------------
MagneticOne Team
Reply With Quote
  #3  
Old 03-28-2011, 09:57 PM
imanewbe imanewbe is offline
Junior Member
 
Join Date: Mar 2011
Posts: 1
imanewbe is on a distinguished road
Default

no. im using the template template_default
Reply With Quote
  #4  
Old 03-29-2011, 09:10 AM
sasha's Avatar
sasha sasha is offline
Super Moderator
Forum Moderator
 
Join Date: Dec 2009
Posts: 241
sasha is on a distinguished road
Default

Hi,

Thank you for your reply.

Can you please try to insert the code berore the following:

PHP Code:
<?php
 
/**
  * prepares and displays header output
  *
  */
Please let us know how it goes.
__________________
Thank you,
Oleksandr
------------------
MagneticOne Team
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



MagneticOne forums © 2008-2010 Innovative Software Development.
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.