Jump to content

marcoh

Members
  • Content count

    103
  • Joined

  • Last visited

Profile Information

  1. marcoh

    coolMenu

    A little harsh really. The contibution does what it says on the tin and was the only thing available at the time it was submitted. Like every contribution, to have it work for yourself, you need to put some time and effort into adapting it. If you are just wanting to download stuff for free and use it there and then without any work, you will not succeed. I used this menu on three of my accounts, amended them according to how they needed to work and they have worked fantastically. Please remember, the creator of this contribution had done a lot of work and made their work available for others to use free of charge.
  2. marcoh

    coolMenu

    If you already have an admin configuration setup, then just use the same variable to swap between the menu type boxes from the includes/column_left.php file. ie. if (COOLMENU_DISPLAY == 'true') { include(DIR_WS_BOXES . 'coolmenu.php'); }else{ include(DIR_WS_BOXES . 'categories.php'); } Mark
  3. marcoh

    coolMenu

    Hi Paul, The coolmenu.php in the /includes folder is the one that does all the work creating the menu. The SQL commands however, are controlled by the function tep_get_categories in the includes/functions/general.php file. Mark.
  4. nochex_notify.php in the root directory is the return page.
  5. Hi Natalie, By any chance do you have the (Search engine friendly urls) set to true and / or forcing cookie usage rather than seeing the session id in the url? If you do, turn them both off and then try a further transaction from scratch (load the site as if you were a new customer) I have had similar problems with the session not being returned (from a different payment processor) when the friendly urls is turned on and using the cookies. Basically, the cookie was being cleared when moving to the payment site (clear on exit) obviously, the website didn't know we would be coming back after the transaction. no cookie, means no session id. No session means no order to process, no checkout pages etc.... Default would be an empty basket (until you logged back on again) and then the original basket has returned. Note, this may have nothing to do with your problem, but at the same time, it may also be a guide as to where a problem may lie. Mark. If not, then I would suggest you look at a solution around the session id.
  6. marcoh

    coolMenu

    Hi Simon. The menu is not open-source. You will therefore need to go to the udm4.com and purchase / install as per their instructions. The following script will create the necessary unordered list for the menu. CREATE A NEW FILE includes/boxes/udm-menu.php AND COPY THE FOLLOWING SOURCE INTO IT. <?php function tep_get_nav_tree($parent_id = '0', $spacing = '', $ending = '', $category_tree_array = '', $loopcount = '', $extra_line='', $pref='') { global $languages_id, $current_category_id; $categories_query_raw = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and c.parent_id = '" . (int)$parent_id . "' order by c.sort_order"; // first of all check for records if (tep_db_num_rows(tep_db_query($categories_query_raw)) > 0) { if (!$spacing){ $category_tree_array.='<ul id="udm" class="udm">' . "\n"; // create initial block requires id $spacing = "yes"; $loopcount = 1; }else{ $category_tree_array.= "\n" . ' <ul>' . "\n"; // create blocks thereafter if ($extra_line){ $category_tree_array .= $extra_line; $extra_line =''; } $loopcount ++; } $categories_query = tep_db_query($categories_query_raw); while ($categories = tep_db_fetch_array($categories_query)) { // loop for sub-categories. $count_query_raw = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and c.parent_id = '" . (int)$categories['categories_id'] . "' order by c.sort_order"; if (tep_db_num_rows(tep_db_query($count_query_raw)) > 0) { // we have submenu, so don't close the line yet. look for sub menus. $extra_line =''; $category_tree_array .= ' <li><a href="' .tep_href_link(FILENAME_DEFAULT, 'cPath=' . $categories['categories_id']) . '">' . $categories['categories_name'] . '</a>'; $ending ='</li>'; $category_tree_array = tep_get_nav_tree($categories['categories_id'], $spacing, $ending, $category_tree_array, $loopcount, $extra_line, $pref . ''); }else{ // there are no submenus // decide reference depending on category type and echo results. $calculated_link = FILENAME_DEFAULT; $calculated_parameters = 'cPath=' . $categories['categories_id']; $category_tree_array .= ' <li><a href="' . tep_href_link($calculated_link, $calculated_parameters) . '">' . $pref . $categories['categories_name'] . '</a></li>' . "\n"; } } if ($loopcount >1){ $category_tree_array.= '</ul>' . $ending . "\n"; // end block $ending = ''; }else{ $category_tree_array.= '</ul>' . "\n"; // end block } } return $category_tree_array; } ?> <!-- categories //--> <tr> <td class="leftMenu"> <?php echo tep_get_nav_tree(); ?> </td> </tr> All you need to do then is to add this new file. udm-menu.php to your column_left file. ie. include(DIR_WS_BOXES . 'udm-menu.php'); You may have to change the last few lines of that code <td class="leftMenu" etc... to the format of other boxes within the includes. As always, BACKUP EVERYTHING FIRST, this script should work ok, however, like I said in an earlier post, my category structures is nothing like the originals. I've therefore butchered my script somewhat to create this and I have not really been able to test it fully. Hopefully, it will work for you. A note to everyone using this posting, remember the menu is not free, the developers have done some great work, make sure you appreciate it by purchasing their licence. Regards Mark.
  7. marcoh

    coolMenu

    Hi Sheri, Ive sent you a pm with the required code in it. Regards Mark.
  8. marcoh

    coolMenu

    Hi Sheri, Its a little hard to say how I integrated it as my category structuring and facilities is nothing like the basic oscommerce, so just forwarding you a couple of my files will not work. I'll see if I can sort out a script that can crawl through the normal categories structure for you as soon as I get a chance. Regards Mark.
  9. marcoh

    coolMenu

    Hi Joey. With regards to your current problems. 1) After loggin in the menu disapears. This is an easy one by the looks of it and it actually only affects the account.php file. If you look at the source code for this file, you have missed the inclusion of the javascript file. 2) The javascipt error message that is appearing on all of the pages is due to some scripting errors. If you look at the file coolmenu.php within the boxes folder. (Double check that this is the correct file) then you will see some lines which are producing html as follows: There is errors within this scripting (see beside red text) because firstly, it is saying there is javascript which manually writes a row and column. Then pure html is written, however, the javascript has not been closed off. Then javascipt is written again. Check the code within this file to make sure that everything has been copied correctly. if you are still having problems, post a copy of the file here so that I can have a look at it. Hope this helps to resolve your problems. Regards Mark.
  10. Ooops, too early in the morning, hit the add button above before typing in my reply Dohhhhhh! Hi Steven, The most logical explanation to the error you are getting would be a missing ; (semi-colon) at the end of line 58 in your database_tables.php file. Presumably, line 59 is the new line that you added. The other explanation would be that one of your values in line 59 is not with in single quotation marks. Mark
  11. marcoh

    coolMenu

    Shaun, I've just looked at the source on your index.php page and its showing both the coolmenu contrib and the standard categories box and that is where your problem lies. When using the coolmenu contrib, when javascript is enabled, the box under it should only contain a large transparent image and no text. The size of the box is then controlled by the $height variable. I would therefore look at your leftcolumn.php file and also the coolmenu.php file to see where the problem is. Mark.
  12. marcoh

    coolMenu

    Hi Get-Wireless. Unless I'm mistaken, I thought the original categories box was created using the <NO SCRIPT> section of the javascript. If I'm right, then you shouldn't be running the original categories section and should actually have a blank box with a large transparent image in it. I would double check your installation. Mark.
  13. HI Matthew, The doesn't seam to be any problem with your filenames.php file. The only other place where there may be a problem is with the nochexapc.php within your catalog/includes/modules/payment folder. Look for the line (approx line 40): $this->form_action_url = tep_href_link(FILENAME_CHECKOUT_NOCHEXAPC,'','SSL'); Make sure there are no quotation marks around the FILENAME_CHECKOUT_NOCHEXAPC The only other thing that I can think of is if you are using a shared SSL. If you are, you have to make sure you have copied the filenames.php file onto the shared ssl server as well. Hope this helps. Mark.
  14. Matthew, do you want to put your filenames.php up for viewing, or pm it to me. Mark.
×