Results 1 to 10 of 2247

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Forum

    I have successfully installed the script (on Zen 1.3.9), sideboxes/search etc are all working, but am having a problem with my custom tpl_header.php file.

    The version of the file I have for my template does not seem to call the cat_filter function. I am not a php programmer, but think the bit of code that needs to change is shown below. Can anyone tell me what I need to code so that when the menu is created, it filters out the categories which are not meant to be shown for that site... at the moment, all categories are shown regardless of what sitename is put in the admin screen against the categores.

    Thanks in advance.

    <div class="horizontal-cat">
    <!--bof-drop down menu display-->
    <!-- menu area -->

    <div id="dropMenuWrapper">
    <div id="dropMenu">

    <ul class="level1">

    <?php
    $categories_query = mysql_query("select c.categories_status, c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = '1' and c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$_SESSION['languages_id'] ."' order by sort_order, cd.categories_name LIMIT 0,10");
    while ($categories = mysql_fetch_array($categories_query)) {
    ?>
    <?php
    if (zen_has_category_subcategories($categories['categories_id']) > 0) {
    $class = ' class="submenu"';
    }
    ?>
    <li<?php echo $class;?>><a href="<?php echo zen_href_link(FILENAME_DEFAULT, 'cPath='.$categories['categories_id']); ?>"><?php echo $categories['categories_name']; ?></a>

    <?php
    if (zen_has_category_subcategories($categories['categories_id']) > 0) {
    ?>
    <ul class="level2">
    <?php
    $categories_query_1 = mysql_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '".$categories['categories_id']."' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$_SESSION['languages_id'] ."' order by sort_order, cd.categories_name LIMIT 6");
    while ($categories_1 = mysql_fetch_array($categories_query_1)) {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_DEFAULT, 'cPath='.$categories['categories_id'].'_'.$categories_1['categories_id']); ?>"><?php echo $categories_1['categories_name']; ?></a></li>
    <?php } ?>
    </ul>
    <?php } ?>
    </li>
    <?php } ?>


    </ul>
    </div>
    </div>
    <div class="clearBoth"></div>
    <!--eof-drop down menu display-->
    </div>
    </div>

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: MultiSite Module Support Forum

    Quote Originally Posted by Keith2000 View Post
    I have successfully installed the script (on Zen 1.3.9), sideboxes/search etc are all working, but am having a problem with my custom tpl_header.php file.
    Thought I might be able to help at first, but the only location I know for the cat_filter is after a $db->Execute which isn't present. I'm afraid I too don't know enough about php to help.

  3. #3
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Approved and Declined URL's

    I am sure the answer is in here somewhere, but unfortunately I am extremely pressed for time, so maybe someone could just point me in the right direction.

    I am running 2 sites, af-company.com and canada.af-company.com

    I am setting up my payment module and using the config_sites I am adding my different settings to process the 2 sites, everything is fantastic so far. Where I'm running into problems is in the approved and declined URL's. I have the it currently set to
    http://af-company.com/cart/index.php...eckout_process
    which works beautifully for my American site.
    However for the Canadian, I assumed I would need to use
    http://canada.af-company.com/cart/in...eckout_process
    but that gives me a File not Found error. If I used the other one, it takes me to the American site.

    I put a copy of the file /public_html/includes/modules/checkout_process.php into my Canadian template so it is also located at
    /public_html/includes/modules/canadiantemplate/checkout_process.php
    but apparently that didn't help.

    Could someone pretty please let me know what my URL is supposed to be or where I need to put a file.
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Approved and Declined URL's

    Hello marge, are you sure the address is
    HTML Code:
    http://canada.af-company.com/cart/index.php?main_page=checkout_process
    and not
    HTML Code:
    http://canada.af-company.com/index.php?main_page=checkout_process

  5. #5
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Approved and Declined URL's

    Thanks Design75, It was actually a bad post job on my part. I didn't have the /cart actually in there, I had already edited it out. Very long day apparently.
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  6. #6
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Approved and Declined URL's

    No problem . Glad you got it fixed

  7. #7
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Approved and Declined URL's

    Actually don't worry about it. Apparently a quick clear of the cache and everything is working now. Wow, I'm not always sure what planet I'm working on.
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

 

 

Similar Threads

  1. v154 WorldPay Module version 3.0 - Support thread
    By countrycharm in forum Addon Payment Modules
    Replies: 116
    Last Post: 31 Dec 2025, 11:36 AM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. WorldPay Module version 2.0 - Support thread
    By philip_clarke in forum Addon Payment Modules
    Replies: 729
    Last Post: 4 Nov 2017, 08:23 AM
  4. PC Configurator Module [Support Thread]
    By lebrand2006 in forum All Other Contributions/Addons
    Replies: 254
    Last Post: 22 Aug 2012, 03:52 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