Jump to content
Latest News: (loading..)

Search the Community

Showing results for tags 'routing'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News and Announcements
    • News and Announcements
    • Partner Announcements
    • Ambassadors
  • Commercial Support
    • Developer Feedback
  • osCommerce Online Merchant v2.x
    • General Support
    • Installation and Configuration
    • Upgrading from Earlier Versions (v2.x to v2.x)
    • Add-Ons
    • Tips and Tricks
    • Security
  • Development
    • osCommerce Online Merchant v2.4
    • osCommerce Online Merchant Community Bootstrap Edition
    • osCommerce Online Merchant v3.x
    • Development Proposals
  • General
    • Next Steps / Optimizations / Marketing
    • Live Shop Reviews
    • E-Commerce Laws
    • General Discussions
    • PHP / SQL / Web Design
  • Club osC's Announcements
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein
  • German Community's OSCOM v3.x

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Real Name




Found 1 result

  1. oscMarket

    Simple routing idea!

    Only requires index.php Find in application_top.php //Template class require('includes/classes/osc_template.php'); $oscTemplate = new oscTemplate(); Below add: // determine the route to load the cm_ modules require('includes/classes/route.php'); in includes/'html_output.php Find: //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; $page = tep_output_string($page); Below add: $page = str_replace('.php', '', $page); Add to the classes directory the attached file Example: <?php /* $Id$ osCompose, Open Source E-Commerce Solutions http://www.oscompose.com Copyright (c) 2018 osCompose */ require('includes/application_top.php'); require('includes/template_top.php'); $route = new Route(); $route->load(); $route->listen(); require('includes/template_bottom.php'); require('includes/application_bottom.php'); ?> What does it do: It loads the content out of your "content modules directory" of course that structure is not sufficient. It is only an idea and trick to get beyond the current architecture of oscommerce. This will lead into url's like: http://yourdomain.com/index?XXX http://yourdomain.com/index?cPath=1 http://yourdomain.com/products_new? http://yourdomain.com/shipping? http://yourdomain.com/account?XXX Etc etc.... route.php