I have a problem getting the bridge working:
I can create an account from joomla (it displays me the modified oscommerce account creation page).
After that I can login with username and password into the joomla frontend.
I can also login with the email address and the same password I use for the joomla login into oscommerce.
But when I login into joomla and when I switch to the wrapped shop I'm not loged in into the shop (I'm a Guest).
I noticed that when I first log into joomla and afterwards into the shop and then I logout of joomla I also logout of oscommerce.
I tried it with joomla 1.0.13, 1.0.2, 1.0.3 and oscommerce 2.2 rc1 and 2.2 ms2. I'm using osc_bridge 1.04 and followed the install instructions provided within the included readme.pdf.
So what I'd:Step 0:
First I installed joomla and oscommerce - into the same database.Step 1
Now I installed com_oscbridge.zip from the joomla backend.Step 2
After that I copied jos_create_account.php and jos_index.php into the catalog directory and the language file jos_create_account into catalog/languages/[all my languages] of the shop. I also added
define('ENTRY_USERNAME_ERROR', 'The specified username already exist - please try again.');
into the language files (english.php and the other ones).Step 3:
Now I integrated the two sql files hash_lookup.sql and jos_users.sql with phpmyadmin.Step 4:
The next step was to create the wrapper for the shop (menu > mainmenu > new > wrapper > wrapper url = http://localhost/test/catalog/jos_index.php
Afterwards I configured the com_oscbridge but when I saved the changes I was told the installation was successful but the fields were empty so I made the changes manualy in the file administrator/components/osc_bridge/config.oscbridge.php:
$oscbridge_path = "http://localhost/test/catalog/jos_index.php";
$oscwrapper_url = "http://localhost/test/index.php?option=com_wrapper&Itemid=26";
$mos_prefix = "jos_";
. I used the itemid generated in step 4 for the wrapper.Step 5.1:
I created a component linked with the bridge (menu > mainmenu > new > component > Component = osCommerce). Also I tried publishing and unpublishing the created wrapper from step 4.Step 5.2:
Now I modified another file from oscommerce (includes/filenames.php):
define('FILENAME_CREATE_ACCOUNT', 'jos_create_account.php');Step 6
And now I created another wrapper for the login (menu > mainmenu > new > wrapper > wrapper url = http://localhost/test/catalog/jos_create_account.php
) to get an itemid to hack the login file.
Within the readme is now mentioned:
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.
But there is only mod_login.php supplied. So I used mod_login.php and changed the line
<a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
<a href="<?php echo sefRelToAbs( 'index.php?option=com_wrapper&Itemid=28' ); ?>">
The mentioned itemid here is the one from the wrapper created before.
I also replaced these files:
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
But I didn't replace mod_login.php because I modified it by manual before.
I also changed the itemid (the one I used for mod_login.php) written in components/com_login/login.html.php.
Does enybody know where's my fault? Maybe someone with a working bridge can post me his or her way to success please.