Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: Help with Merging PHP Code

    TYPO near the top.. I didn't mean to put the "And ADD" just before the <!--// bof: <Anything here that is exact in both files> //--> I Screwed that all up. that was the EOF. My timer ran out when I was editing my post.. sorry
    And ADD
    <!--(BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)-->
    and ADD any code between these lines to existing abagon template file

    <!--(EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)-->
    (Even though this particular file didn't have any <!--(BOF - 2.1) Responsive DIY Template Default for 1.5.x (65) files in it)
    Last edited by Johnnycopilot; 11 Mar 2015 at 02:31 AM.

  2. #2
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: Help with Merging PHP Code

    Merging tpl_header.php's together is beyond my ability. I'm stuck on this one and the main_page (above post). Any help is GREATLY Appreciated
    Here is the "Responsive DIY" tpl_header.php page
    PHP Code:
    <?php
    /**
     * Common Template - tpl_header.php
     *
     * 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_footer.php to /templates/my_template/privacy/tpl_header.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_header = true;<br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2012 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 GIT: $Id: Author: Ian Wilson  Tue Aug 14 14:56:11 2012 +0100 Modified in v1.5.1 $
     * Added by rbarbour (ZCAdditions.com), Responsive DIY Template Default for 1.5.x (65)
     */
    ?>

    <?php
      
    // Display all header alerts via messageStack:
      
    if ($messageStack->size('header') > 0) {
        echo 
    $messageStack->output('header');
      }
      if (isset(
    $_GET['error_message']) && zen_not_null($_GET['error_message'])) {
      echo 
    htmlspecialchars(urldecode($_GET['error_message']), ENT_COMPATCHARSETTRUE);
      }
      if (isset(
    $_GET['info_message']) && zen_not_null($_GET['info_message'])) {
       echo 
    htmlspecialchars($_GET['info_message'], ENT_COMPATCHARSETTRUE);
    } else {

    }
    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <?php
    /**
     ******************************* BOF 2.1 **********************************
     */
    ?>
    <div id="headerWrapper" class="<?php echo $fluidisFixed?>">
    <?php
    /**
     ******************************* EOF 2.1 **********************************
     */
    ?>
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
    <?php }?>

    <?php

    /**
     ******************************* BOF 2.1b **********************************
     */

    if ($detect->isMobile() && !$detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') { ?>

    <?php if (SHOW_GOTO_DESKTOP_FROM_MOBILE == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isDesktop') . '">' ZCA_DESKTOP_LINK_TEXT '</a></li>'?><?php ?>

    <?php if (SHOW_GOTO_TABLET_FROM_MOBILE == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isTablet') . '">' ZCA_TABLET_LINK_TEXT '</a></li>'?><?php ?>

    <?php } else if ($detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){ ?>

    <?php if (SHOW_GOTO_MOBILE_FROM_TABLET == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isMobile') . '">' ZCA_MOBILE_LINK_TEXT '</a></li>'?><?php ?>

    <?php if (SHOW_GOTO_DESKTOP_FROM_TABLET == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isDesktop') . '">' ZCA_DESKTOP_LINK_TEXT '</a></li>'?><?php ?>

    <?php } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){ ?>

    <?php if (SHOW_GOTO_MOBILE_FROM_DESKTOP == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isMobile') . '">' ZCA_MOBILE_LINK_TEXT '</a></li>'?><?php ?>

    <?php if (SHOW_GOTO_TABLET_FROM_DESKTOP == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isTablet') . '">' ZCA_TABLET_LINK_TEXT '</a></li>'?><?php ?>

    <?php } else { ?>

    <?php if (SHOW_GOTO_MOBILE_FROM_DESKTOP == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isMobile') . '">' ZCA_MOBILE_LINK_TEXT '</a></li>'?><?php ?>

    <?php if (SHOW_GOTO_TABLET_FROM_DESKTOP == 'true') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isTablet') . '">' ZCA_TABLET_LINK_TEXT '</a></li>'?><?php ?>

    <?php if (SHOW_GOTO_NONRESPONSIVE_FROM_DESKTOP == 'true') {
    if (
    $_SESSION['display_mode']=='isNonResponsive') { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isResponsive') . '">' ZCA_RESPONSIVE_LINK_TEXT '</a></li>'?><?php } else { ?>
    <li><a href="<?php echo zen_href_link($current_page_basezen_get_all_get_params(array('display_mode')) . 'display_mode=isNonResponsive') . '">' ZCA_NONRESPONSIVE_LINK_TEXT '</a></li>'?><?php ?>

    <?php ?>

    <?php 

    /**
     ******************************* EOF 2.1b **********************************
     */

    ?>

    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline">

    <!-- ******************** EXAMPLE FOR 2.1b********************  -->
    <!-- BOF: Per File, Device Type Javascript  -->
    <?php
    /**
     * 2.0 utilizes php-mobile-detect, allows us to use different Javascript for different devices.
     */

    if ($detect->isMobile() && !$detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') { ?>

    <script type="text/javascript">
            document.write('This must be a Mobile phone!')
          </script>

    <?php } else if ($detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){ ?>

          <script type="text/javascript">
            document.write('This must be a Tablet!')
          </script>
            
    <?php } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){ ?>

          <script type="text/javascript">
            document.write('This must be a Non-Responsive Desktop!')
          </script>

    <?php } else { ?>

          <script type="text/javascript">
            document.write('This must be a Desktop!')
          </script>

    <?php ?>
    <br />
    <!-- EOF: Per File, Device Type Javascript  -->
    <!-- ******************** EXAMPLE FOR 2.1b********************  -->

    <?php echo HEADER_SALES_TEXT;?>

    </div>
    <?php
                  
    }
    ?>
    <?php
                  
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2)) {
                    if (
    $banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static'$banner);?></div>
    <?php
                    
    }
                  }
    ?>
        </div>
    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->

    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
    <?php 
    require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php 
    ?>
    <!--eof-header ezpage links-->
    </div>
    <?php ?>
    and here is my Abagon template tpl_header.php
    PHP Code:
    <?php
    /**
    * Template designed by 12leaves.com
    * 12leaves.com - Free ecommerce templates and design services
    *
    * Common Template

    * @package languageDefines
    * @copyright Copyright 2009-2010 12leaves.com
    * @copyright Copyright 2003-2006 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_header.php 4813 2006-10-23 02:13:53Z drbyte $
    */
     
    function fn_print_r()
    {
        static 
    $count 0;
        
    $args func_get_args();

        if (!empty(
    $args)) {
            echo 
    "<div align='left' style='font-family: Courier; font-size: 13px;'><pre>";
            foreach(
    $args as $k => $v){
                echo 
    "<b>Debug [$k/$count]:</b>";
                @
    ob_start();
                
    print_r($v);
                
    $bdata = @ob_get_contents()."\n";
                @
    ob_end_clean();
                echo 
    htmlspecialchars($bdata);
            }
            echo 
    "</pre></div>";
        }
        
    $count++;
    }
    ?>

    <?php
      
    // Display all header alerts via messageStack:
      
    if ($messageStack->size('header') > 0) {
        echo 
    $messageStack->output('header');
      }
      if (isset(
    $_GET['error_message']) && zen_not_null($_GET['error_message'])) {
        echo 
    htmlspecialchars(urldecode($_GET['error_message']));
      }
      if (isset(
    $_GET['info_message']) && zen_not_null($_GET['info_message'])) {
        echo 
    htmlspecialchars($_GET['info_message']);
      } else {
      }

    // test if box should display
      
    $show_languagestrue;

      if (
    $show_languages == true) {
        if (!isset(
    $lng) || (isset($lng) && !is_object($lng))) {
          
    $lng = new language;
        }

        
    reset($lng->catalog_languages);
        
    $languages_array = array();
        
    $current_language '';    
          while (list(
    $key$value) = each($lng->catalog_languages)) {
            
    $languages_array_popup[$key] = $value['name'];
          }
         
        foreach (
    $languages_array_popup as $k => $v){
            if (
    $k == $_SESSION['languages_code']) {
                
    $current_language $v;
            }
        }
      }

    ?>

    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

    <div id="headerWrapper">
        <div class="center-upper-bg centered-wrapper"></div>

        <div class="body-bg">
            <div class="header_wrapper">

              <div class="header-tools">
               <!--bof-branding display-->
                    <div id="logoWrapper"><div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>';?></div>
                    </div>
                    <div class="float-right">
                    <!--bof-header ezpage links-->
                    <div class="topper-menu float-right">
                    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
                    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
                    <?php ?>
                    </div>
                    <!--eof-header ezpage links-->


                   <!-- Languages/currency -->
                   <div class="languages-wrapper">
                   
                   <div class="nav-languages float-right">
         
                    <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) {
                        
    $lng = new language;
                    }
             
                    
    reset($lng->catalog_languages);

                    if (
    count ($lng->catalog_languages) > 1){
             
                        while (list(
    $key$value) = each($lng->catalog_languages)) {
                            echo 
    '<a href="' zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language''currency')) . 'language=' $key$request_type) . '">' zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], ''''' style="vertical-align:middle;"') . '</a>&nbsp;';
                        }
                    }
                    
    ?>
                    </div>  <!-- nav language -->
            
                   <?php   
                      
    if (isset($currencies) && is_object($currencies) && count ($currencies->currencies) > 1){
                   
    ?>
                      <div class="currency">
                      <?php require($template->get_template_dir('tpl_currency_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_currency_header.php'); ?>
                    
                        <div id="currPopup" class="popup popup-win hidden">
                          <img id="close-pic" class="close-pic float-right" src="<?php echo ($template->get_template_dir(''DIR_WS_TEMPLATE$current_page_base,'images'). '/close_pic.gif'); ?>" alt="close" />
                          <ul class="list-popup">
                            <?php foreach ($currencies_array_popup as $k=>$v) { ?>
                                <li><a href="<?php if ((stripos($_SERVER['REQUEST_URI'], '.php')) !== false ) echo $_SERVER['REQUEST_URI']; else echo '?'?><?php echo '&amp;currency='.$k?>"><?php echo $v?></a></li>
                            <?php }?>
                          </ul>
                        </div>
                      </div>
                   <?php
                    

                   
    ?>                  
                   </div>  
    <div class="clearBoth"></div>               
                   <div id="login_logout_section" class="float-right">
                    <!--login-->
                    <?php if ($_SESSION['customer_id']) { ?>
                             <?php echo(TOP_MENU_HELLO);?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a>
                             <span>&nbsp;|&nbsp;</span>
                          <a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a>
                   <?php
                       
    } else {
                       if (
    STORE_STATUS == '0') {
                   
    ?>
                   <?php echo LOGIN_WELCOME?>
                       <a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a>
                      <span>&nbsp;or&nbsp;</span>
                   <?php echo REGISTER_WELCOME?>
                      <span><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_REGISTER?></a></span>
                   <?php } } ?>
                   <!--/login-->    
                   </div>
                   
                   <div align="right" class="cart-header-wrapper">
                          <!-- header cart section -->
                          <table align="right" class="align-center cart-header">
                            <tr>
                               <td>
                                   <div class="hidden cart-dropdown-wrapper">
                                      <div class="cart-tab-wrapper"><img src="<?php echo $template->get_template_dir(''DIR_WS_TEMPLATE$current_page_base,'images')?>/spacer.gif" width="1" height="1" alt="" /></div>
                                   </div>
                               </td>
                               <td>
                                    <?php require($template->get_template_dir('tpl_shopping_cart_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_shopping_cart_header.php'); 
                                    echo 
    $content;?>        
                               </td>
                            </tr>
                        </table>
                    </div>
                   
                   </div>
                   <div class="clearBoth"></div>
                   <div class="main_menu_panel">
                   <?php require($template->get_template_dir('tpl_top_nav.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_top_nav.php'); ?>
                   <!--search-->
                    <div class="search-header">
                           <?php require($template->get_template_dir('tpl_search_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_search_header.php');?>
                           <!--    <div class="advanced_search float-left">
                                <a href="index.php?main_page=advanced_search"><?php/* echo HEADER_ADVANCED_SEARCH;*/ ?></a>
                                </div>-->
                    </div>
                    <!--/search-->

              </div>
              <!--eof-branding display-->
            </div>

              <!--bof-optional categories tabs navigation display-->
              <?php
                
    if (CATEGORIES_TABS_STATUS == '1') {
                   require(
    $template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); 
                } 
    ?>
              <!--eof-optional categories tabs navigation display-->


    <!--bof-banner #1 display -->
    <?php
    if ($this_is_home_page) {
      if (
    SHOW_BANNERS_GROUP_SET1 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET1)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    }
    ?>
    <!--eof-banner #1 display -->

          </div>
        </div>
    </div>
    <?php ?>
    <!--eof-header logo and navigation display-->
    Any help is GREATLY Appreciated. I have got to get my website mobile responsive. Thanks!!!
    Last edited by Johnnycopilot; 11 Mar 2015 at 03:03 AM.

  3. #3
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: Help with Merging PHP Code

    If I can get help merging tpl_main_page.php & tpl_header.php I'll be on the way to getting my site mobile responsive. I'm stuck. Thanks!!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Help with Merging PHP Code

    Quote Originally Posted by Johnnycopilot View Post
    If I can get help merging tpl_main_page.php & tpl_header.php I'll be on the way to getting my site mobile responsive. I'm stuck. Thanks!!
    So, thing is it's not a one-for-one replacement of everything between various bof/eof flags,it would probably be better to compare the provided file to a stock zc file of the version used to make the responsive template.

    There are some aspects of the responsive template required for it to turn things on and off, but there are also aspects of your templated version to give it the look and positioning of your template. It is the differences between the default template and the responsive that give the responsive functionality, and it is the differences between the default template and your template that give your template... The differences need to be accumulated to provide both.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: Help with Merging PHP Code

    Quote Originally Posted by mc12345678 View Post
    it would probably be better to compare the provided file to a stock zc file of the version used to make the responsive template.
    Thanks mc12345678. hmm.. To me, PHP looks like a bunch of unrecognizable digits placed one after the other. Because I don't know what the code is saying or trying to do, when it comes to code in the middle of a section or phrase, I'm stuck. I can't even make an Educated Guess. And there are too many variables for me to change, check, change, check, etc. because, among other things, there could be bad unintended consequences that I don't even see or notice. Would anyone here be willing to give it a shot? Google has said they are going to stop showing indexing results to people searching on mobile devices unless the sites are mobile friendly. If anybody wants to try and merge those 2 files for me, and I don't get the desired results, I would still appreciate it. I can always uninstall. I merged the footer myself with some guesswork, but these have even more variables.
    Last edited by Johnnycopilot; 12 Mar 2015 at 06:02 PM.

  6. #6
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Help with Merging PHP Code

    wouldn't it be easier to pick up the "Business Responsive" theme from 12leaves and tweek the stylesheet for the sames colors as the aBabon template? I put them side by side and that seems to me to be much easier than what your trying to do.....and yes, I realize it means spending some money on the additional template, but the total cost of both templates is far cheaper than the hourly cost to have someone crawl through and make the changes needed to get the current template responsive.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. v139h help with my php code
    By wilsonshen in forum General Questions
    Replies: 3
    Last Post: 13 Mar 2014, 04:41 AM
  2. Need detailed help with comparing and merging override files with winmerg
    By AirsoftOutfitter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 31 Aug 2010, 07:52 AM

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