Jump to content


  • Content count

  • Joined

  • Last visited

About potatocake

  • Birthday 01/01/2006

Profile Information

  1. potatocake

    World Zones

    Was wondering if you or anyone has found a fix for this? If there isnt a fix for this and you installed the world zones by wdepot you will get errors with zones with special chars in the text file. Eg. Try creating an account with Faroe Islands or Norway on your store.
  2. potatocake

    URGENT: FuturePay integration

    Hi, I have installed WorldPay Junior Select on to my site and have gotten activation from worldpay to go from Test to Live. I would like some help urgently on how to integrate Futurepay on to my site. The only contribution I found was for just WorldPay not WorldPay Junior Select and it is not very helpful to modify for Junior Select as it shows I am suppose to add code after a particular line that cant be found. The URL for this addon is as follows: Futurepay addon If anyone has integrated futurepay successfully please reply to this thread or send me a pm. Or if this question has been answered if you could please point me to the right thread, I have used the search functions and found that most futurepay threads were not answered. Need help asap. Thank You
  3. potatocake

    "Dynamenu" for osCommerce

    Hi, I've just recently setup the Horizontal drop-down menu into my oscommerce site. My question is - why doesnt the subcategories expand from the main category untill u have clicked the main category? i.e: i have 4 categories - A, B, C & D . Category A and category B has subcategories. When I mouseover category A or B, a drop-down menu does not appear. The drop-down menu appears only after I have clicked on the main category (A or B). What do I have to change so that the drop-down sub-categories will show when I mouseover the main category? Below is my dm_categories.php ; <?php /* $Id: dm_categories.php,v 1.00 2006/05/07 01:13:58 nate_02631 Exp $ Ties the store category menu into the PHP Layers Menu library, allowing display of categories as DTHML drop-down or fly-out menus, collapsable tree-style menus or horizontal/vertical indented plain menus. osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2006 Nate Welch http://www.natewelch.com Released under the GNU General Public License */ // BEGIN Configuration Options // Set the value below corresponding to the type of menu you want to render // 0 = Horizontal Drop-down; 1 = Vertical Flyout; 2 = Tree Menu; // 3 = Plain Horizontal Menu; 4 = Plain Vertical Menu // Include the appropriate stylesheet in your store stylesheet, and if rendering // types '0' or '1', you must also echo (output) the "menu footer" variable // in your store footer as described in the readme (or submenus won't work) $menu_type = 0; // Set to false to display the menu output only. Set to true to display in // a regular box. The former is useful for better integrating the menu with your layout. $show_dmcats_as_box = false; // Set to 'true' to assign TITLE tags to each of the menu's items, 'false' to leave blank $menu_use_titles = false; // Name of the icon file to be used preceding menu items. Leave blank for no icons. // NOTE: Does not apply to plain style menus. Icon should be in the /images directory $menu_icon_file = ''; // Width and height of icons used in menus (does not apply to plain menus). $menu_icon_width = 16; $menu_icon_height = 16; // Set the graphic to be used for the forward arrow and down arrow images used in // drop-down and fly-out menus. Images must reside in your catalog's /images directory $menu_fwdarrowimg = 'forward-arrow.png'; $menu_downarrowimg = 'down-arrow.png'; // Indicates whether or not to render your entire category list or just the root categories // and the currently selected submenu tree. Rendering the full list is useful for dynamic menu // generation where you want the user to have instant access to all categories. The other option // is the default oSC behaviour, when the subcats aren't available until the parent is clicked, // more suitable for plain-style menus $show_full_tree = true; // For tree menus, set to true to have only nodes corresponding to the current category path // expanded. If set to false, the tree menu will retain expanded/collapse nodes the user has // selected (as well as expanding any for categories they've entered) $menu_tree_current_path = true; // Set the three numerical values below to adjust the offset of submenus in // horizontal drop-down and vertical fly-out menus. Values adjust the following (in order) // Top Offset: # of pixels from top border of previous menu the submenu appears // Right Offset: # of pixels from right border of previous menu the submenu appears // Left Offset: # of pixels from left border of previous menu the submenu appears // if the submenu pops to left (i.e. if window border is reached). Negative values are allowed. $menu_layer_offset = array (0,4,4); // Show icons on tree menus? If set to false, only expand/collapse icons and connecting lines are shown $GLOBALS['dm_tree_folder_icons'] = true; // This is the HTML that you would like to appear before/after your categories menu if *not* // displaying in a standard "box". This is useful for reconciling tables or clearing // floats, depending on your layout needs. For example if not including in a box in the // default osC template, you would need opening/closing <tr><td> tags... $before_nobox_html = ''; $after_nobox_html = ''; // Use this option if you have a *lot* of subcategories in a DHTML style menu and your // submenus won't fit on the page. Set $divide_subcats to the max # of subcategories you want // to display. The menu will show a "more..." link and display the remaining subcategories // under that selection. Leave at "0" to not divide your subcategories. $divide_subcats = 0; // The text you want to display to indicate more subcategories are available // This can be set a string or to a language constant you define. $divide_subcats_text = 'more...'; // END Configuration Options // Misc setting to make folder icon clickable to expand tree menu nodes $GLOBALS['dm_tree_titleclick'] = true; // Initialize HTML and info_box class if displaying inside a box if ($show_dmcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); } // Generate the menu data output (uses configuration options above) $categories_string = tep_make_cat_dmlist(); // Include required libraries based on menu type require_once 'includes/functions/dynamenu/lib/PHPLIB.php'; require_once 'includes/functions/dynamenu/lib/layersmenu-common.inc.php'; if ($menu_type < 2) { // Setup for DHTML style menus ?> <script language="JavaScript" type="text/javascript"> <!-- <?php require_once 'includes/functions/dynamenu/libjs/layersmenu-browser_detection.js'; ?> // --> </script> <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layersmenu.js"></script> <?php require_once 'includes/functions/dynamenu/lib/layersmenu.inc.php'; $mid = new LayersMenu($menu_layer_offset[0],$menu_layer_offset[1],$menu_layer_offset[2],1); } elseif ($menu_type > 2) { // Setup for plain style menus require_once 'includes/functions/dynamenu/lib/plainmenu.inc.php'; $mid = new PlainMenu(); } else { // Setup for tree style menus ?> <script language="JavaScript" type="text/javascript"> <!-- <?php require_once 'includes/functions/dynamenu/libjs/layersmenu-browser_detection.js'; ?> <?php if ($menu_tree_current_path) { echo "\n".'var menu_tree_current_path = true'; } else { echo "\n".'var menu_tree_current_path = false'; } ?> // --> </script> <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layerstreemenu-cookies.js"></script> <?php require_once 'includes/functions/dynamenu/lib/treemenu.inc.php'; $mid = new TreeMenu(); } // Set menu config variables $mid->setDirroot('./'); $mid->setLibjsdir('./includes/functions/dynamenu/libjs/'); if ($menu_type !=2) { $mid->setTpldir('./includes/functions/dynamenu/templates/'); } $mid->setImgdir('./images/'); $mid->setImgwww('images/'); $mid->setIcondir('./images/'); $mid->setIconwww('images/'); $mid->setIconsize($menu_icon_width, $menu_icon_height); // Generate menus $mid->setMenuStructureString($categories_string); $mid->parseStructureForMenu('catmenu'); switch ($menu_type) { case 0: // Horizontal drop-down $mid->setDownArrowImg($menu_downarrowimg); $mid->setForwardArrowImg($menu_fwdarrowimg); $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu.ihtml'); $mid->setSubMenuTpl('layersmenu-horiz_sub_menu.ihtml'); $mid->newHorizontalMenu('catmenu'); $mid->printHeader(); $categories_menu = $mid->getMenu('catmenu'); $GLOBALS['dmfooter'] = $mid->getFooter(); break; case 1: // Vertical fly-out $mid->setDownArrowImg($menu_downarrowimg); $mid->setForwardArrowImg($menu_fwdarrowimg); $mid->setVerticalMenuTpl('layersmenu-vertical_menu.ihtml'); $mid->setSubMenuTpl('layersmenu-vert_sub_menu.ihtml'); $mid->newVerticalMenu('catmenu'); $mid->printHeader(); $categories_menu = $mid->getMenu('catmenu'); $GLOBALS['dmfooter'] = $mid->getFooter(); break; case 2: // Tree menu $categories_menu = $mid->newTreeMenu('catmenu'); break; case 3: // Horizontal plain menu $mid->setPlainMenuTpl('layersmenu-horizontal_plain_menu.ihtml'); $categories_menu = $mid->newHorizontalPlainMenu('catmenu'); break; case 4: // Vertical plain menu $mid->setPlainMenuTpl('layersmenu-plain_menu.ihtml'); $categories_menu = $mid->newPlainMenu('catmenu'); break; } // Output list inside a box if specified, otherwise just output unordered list if ($show_dmcats_as_box) { $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_menu); new infoBox($info_box_contents); echo '</td></tr>'; } else { echo $before_nobox_html; echo $categories_menu; echo $after_nobox_html; } // Create the root category list function tep_make_cat_dmlist($rootcatid = 0, $maxlevel = 0){ global $cPath_array, $show_full_tree, $languages_id; global $idname_for_menu, $cPath_array, $show_full_tree, $languages_id; // Modify category query if not fetching all categories (limit to root cats and selected subcat tree) if (!$show_full_tree) { $parent_query = 'AND (c.parent_id = "0"'; if (isset($cPath_array)) { $cPath_array_temp = $cPath_array; foreach($cPath_array_temp AS $key => $value) { $parent_query .= ' OR c.parent_id = "'.$value.'"'; } unset($cPath_array_temp); } $parent_query .= ')'; } else { $parent_query = ''; } $result = tep_db_query('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 cd.language_id="' . (int)$languages_id .'" '.$parent_query.'order by sort_order, cd.categories_name'); while ($row = tep_db_fetch_array($result)) { $table[$row['parent_id']][$row['categories_id']] = $row['categories_name']; } $output .= tep_make_cat_dmbranch($rootcatid, $table, 0, $maxlevel); return $output; } // Create the branches off the category list function tep_make_cat_dmbranch($parcat, $table, $level, $maxlevel) { global $cPath_array, $menu_use_titles, $menu_icon_file, $divide_subcats, $divide_subcats_text; $lvl_adjust = 1; $list = $table[$parcat]; // Build data for menu while(list($key,$val) = each($list)){ if (isset($cPath_array) && in_array($key, $cPath_array)) { $this_expanded = '1'; $this_selected = 'dmselected'; } else { $this_expanded = ''; $this_selected = ''; } if (!$level) { unset($GLOBALS['cPath_set']); $GLOBALS['cPath_set'][0] = $key; $cPath_new = 'cPath=' . $key; } else { $GLOBALS['cPath_set'][$level] = $key; $cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1))); $this_subcat_count++; } if ($menu_use_titles) { $this_title = $val; } else { $this_title = ''; } if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($key); if ($products_in_category > 0) { $val .= ' (' . $products_in_category . ')'; } } // Output for file to be parsed by PHP Layers Menu // Each line (terminated by a newline "\n" is a pipe delimited string with the following fields: // [dots]|[text]|[link]|[title]|[icon]|[target]|[expanded] // dots - number of dots signifies the level of the link '.' root level items, '..' first submenu, etc.... // text - text for link; title - tooltip for link; icon - icon for link; target - "dmselected" CSS class if item is selected // expanded - signifies if the node is expanded or collapsed by default (applies only to tree style menus) // Add "more" submenu if dividing subcategories if ($this_subcat_count > $divide_subcats && $divide_subcats) { $output .= str_repeat(".", $level+$lvl_adjust).'|'.$divide_subcats_text.'||'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded."\n"; $this_subcat_count = 1; $lvl_adjust ++; } $output .= str_repeat(".", $level+$lvl_adjust).'|'.$val.'|'.tep_href_link(FILENAME_DEFAULT, $cPath_new).'|'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded."\n"; if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) { $output .= tep_make_cat_dmbranch($key,$table,$level + $lvl_adjust,$maxlevel); } } // End while loop return $output; } ?>
  4. Hi, I just installed this contribution and its working great but I have a question. I have multiple currencies on my site with AUD as default but when I set an option value of a product attribute to be a certain amount for example: AUD40 and when the user switch currencies to USD this amount gets converted. Is there any way to stop this conversion? As I would like to set it as the amount of 40 for all currencies. So say: Currency is selected as AUD Product A Option Price = AUD40 Currency is selected as USD Product A Option Price = USD40 If any1 has any idea that a contribution or modification to the OTF that would do that, i would very much like some help or information. :) thank you
  5. potatocake

    Supertracker Development

    any1 know if the latest supertracker 3.3 has the agent update?
  6. Need some help just installed the latest CCGV at http://www.oscommerce.com/community/contributions,282 Am having the following error in /includes/modules/payment/paypal_standard.php Fatal error: Call to a member function update_credit_account() on a non-object in includes/modules/payment/paypal_standard.php on line 471 This is when returning from paypal site after the transaction has gone through. It has the CCGV fix describe on the site. It is kinda urgent so if anyone has any idea why it would be great.
  7. potatocake

    NewsDesk v1.48 Support

    The previous post stating demo of newsdesk cant be viewed either
  8. potatocake

    NewsDesk v1.48 Support

    Hi, I am thinking of installing newsdesk contribution but could someone show me a live demo of it in english. So far the only one Ive found is in persian...cant read persian unfortunately. Also for most newsdesk users which release is the most stable at this point? Thank you
  9. potatocake

    How to create the rss.xml file

    I figured out that it was the permissions and have fixed the errors coming in but still no rss.xml file could someone please shed some light on the situation. thanks
  10. potatocake

    News Blog V1.0

    Hi, I have just installed this contribution and i need some help in creating my rss.xml file. I used the code suggested in one of the posts to create a php file called create_rss.php. Placed this file in catalog/admin/ also set the chmods to 777 as well as the catalog/rss.php to 777 it seems to redirect back me correctly to the admin page but no .xml file can be found anywhere. Could I please please get some help on this thanks
  11. Hi, I have placed a create_rss.php file with the following code: <?php require('includes/application_top.php'); //$filename = DIR_FS_DOCUMENT_ROOT . FILENAME_RSS; //if (is_writable($filename)) { // open a file pointer to an RSS file $fp = fopen (DIR_FS_DOCUMENT_ROOT . FILENAME_RSS, "w"); // Now write the header information fwrite ($fp, "<?xml version='1.0' ?><rss version='2.0'><channel>”); fwrite ($fp, “<title>Your Title</title>"); fwrite ($fp, "<link>" . HTTP_SERVER . "</link>"); fwrite ($fp, "<description>Your description</description>"); fwrite ($fp, "<language>en-us</language>"); fwrite ($fp, "<docs>" . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_RSS . "</docs>"); $news_query_raw = tep_db_query("select * from " . TABLE_NEWS . " order by id desc limit 10"); while ($content_rec = tep_db_fetch_array($news_query_raw)) { fwrite ($fp, "<item>"); $headline = $content_rec['name']; $date = 'Date: ' . tep_date_short($content_rec['date_created']); $content_1 = substr($content_rec['content'], 0, 250); $content = strip_tags($content_1); if (strlen($content_rec['content']) > 250) { $content = $content . "...."; } fwrite ($fp, "<title>$headline</title>"); fwrite ($fp, "<pubDate>$date</pubDate>"); fwrite ($fp, "<description>$content</description>"); $item_link = HTTP_SERVER . DIR_WS_CATALOG . FILENAME_NEWS . "?article=" . $content_rec['id']; fwrite ($fp, "<link>$item_link</link>"); fwrite ($fp, "</item>"); } fwrite ($fp, "</channel></rss>"); fclose ($fp); tep_redirect(tep_href_link(FILENAME_NEWS, 'update=true')); // } else { // tep_redirect(tep_href_link(FILENAME_NEWS, 'update=false')); // } ?> in the location of catalog/admin I tried running this file and setting its chmod permissions to 777 but im getting these errors Warning: fopen(/public_html/rss.php) [function.fopen]: failed to open stream: Permission denied in /public_html/admin/create_rss.php on line 8 Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/admin/create_rss.php on line 13 Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/admin/create_rss.php on line 15 Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/admin/create_rss.php on line 17 Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/admin/create_rss.php on line 19 Warning: fwrite(): supplied argument is not a valid stream resource in /public_html/admin/create_rss.php on line 21 Could i get some help as to how this is done properly. I havent been able to find a post with the full instructions on how to do this. Thanks heaps
  12. potatocake

    PayPal Express Checkout IPN Payment Module

    Hi Alex, Great contribution btw. Just would like to double check something with you regarding the Paypal IPN dump email. My shopping cart is in MYR(Malaysian Currency) i have set the following options within paypal to accept payments in other currencies and convert to USD which is the currency set for both test merchant and buyer accounts. Though the transactions are going through completed I am getting this below on the dump (bold text): This order has been updated to the following status and requires your attention. New status: Pending The IPN response contained following message: [Completed (PayPal account:Verified; USD 3.19)] [b]Total amount did not match Address status: unconfirmed[/b] OrderTotal= MYR 10.28 As well as on my admin orders page: PayPal IPN Verified [Completed (PayPal account:Verified; USD 3.19)] --> though it has converted the amount to usd correctly Total amount did not match Address status: unconfirmed Sorry I am not sure exactly what is the correct output of the IPN email dump. Is this something I should be worried about? as in would that be a problem with the transaction through IPN? If you could kindly explain what it means it would be much appreciated. Thanks alot
  13. potatocake

    [Contribution] STS v4

    It wasnt an STS issue it was due to the configure.php file within catalog/includes/local was not set correctly, my mistake.
  14. potatocake

    [Contribution] STS v4

    Its all sorted now. Thanks alot.