Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How Do I Add Items To Shopping Cart From Html?


pacifictao

Recommended Posts

What is the PHP code that adds an item to the shopping cart? What file is it located in?

Can I use this PHP code in an HTML page?

I want users to be able to add a product to their cart before they even get to the PHP catalog. Is this possible?

 

Thanks in advance.

 

Sandor Boulter

PacificTao.com

Link to comment
Share on other sites

No, you can't use php code in an html page, because .html pages cannot parse php code unless your web host specifically allows it for your website - which is unlikely. There's also the problem of session ids being lost - especially if people click back from your osCommerce site to one of the html pages (they'll lose anything they have in their shopping cart).

 

Vger

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...