I was trying to install the OsCommerce bridge, and got stuck on the included pdf instructions "step 6".
Does anyone know of a way to get OsCommerce to work within Joomla OR how to do "step 6"?
Step 6:
Using the Joomla adminstration tool create a Wrapper menu item to open up jos_create_account.php of your
osCommerce installation. Set it up the way you desire, once your happy with it, Save it. This relative URL will be used to
hack the login scripts for either the mod_login.php or the com_login.php (depending on your needs) to replace the
standard Joomla registration page. Check out the examples in the complete jos_osc_bridge.zip package.
mod_login.php example - original script:
if ( $registration_enabled ) {
?>
<tr>
<td>
<?php echo _NO_ACCOUNT; ?>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
<?php echo _CREATE_ACCOUNT; ?></a>
</td>
</tr>
<?php
}
modified script:
if ( $registration_enabled ) {
?>
<tr>
<td>
<?php echo _NO_ACCOUNT; ?>
<a href="<?php echo sefRelToAbs( 'index.php?option=com_wrapper&Itemid=46' ); ?>">
<?php echo _CREATE_ACCOUNT; ?></a>
</td>
</tr>
<?php
}
NOTE: this is only an exmaple, you will have to create your own wrapper menu item first - so don't type this in exactly
becasue the itemID WILL be different.
Hack File Placements
These hacked files get placed in the defined Jooma! directories:
wrapper.php gets placed in the components/com_wrapper
wrapper.html.php gets placed in the components/com_wrapper
login.html.php get's placed in the components/com_login directory
mod_login.php gets place in the modules directory.
NOTE: Make sure to edit login.html.php and mod_login.php to reflect your correct wrapper information.
Forum 







