chineseboy Posted October 8, 2009 Posted October 8, 2009 Hi. I'm quite new to osc and i'm having some problems with it. I have osc in a subdirectory on my site. I want to include my shopping cart on every page on my site but when i include the cart on non osc pages it doesn't load up the cart and in its place is an error message. Does anyone have any ideas on what i'm doing wrong? Thanks in advance.
morehawes Posted October 8, 2009 Posted October 8, 2009 Hi. I'm quite new to osc and i'm having some problems with it. I have osc in a subdirectory on my site. I want to include my shopping cart on every page on my site but when i include the cart on non osc pages it doesn't load up the cart and in its place is an error message. Does anyone have any ideas on what i'm doing wrong? Thanks in advance. Hi, I looked into this recently when building a large store but actually decided against it in the end. You need to include application_top.php on the page that is displaying the cart. Thats probably where alot of errors are coming from. This script basically 'starts' OSC and is needed for all pages. You will have to update paths and there will be lots of things in the file that you don't need. I suggest making a copy od application_top.php that is a slimmed down version that just includes enough of OSC to get the cart up and running. It'll be alot of trial and error but it is possible. Sorry this is all a bit vague but thats a good place to start. Good luck! Joe MacMan strikes again! Always backup first before listening to me!
chineseboy Posted October 8, 2009 Author Posted October 8, 2009 Hi, thanks for your reply, i'm going to give it go tonight. I'll let you know how i get on. any more tips would be really appreciated.
chineseboy Posted October 8, 2009 Author Posted October 8, 2009 hey. ok well I included application_top.php in my page and the shopping_cart.php where I wanted that placed and now i'm gettin these error messages "Warning:virtual() [function.virtual]:Unable to include 'localhost/catalog/includes/application_top.php'-request execution failed in C:\xampp\xampp\htdocs\index.php on line 7" and "Warning:virtual() [function.virtual]:Unable to include 'localhost/catalog/includes/boxes/shopping_cart.php'-request execution failed in C:\xampp\xampp\htdocs\index.php on line 62. I'm not that clued on on php some I'm getting a bit confused by this stuff. i'm probably gona go read a book about it or something, but if anyone could give me some tips that would be great.
Xpajun Posted October 8, 2009 Posted October 8, 2009 You might find it easier to put your website into osC you'll get far less (if any) warnings coming up that way and there is no reason why you can't make osC look like your existing website My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
chineseboy Posted October 8, 2009 Author Posted October 8, 2009 Thanks for the suggestion. Actually, I was thinking that today. I prefer working with div tags rather than tables. Does anybody know of any good tutorials or info on converting osc to div tags?
Guest Posted October 9, 2009 Posted October 9, 2009 http://www.oscommerce.com/forums/topic/187263-tip-for-putting-pages-in-a-subdirectory/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.