Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jay2k5

Pioneers
  • Posts

    42
  • Joined

  • Last visited

Everything posted by jay2k5

  1. Hey I'm using this as my second box does anyone know what CSS would I need to activate to give it a top margin of 10px to allow a gap? or how I could edit the script to do this? Thanks Jonny
  2. THANK YOU !! I was looking for this fix, I read through the whole topic before posting and there it is! Can you provide a screen shot of your header tags setup?, I want to make sure I clean mine up :)
  3. Ok sorry for the double post (cant edit them) This is more detailed information on the error : Array ( [languages_id] => 1 [request_type] => NONSSL [session_started] => 1 [sid] => [language] => english [filename] => index.php [request_querystring] => cPath=1_16 [original_request_uri] => /ostv/hardware/memory-c-1_16.html [request_uri] => hardware/memory-c-1_16.html [real_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/ [usu_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/ [db_install_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/database_install/ [abstracts_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/abstracts/ [includes_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/includes/ [cache_system_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/cache_system/ [interfaces_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/interfaces/ [page_modules_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/page_modules/ [uri_modules_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/uri_modules/ [cache_path] => /home/sites/xxxxxxx.co.uk/public_html/ostv/includes/modules/ultimate_seo_urls5/cache/ [base_url] => http://xxxxxxx.co.uk/ostv/ [base_url_ssl] => http://xxxxxxx.co.uk/ostv/ [config_settings] => Array ( [0] => USU5_RESET_CACHE [1] => USU5_ENABLED [2] => USU5_CACHE_ON [3] => USU5_URLS_TYPE [4] => USU5_CHAR_CONVERT_SET [5] => USU5_FILTER_SHORT_WORDS [6] => USU5_REMOVE_ALL_SPEC_CHARS [7] => USU5_CACHE_DAYS [8] => USU5_USE_W3C_VALID [9] => USU5_ADD_CPATH_TO_PRODUCT_URLS [10] => USU5_OUPUT_PERFORMANCE [11] => USU5_ADD_CAT_PARENT [12] => USU5_DEBUG_OUPUT_VARS [13] => USU5_CACHE_SYSTEM [14] => USU5_PRODUCTS_LINK_TEXT_ORDER [15] => USU5_MULTI_LANGUAGE_SEO_SUPPORT ) [enabled] => true [character_conversion] => [page_modules] => Array ( [links] => Links_Page_Module Object ( [dependencies:protected] => Array ( [lPath] => Array ( [marker] => -links- [query] => SELECT link_categories_name FROM :TABLE_LINK_CATEGORIES_DESCRIPTION WHERE link_categories_id=':lPath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_LINK_CATEGORIES_DESCRIPTION [1] => :lPath [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [lPath] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_reviews] => Product_Reviews_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -pr- [query] => SELECT pd.products_name FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS [2] => :pid [3] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [products_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_info] => Product_Info_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -p- [query] => SELECT pd.products_name, m.manufacturers_name, cd.categories_name, p.products_model, p2c.categories_id FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS_TO_CATEGORIES p2c ON p2c.products_id = pd.products_id INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id LEFT JOIN :TABLE_MANUFACTURERS m ON m.manufacturers_id = p.manufacturers_id INNER JOIN :TABLE_CATEGORIES_DESCRIPTION cd ON p2c.categories_id = cd.categories_id AND cd.language_id=':languages_id' WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS_TO_CATEGORIES [2] => :TABLE_PRODUCTS [3] => :TABLE_MANUFACTURERS [4] => :TABLE_CATEGORIES_DESCRIPTION [5] => :languages_id [6] => :pid ) ) ) [key:protected] => products_id [cache_name_builder:protected] => Array ( [products_id] => 1 => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_info] => Newsdesk_Info_Page_Module Object ( [dependencies:protected] => Array ( [newsdesk_id] => Array ( [marker] => -n- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':newsdesk_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :newsdesk_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newsdesk_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_reviews_info] => Product_Reviews_Info_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -pri- [query] => SELECT pd.products_name FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS [2] => :pid [3] => :languages_id ) ) ) [key:protected] => products_id [cache_name_builder:protected] => Array ( [products_id] => 1 [reviews_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [index] => Index_Page_Module Object ( [dependencies:protected] => Array ( [cPath] => Array ( [marker] => -c- [query] => SELECT cd2.categories_name AS pName, cd.categories_name AS cName FROM :TABLE_CATEGORIES c LEFT JOIN :TABLE_CATEGORIES_DESCRIPTION cd2 ON c.parent_id = cd2.categories_id AND c.parent_id = cd2.categories_id AND cd2.language_id = :languages_id, :TABLE_CATEGORIES_DESCRIPTION cd WHERE c.categories_id = cd.categories_id AND c.categories_id = :cid AND cd.language_id = :languages_id [to_replace] => Array ( [0] => :TABLE_CATEGORIES_DESCRIPTION [1] => :TABLE_CATEGORIES [2] => :languages_id [3] => :cid ) ) [manufacturers_id] => Array ( [marker] => -m- [query] => SELECT manufacturers_name FROM :TABLE_MANUFACTURERS WHERE manufacturers_id=':manufacturers_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_MANUFACTURERS [1] => :manufacturers_id ) ) ) [key:protected] => cPath [cache_name_builder:protected] => Array ( [cPath] => 1 [manufacturers_id] => 1 => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [article_info] => Article_Info_Page_Module Object ( [dependencies:protected] => Array ( [articles_id] => Array ( [marker] => -a- [query] => SELECT articles_name FROM :TABLE_ARTICLES_DESCRIPTION WHERE articles_id=':articles_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_ARTICLES_DESCRIPTION [1] => :articles_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [articles_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_index] => Newsdesk_Index_Page_Module Object ( [dependencies:protected] => Array ( [newspath] => Array ( [marker] => -nc- [query] => SELECT categories_name FROM :TABLE_NEWSDESK_CATEGORIES_DESCRIPTION WHERE categories_id=':newspath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_CATEGORIES_DESCRIPTION [1] => :newspath [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newspath] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_reviews_article] => Newsdesk_Reviews_Article_Page_Module Object ( [dependencies:protected] => Array ( [newsdesk_id] => Array ( [marker] => -nra- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':newsdesk_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :newsdesk_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newsdesk_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [articles] => Articles_Page_Module Object ( [dependencies:protected] => Array ( [tPath] => Array ( [marker] => -t- [query] => SELECT topics_name FROM :TABLE_TOPICS_DESCRIPTION WHERE topics_id=':tPath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_TOPICS_DESCRIPTION [1] => :tPath [2] => :languages_id ) ) [authors_id] => Array ( [marker] => -au- [query] => SELECT authors_name FROM :TABLE_AUTHORS WHERE authors_id=':authors_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_AUTHORS [1] => :authors_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [tPath] => 1 [authors_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_reviews_info] => Newsdesk_Reviews_Info_Page_Module Object ( [dependencies:protected] => Array ( [reviews_id] => Array ( [marker] => -nri- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':reviews_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :reviews_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [reviews_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [information] => Information_Page_Module Object ( [dependencies:protected] => Array ( [info_id] => Array ( [marker] => -i- [query] => SELECT information_title FROM :TABLE_INFORMATION WHERE information_id=':info_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_INFORMATION [1] => :info_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [info_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) ) [uri_modules] => Array ( [osc_experimental] => Osc_Experimental_Uri_Module Object ( ) [standard] => Standard_Uri_Module Object ( ) [path_rewrite] => Path_Rewrite_Uri_Module Object ( ) [rewrite] => Rewrite_Uri_Module Object ( ) [path_standard] => Path_Standard_Uri_Module Object ( ) ) [parsing_module] => Path_Rewrite_Uri_Module [cache_name] => 02c5c6d42c9c8f4c256c7cf53bc44098 [cache] => Sqlite_Cache_Module Object ( [extract_query] => SELECT * FROM usu_cache WHERE cache_name = ':cache_name' [insert_query:private] => INSERT INTO usu_cache (cache_name, cache_data, cache_date) VALUES (':cache_name', ':cache_data', ':cache_date') [insert:private] => ) [registry] => Data_Registry Object ( [vars:private] => Array ( [cPath] => Array ( [1_16] => Array ( [pName] => Hardware [cName] => Memory ) [1] => Array ( [cName] => Hardware ) [1_17] => Array ( [pName] => Hardware [cName] => CDROM Drives ) [1_4] => Array ( [pName] => Hardware [cName] => Graphics Cards ) [1_8] => Array ( [pName] => Hardware [cName] => Keyboards ) [1_9] => Array ( [pName] => Hardware [cName] => Mice ) [1_6] => Array ( [pName] => Hardware [cName] => Monitors ) [1_5] => Array ( [pName] => Hardware [cName] => Printers ) [1_7] => Array ( [pName] => Hardware [cName] => Speakers ) [2] => Array ( [cName] => Software ) [3] => Array ( [cName] => DVD Movies ) [21] => Array ( [cName] => Gadgets ) ) [products_id] => Array ( [18] => Array ( [products_name] => Speed 2: Cruise Control [manufacturers_name] => Fox [categories_name] => Action [products_model] => DVD-SPEED2 [categories_id] => 10 ) [6] => Array ( [products_name] => The Matrix [manufacturers_name] => Warner [categories_name] => Action [products_model] => DVD-MATR [categories_id] => 10 ) [25] => Array ( [products_name] => Microsoft Internet Keyboard PS/2 [manufacturers_name] => Microsoft [categories_name] => Keyboards [products_model] => MSINTKB [categories_id] => 8 ) [5] => Array ( [products_name] => Blade Runner - Director's Cut [manufacturers_name] => Warner [categories_name] => Science Fiction [products_model] => DVD-BLDRNDC [categories_id] => 11 ) ) ) ) [initiated] => 1 [request_compare_in] => /ostv/hardware/memory-c-1_16.html [page_not_found] => [request_compare_new] => /ostv/hardware/memory-c-1_16.html The specific error where it hangs seems to be : [initiated] => 1 [request_compare_in] => /ostv/hardware/memory-c-1_16.html [page_not_found] => [request_compare_new] => /ostv/hardware/memory-c-1_16.html I have looked at the past solution from a year ago here : http://forums.osquantum.org/topic/1773-ultimate-seo-urls-5-pro/page__view__findpost__p__13317 But this did nothing, any idea's? Thanks, Jonny
  4. Hi guys, I decided to build a new store based on os 2.3.1. I've run into a strange error where all pages load until I click a sub category so Main category - sub category It loads up the header and just the page title. Has anyone had this before ? Thanks in advance Jay
  5. I have installed this but the left column filter box does not appear, does anyone have any idea what this could be?
  6. I'm receiving a very weird problem while using header tags seo 3.0 and Article Manager 1.5.7.3 My whole site, index, product_info etc all pick up the title/meta descriptions/keywords But when I goto any article it's all missing, I've checked in my /admin/ and the topics/articles are putting the info into the sql database... but I just cant get the pages to come up with it So I get the standard browser titles, "articles" "articles info" and my page source looks like the following : <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Articles </title> <meta name="Description" content="" > <meta name="Keywords" content="Articles " > <meta name="googlebot" content="all" > <meta name="robots" content="noodp" > <meta name="slurp" content="noydir" > <meta name="robots" content="index, follow" > <link rel="canonical" href="http://mysite.com/articles.php" > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > <!-- EOF: Header Tags SEO Generated Meta Tags --> Any help would be extremely helpful Thanks!!!
  7. I think it may be an issue with the mobile/includes/classes/mobile_redirect.php as the following redirect works within application_top.php http://mobilecommercetools.com/mobile-redirect.php but this means all my pages would redirect to the index killing all SEO :(
  8. I put the following before the last ?> in mysite/includes/application_top.php: define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/'); require(DIR_MOBILE_CLASSES . 'mobile_redirect.php'); $mobileRedirect = new mobileRedirect; My mysite/mobile/mysite/includes/classes/mobile_redirect.php has the following <?php class mobileRedirect { var $redirected; var $mobileDir = "mobile_"; function mobileRedirect() { $this->redirected = $this->needRedirect(); if($this->redirected) $this->redirect(); } function needRedirect() { if($this->isCancelled()) return false; if(strpos($_SERVER['SCRIPT_NAME'],$this->mobileDir . $this->mobileFile) > 0) return false; if(tep_browser_detect('iPhone') || tep_browser_detect('iPod')) return 'iPhone'; if(tep_browser_detect('IEMobile')) return 'iPhone'; if(tep_browser_detect('HTC')) return 'iPhone'; if(tep_browser_detect('Blackberry')) return 'Blackberry'; if(tep_browser_detect('Nokia')) return 'Nokia'; if(tep_browser_detect('SonyEricsson')) return 'SonyEricsson'; if(tep_browser_detect('Opera Mobi')) return 'iPhone'; if(tep_browser_detect('Opera Mini')) return 'iPhone'; if(tep_browser_detect('MAUI_WAP_Browser')) return 'GenericWAP'; if(tep_browser_detect('alcatel')) return('alcatel'); // Alcatel Browser (PDA/Phone browser) if(tep_browser_detect('lg-')) return('lg-'); // LG (PDA/Phone browser) if(tep_browser_detect('ericsson')) return('ericsson'); // Ericsson Browser (PDA/Phone browser) if(tep_browser_detect('mot-')) return('mot-'); // Motorola Browser (PDA/Phone browser) if(tep_browser_detect('panasonic')) return('panasonic'); // Panasonic Browser (PDA/Phone browser) if(tep_browser_detect('philips')) return('philips'); // Philips Browser (PDA/Phone browser) if(tep_browser_detect('sagem')) return('sagem'); // Sagem (PDA/Phone browser) if(tep_browser_detect('samsung')) return('samsung'); // Samsung (PDA/Phone browser) if(tep_browser_detect('sie-')) return('sie-'); // SIE (PDA/Phone browser) if(tep_browser_detect('sec-')) return('sec-'); // Sony/Ericsson (PDA/Phone browser) if(tep_browser_detect('sonyericsson')) return('sonyericsson'); // Sony/Ericsson Browser (PDA/Phone browser) if(tep_browser_detect('mmef')) return('mmef'); // Microsoft Mobile Explorer (PDA/Phone browser) if(tep_browser_detect('mspie')) return('mspie'); // MS Pocket Internet Explorer (PDA/Phone browser) if(tep_browser_detect('wapalizer')) return('wapalizer'); // WAPalizer (PDA/Phone browser) if(tep_browser_detect('Opera Mobile')) return('Opera Mobile'); // WAPalizer (PDA/Phone browser) if(tep_browser_detect('wapsilon')) return('wapsilon'); // WAPsilon (PDA/Phone browser) if(tep_browser_detect('webcollage')) return('webcollage'); // WebCollage (PDA/Phone browser) if(tep_browser_detect('up.')) return('up.'); // UP.Browser (PDA/Phone browser) if(tep_browser_detect('docomo')) return('docomo'); // I-Mode phone (PDA/Phone browser) if(tep_browser_detect('portalmmm')) return('portalmmm'); // I-Mode phone (PDA/Phone browser) return false; } function isCancelled() { if (tep_session_is_registered('redirectCancelled')) return true; if(isset($_GET['redirectCancelled']) && $_GET['redirectCancelled'] == 'true') { tep_session_register('redirectCancelled'); return true; } return false; } function redirect() { $path = split("/" , $_SERVER['SCRIPT_NAME']); $filename = $path[sizeof($path)-1]; $file = $this->mobileDir . $filename; $qstring = $_SERVER['QUERY_STRING']; $SSL = ($_SERVER['HTTPS']) ? "SSL" : "NONSSL"; if (file_exists($file)) tep_redirect(tep_href_link($file, $qstring, $SSL, false, false)); } } ?> Testing on an HTC Raph (XDA) using both mobile opera and Mobile IE, cheers for the help
  9. I've tried adding the code to application_top.php but it never redirects. I can goto mysite.com/mobile_index.php and everything is perfect. are there any other ways to force a redirect for mobiles ? thanks!!!!
  10. Here is an interesting one I have a site with SSL and oscommerce. On the same hosting I have other domains I would like to set up oscommerce on that are on the same hosting, I for the life of me couldn't get the multi-store contrib to install :( so I'm looking to do it on a more basic level. I.E http://www.shop-with-ssl.com/ http://www.shop-without-ssl.com/ Could I put the checkout of http://www.shop-without-ssl.com/ onto www.shop-with-ssl.com/folder-for-shop-without-ssl-shoppingcart/ and have it thhat when customers checkout they are redirected and brought back after ? Cheers :thumbsup:
  11. I basically get a blank page in IE while it loops, Firefox cancels saying its an incompleteable redirect. I removed the test store and will try a fresh install again next week so I will post the configure.php files then. Cheers for your help :thumbsup:
  12. OK I've got it installed now with osCommerce 2.2-MS2. but when I goto http://www.MYSITE.com/admin/ it just sits loading the page but never fully loads ? any ideas
  13. Quick update in Admin when I hard code the English language : // include the language translations require(DIR_WS_LANGUAGES . $language . 'english.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/english/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/english/' . $current_page); } IE Shows a blank page and the status bar shows : Website found. Waiting for reply.... and it flicks repeatedly as if it's stuck in a loop Ive checked my languages table in myphpadmin and English is there, am I missing something completely ? to get the front end to work I needed to manually edit the configuration table values.
  14. Sorry to sound like a Noobie ( but this contribution has me 100% beat) How do I define languages in admin/languages.php?? I basically took a fresh copy of RC1 installed it tested it worked then installed Multistores over it and installed the included SQL update, So now I cant login to Admin.
  15. ok I tried to install this on RC1 no luck. Got the dreaded Failed opening required 'includes/languages/.php' checked my ftp, restarted my browser but nothing, tried changing the script to point directly to english.php but just got another error. Has anyone got this working on RC1 ? Is there a prepackaged oscommerce with this contrib available at all?
  16. Hi guys I need a simple thing that will show an error like when you enter an invalid email address but for the telephone entry. Basically any number starting 07* gets knocked back and the error Mobile numbers not accepted. Please help, Im sure This would be a really helpful option for the whole community, as this kind of Credit card fraud is extremely comman any help is appreciated. :thumbsup:
  17. I was wondering if anyone with a larger store has come up with a hack to re order the menu to show the main category you are in at the top, my main problem is customers must scroll every time to sellect a new subcategory :( At the moment I'm running a mod to have all sub categories showing so it looks like (red shows selected category) : category 1 Subcategory 1 (1) Subcategory 1 (2) Subcategory 1 (3) category 2 Subcategory 2 (1) Subcategory 2 (2) Subcategory 2 (3) category 3 Subcategory 3 (1) Subcategory 3 (2) Subcategory 3 (3) I want it to look like this : category 3 Subcategory 3 (1) Subcategory 3 (2) Subcategory 3 (3) category 1 Subcategory 1 (1) Subcategory 1 (2) Subcategory 1 (3) category 2 Subcategory 2 (1) Subcategory 2 (2) Subcategory 2 (3) Basically pushing what ever category (including subcategory) that the customer is in to the top of the list Please help :( As always thank you in advance for your time/help :thumbsup: My Categories.php file : <?php /* $Id: show_subcategories.php,v 1.0 2003/01/08 10:37:00 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com/ Based on: main_categories.php Ver. 1.0 by Gustavo Barreto History: 1.0 Creation Released under the GNU General Public License */ // Preorder tree traversal function preorder($cid, $level, $foo, $cpath) { global $categories_string, $HTTP_GET_VARS; // Display link if ($cid != 0) { for ($i=0; $i<$level; $i++) $categories_string .= ' '; $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath =' . $cpath . $cid) . '">'; // 1.6 Are we on the "path" to selected category? $bold = strstr($HTTP_GET_VARS['cPath'], $cpath . $cid . '_') || $HTTP_GET_VARS['cPath'] == $cpath . $cid; // 1.6 If yes, use <b> if ($bold) $categories_string .= '<b>'; $categories_string .= $foo[$cid]['name']; if ($bold) $categories_string .= '</b>'; $categories_string .= '</a>'; // 1.4 SHOW_COUNTS is 'true' or 'false', not true or false if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($cid); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; } // Traverse category tree- this is for older snapshots pre-November 2002 /* foreach ($foo as $key => $value) { if ($foo[$key]['parent'] == $cid) { // print "$key, $level, $cid, $cpath<br>"; preorder($key, $level+1, $foo, ($level != 0 ? $cpath . $cid . '_' : '')) ; } */ // Function used for post November 2002 snapshots function tep_show_category($counter) { global $foo, $categories_string, $id; for ($a=0; $a<$foo[$counter]['level']; $a++) { $categories_string .= " "; } } } ?> <!-- show_subcategories //--> <tr> <td class="infoBox_left"> <?php ////////// // Display box heading ////////// $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false, false, true); ////////// // Get categories list ////////// // 1.2 Test for presence of status field for compatibility with older versions // $status = tep_db_num_rows(tep_db_query('describe categories status')); used for older snapshots $status = tep_db_num_rows(tep_db_query('describe ' . TABLE_CATEGORIES . ' status')); $query = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id"; // 1.3 Can't have 'where' in an if statement! if ($status >0) $query.= " and c.status = '1'"; $query.= " and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name"; $categories_query = tep_db_query($query); // Initiate tree traverse $categories_string = ''; preorder(0, 0, $foo, ''); ////////// // Display box contents ////////// $info_box_contents = array(); $row = 0; $col = 0; while ($categories = tep_db_fetch_array($categories_query)) { if ($categories['parent_id'] == 0) { $temp_cPath_array = $cPath_array; //Johan's solution - kill the array but save it for the rest of the site unset($cPath_array); $cPath_new = tep_get_path($categories['categories_id']); $text_subcategories = ''; $subcategories_query = tep_db_query($query); while ($subcategories = tep_db_fetch_array($subcategories_query)) { if ($subcategories['parent_id'] == $categories['categories_id']) { $cPath_new_sub = "cPath=" . $categories['categories_id'] . "_" . $subcategories['categories_id']; $text_subcategories .= '' . '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new_sub, 'NONSSL') . '" class="menusubcateg">' . ' ' . tep_image(DIR_WS_IMAGES . 'pointer_blue_light.gif', '') . $subcategories['categories_name'] . '</a>' . " "; } // if } // While Interno $info_box_contents[$row] = array('align' => 'left', 'params' => 'class="smallText" width="125" valign="top"', 'text' => '' . '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '" class="menucateg"><b>' . ' ' . tep_image(DIR_WS_IMAGES . 'pointer_blue.gif', '') . $categories['categories_name'] . '</b></a>' . $text_subcategories); $col ++; if ($col > 0) { $col = 0; $row ++; } $cPath_array = $temp_cPath_array; //Re-enable the array for the rest of the code } } new noborderBox2($info_box_contents, true); ?> </td> </tr> <!-- show_subcategories_eof //-->
  18. Ok My scripting skills are not great but what I'm trying to do is : when the product cost is over say £149.99 a banner shows showing free shipping available. I assume it would have to be something like <? if ($Product_price > 149.99;) tep_image(DIR_WS_IMAGES . $image, FREE_SHIPPING); }else{ tep_draw_separator('pixel_trans.gif',); ?> Anyone with scripting skills help me? Thanks in Advance :thumbsup:
  19. I think the conflict is with this piece of coding on the tabs module : <?php // needed in case other part of site use same variable. $categories_string=''; unset ($first_element); unset ($prev_id); if (CAT_TABS_SHOW_HOME) { $foo[0]=array( 'name' => HEADER_TITLE_TOP, 'parent' => '', 'level' => 0, 'path' => '', 'next_id' => false ); $prev_id=0; $first_element=0; } $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' ".$cfg_query_and." order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $foo[$categories['categories_id']] = array( 'name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false ); if (isset($prev_id)) { $foo[$prev_id]['next_id'] = $categories['categories_id']; } $prev_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } $last_element=$categories['categories_id']; } show_category_tabs($first_element, $last_element); echo $categories_string; ?>
  20. Hey guys I downloaded a contribution that does exactly what I want, gives me tabs in my header for my main categories But... and probably due to my stupidity >_< I cant get it that my left categories(with sub cats) show up at the same time :( Contribution : http://www.oscommerce.com/community/contri...h,category+tabs (v2.0 full package Christophe Buchi 16 Nov 2004 ) I have 3 options in Admin : Tabs - Gives tabs only - working Box - Gives no tabs but standard menu - working Both - gives tabs & side menu - Not working I have come up with that because my website template has the Categories.php usually called up in column_left.php built into the header.php that I am unable to call up the both at the same time. The Categories code for my left column (built into header.php) is <? // ---- CATEGORIES 2 LEVELS OPEN function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; if(!$tree[$counter]['level']){ $categories_string .= $categories_string ? '<tr><td height=9></td></tr>' : ''; $categories_string .= '<tr><td class=ch3><a class=ch3 href='; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>'; // display categry name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr>'; $categories_string .= '<tr><td height=16></td></tr>'; }else{ // SUBCATEGORY $categories_string .= '<tr><td background=images/m09.gif height=1></td></tr><tr><td height=1></td></tr>'; for($i=0;$i<$tree[$counter]['le vel'];$i++) $categories_string .= ' '; $categories_string .= '<tr><td> <img src=images/m08.gif width=4 height=5 align=absmiddle> <a class=ml2 href='; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>'; // display category name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr><tr><td height=1></td></tr>'; } if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } define(TABLE_CATEGORIES, "categories"); define(TABLE_CATEGORIES_DESCRIPTION, "categories_description"); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $cPath_array2 = Array(); $new_path = ''; $cPath_array2[] = $categories['categories_id']; while (list($key, $value) = each($cPath_array2)) { unset($parent_id); unset($first_id); $categories_query2 = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query2)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query2)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } //------------------------ $categories_string .= ''; tep_show_category($first_element); $categories_string .= ''; echo $categories_string; ?> any tips on how to hack the contibution to work would be greatly appreciated !!! :thumbsup:
  21. <?php /* $Id: articles.php, v1.0 2003/12/04 12:00:00 ra Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function tep_show_topic($counter) { global $tree, $topics_string, $tPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $topics_string .= " "; } $topics_string .= '<tr><TD valign="middle" height="20" align="left" style="padding-left:10px;"><img src="images/marker_cat.gif" width="3" height="5" alt="" style="margin-right:5px;" /><a class="categories" href="'; if ($tree[$counter]['parent'] == 0) { $tPath_new = 'tPath=' . $counter; } else { $tPath_new = 'tPath=' . $tree[$counter]['path']; } $topics_string .= tep_href_link(FILENAME_ARTICLES, $tPath_new) . '">'; if (isset($tPath_array) && in_array($counter, $tPath_array)) { $topics_string .= '<b>'; } // display topic name $topics_string .= $tree[$counter]['name']; if (isset($tPath_array) && in_array($counter, $tPath_array)) { $topics_string .= '</b>'; } if (tep_has_topic_subtopics($counter)) { $topics_string .= ' ->'; } $topics_string .= '</a>'; if (SHOW_ARTICLE_COUNTS == 'true') { $articles_in_topic = tep_count_articles_in_topic($counter); if ($articles_in_topic > 0) { $topics_string .= '<span class="categories"> (' . $articles_in_topic . ')'; } } $topics_string .= '</td></tr><tr><td align="center"><img src="images/points_cat.gif" width="163" height="1"></td></tr>'; if ($tree[$counter]['next_id'] != false) { tep_show_topic($tree[$counter]['next_id']); } } ?> <!-- topics //--> <tr> <td bgcolor="#FFE3A6" valign="top"> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_ARTICLES); new infoBoxHeading($info_box_contents, true, true); $topics_string = ''; $tree = array(); $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '0' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name"); while ($topics = tep_db_fetch_array($topics_query)) { $tree[$topics['topics_id']] = array('name' => $topics['topics_name'], 'parent' => $topics['parent_id'], 'level' => 0, 'path' => $topics['topics_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $topics['topics_id']; } $parent_id = $topics['topics_id']; if (!isset($first_topic_element)) { $first_topic_element = $topics['topics_id']; } } //------------------------ if (tep_not_null($tPath)) { $new_path = ''; reset($tPath_array); while (list($key, $value) = each($tPath_array)) { unset($parent_id); unset($first_id); $topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)$value . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name"); if (tep_db_num_rows($topics_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($topics_query)) { $tree[$row['topics_id']] = array('name' => $row['topics_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['topics_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['topics_id']; } $parent_id = $row['topics_id']; if (!isset($first_id)) { $first_id = $row['topics_id']; } $last_id = $row['topics_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_topic($first_topic_element); $info_box_contents = array(); $new_articles_string = ''; $all_articles_string = ''; $info_box_contents[] = array('text' => '<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="border:1px solid #EBAB10; border-width:0px 1px;">' .$new_articles_string . $all_articles_string . $topics_string.'</table>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- topics_eof //-->
  22. Hi guys I installed the latest version which is great, but I cant seem to get the Articles in top mod to work :( Any ideas ?
×
×
  • Create New...