jagguy Posted February 20, 2007 Posted February 20, 2007 Hi, I have an existing website that I want to intergrate with OsC. With other similar carts I can have my own website and call the Osc when required, eg have a table of items on my site and when user clicks to buy it then goes to an item pahe on Osc, and you can continue to buy etc Can this be done as I dont want to create my whole website with Osc , just add the ecommerce part when required.
Velveeta Posted February 20, 2007 Posted February 20, 2007 Hi, I have an existing website that I want to intergrate with OsC. With other similar carts I can have my own website and call the Osc when required, eg have a table of items on my site and when user clicks to buy it then goes to an item pahe on Osc, and you can continue to buy etc Can this be done as I dont want to create my whole website with Osc , just add the ecommerce part when required. Yes, this can be done, but you may run into problems with disappearing sessions if the session id isn't propagated from page to page... There's a user in the forums here by the name of "nameiscorrie" that said she's been running a setup similar to this for a year or 2 now... You may want to try talking to her about how this can be done without losing your session data... Richard. Richard Lindsey
jasonabc Posted February 20, 2007 Posted February 20, 2007 This will take care of the problem: http://www.oscommerce.com/community/contributions,3257 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jagguy Posted February 21, 2007 Author Posted February 21, 2007 What problems occurs if you don't eg the shopping cart remember previous items added if you go in and out of OsC? All I need is to access large item display and then the shopping cart, then back to my pages to view items in my display.
jasonabc Posted February 21, 2007 Posted February 21, 2007 What problems occurs if you don't eg the shopping cart remember previous items added if you go in and out of OsC? Can't work out what you're trying to say so I'll just guess. The external sessions link I gave you mean you can go wherever you like under your domain (including in and out of OSC) and it will keep your session intact and preserve everything in your cart etc. I use it on this store (among others): http://monogrammarket.com/ Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jagguy Posted February 21, 2007 Author Posted February 21, 2007 Can't work out what you're trying to say so I'll just guess. The external sessions link I gave you mean you can go wherever you like under your domain (including in and out of OSC) and it will keep your session intact and preserve everything in your cart etc. I use it on this store (among others): http://monogrammarket.com/ hi, I downloaded it and there are no instructions on how to use it. There is a list of commands, a docs area with frames but no instructions on use. eg how many variables and what do you need to use $connection, $db..and the list goes on? I will need an example of this. I saw an example file and changed the dirs and it failed. I really need an example of the session code (I understand php) to see how to use it.
jasonabc Posted February 21, 2007 Posted February 21, 2007 There is a working version in the zip file you extracted. Upload the sessions.class.php file to your web (not store) root and place the three include calls in your website header file. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jagguy Posted February 21, 2007 Author Posted February 21, 2007 I place that (sessions..php)file in category dir of oscommerce and example.php in category dir as well . These 2 files to include in includes exist. include_once('includes/configure.php'); include_once('includes/database_tables.php'); include_once('sessions.class.php'); NO output I get , just blank screen and yes my server runs php files?
jasonabc Posted February 21, 2007 Posted February 21, 2007 Try this: <?php # External OSC sessions handlers: $path = $_SERVER["DOCUMENT_ROOT"]; include_once($path . '/store/includes/configure.php'); include_once($path . '/store/includes/database_tables.php'); include_once($path . '/sessions.class.php'); ?> Change the paths to suit your needs. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jagguy Posted February 21, 2007 Author Posted February 21, 2007 There is a working version in the zip file you extracted. Upload the sessions.class.php file to your web (not store) root and place the three include calls in your website header file. Are you talking about placing the file where the index.php is so when you run osC you call example.php? No I don't get how to run this , is it part of Osc because there is only a div in the html.
Velveeta Posted February 21, 2007 Posted February 21, 2007 Are you talking about placing the file where the index.php is so when you run osC you call example.php? No I don't get how to run this , is it part of Osc because there is only a div in the html. There's an anchor tag inside of that div that should just render 1 hyperlink to your index.php page if it's working correctly... Richard. Richard Lindsey
jagguy Posted February 22, 2007 Author Posted February 22, 2007 I will try the file as stated again. Is there any other problem i should know with an external link? It is much easier to link into an ecommerce product section than to add in a whole website with dynamic interaction. Unless Osc can make it easily add my php/mysql/flash /ajax?
jagguy Posted February 22, 2007 Author Posted February 22, 2007 i will try it all with php setup in a few days so thanks for your help so far!
Velveeta Posted February 22, 2007 Posted February 22, 2007 I will try the file as stated again. Is there any other problem i should know with an external link? It is much easier to link into an ecommerce product section than to add in a whole website with dynamic interaction. Unless Osc can make it easily add my php/mysql/flash /ajax? Well, there's no *easy* way to add in all of those pre-existing things, so something like this may just be your best bet :) Richard. Richard Lindsey
Recommended Posts
Archived
This topic is now archived and is closed to further replies.