best way to incorporate existing HTML page sinto OSCommerce process?
#1
Posted 09 February 2012, 14:37
For example, should my HTML home page should replace index.php in oscommerce?
Can I add buttons on an existing page that add items to the cart instead of the normal oscommerce route?
#2
Posted 09 February 2012, 14:45
You can't use HTML pages in osCommerce. osCommerce is written in PHP.
However, you can use an HTML landing page that is linked to your shopping cart and you can use information pages to incorporate other information you want to include in your website, but you can't just drop HTML pages into osCommerce.
Chris
:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:
:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:
#3
Posted 09 February 2012, 15:01
You can create a new page very easily in php, include the relevant template for header / footer / columns, then paste your code into a div layer considered the body content.
Depending on what the page actually does it can be very easy .. example a information page with a some text and what nots.
or very difficult.. example an interactive page with forms iframes lots of javascript or ajax stuff.
#4
Posted 09 February 2012, 15:45
NodsDorf, on 09 February 2012, 15:01, said:
You can create a new page very easily in php, include the relevant template for header / footer / columns, then paste your code into a div layer considered the body content.
Depending on what the page actually does it can be very easy .. example a information page with a some text and what nots.
or very difficult.. example an interactive page with forms iframes lots of javascript or ajax stuff.
basically have a few HTML pages with text and javascript menus.
By themselves they don;t do much but I would need to add a button on some pages which basicallty adds items into a shopping cart.
How can I create that add button and pass it to the OSC cart?
The problem I am really having is that the existing index.html page has various links to stylesheets and js files and these are getting mixed up with the existin OSC stylesheets.
#5
Posted 09 February 2012, 16:10
Your best bet, is to start over in Oscommerce and import as much as possible over to Oscommerce.
If you have a live shop I or someone maybe able to take a quick look at it and offer some guidance on what would be easy, what would be difficult and what might change.
Hope that helps,
Don
#6
Posted 09 February 2012, 16:25
NodsDorf, on 09 February 2012, 15:01, said:
You can create a new page very easily in php, include the relevant template for header / footer / columns, then paste your code into a div layer considered the body content.
Depending on what the page actually does it can be very easy .. example a information page with a some text and what nots.
or very difficult.. example an interactive page with forms iframes lots of javascript or ajax stuff.
If the OP does this, then they are no longer HTML pages, hence my original answer of NO you can't use HTML pages in osCommerce was correct.
Chris
:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:
:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:
#7
Posted 09 February 2012, 16:32
DunWeb, on 09 February 2012, 16:25, said:
Chris
I want to get the existing HTML conetnt into the PHP pages.
For example, I have no need for any of the boxes on the OSC front "Top" page.
So, can I just have my own page that links to existing OSC URL pages, eg: I can take the Add to Cart button and put it on the homepage somewhere?
My existing site only has a little shop functionality but not really a cart system.
#9
Posted 09 February 2012, 16:54
You're asking to use Oscommerce without using Oscommerce.
qwertyjjj, on 09 February 2012, 16:32, said:
I want to get the existing HTML conetnt into the PHP pages.
For example, I have no need for any of the boxes on the OSC front "Top" page.
So, can I just have my own page that links to existing OSC URL pages, eg: I can take the Add to Cart button and put it on the homepage somewhere?
My existing site only has a little shop functionality but not really a cart system.
Oscommerce is not designed to do this. Something as simple as a link requires it to formated for Osc.. you'd have to so heavily modify what you have that it would be so much easier to start with a New Oscommerce package.
#10
Posted 09 February 2012, 19:52
NodsDorf, on 09 February 2012, 16:54, said:
You're asking to use Oscommerce without using Oscommerce.
Oscommerce is not designed to do this. Something as simple as a link requires it to formated for Osc.. you'd have to so heavily modify what you have that it would be so much easier to start with a New Oscommerce package.
And just paste the relevant HTML into the PHP files?
If I need to streamline the OSC order process, can that be done, ie removing or combingin some of the checkout procedures?
#11
Posted 09 February 2012, 20:18
qwertyjjj, on 09 February 2012, 19:52, said:
If I need to streamline the OSC order process, can that be done, ie removing or combining some of the checkout procedures?
Some of your html maybe able to be reused.
As for streamlining checkout, there is a 1 page checkout and lots of other options.
Oscommerce has been running for a long time, and there is very little that I have not seen it able to do. If you're looking at it thinking the design or basic fuctionality is not on par with what you have, chances are there is a module / add-on to do whatever you want.
Hope that helps
Edited by NodsDorf, 09 February 2012, 20:18.














