Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Products to Cart Outside Database


rcmdesign

Recommended Posts

Posted

Does anyone have any ideas about altering the shopping cart class (or any other related file) to allow a customer to add products into their cart that are NOT STORED in the osCommerce database. I want to be able to send POST calls containing a product ID, name, quantity, price to an add cart function/page which will then add the products that the visitor chose to their cart. I don't need to alter stock quantities or anything. And the display of all the OUTSIDE products is already completed with a wholesaler...I just want the visitor to be able to add an the item, pay for it, and then have the admin be able to see what products they ordered so it can be ordered from the wholesaler and shipped out...

Posted

set allow checkout to true for products in the admin

Posted
set allow checkout to true for products in the admin

 

I don't need to alter stock quantities or anything...Did you even read my post?

Posted

yes i did. you want to be able to let customers purchase items you do not stock. yet you will still have to add them to your store for the customer to view and purchase. thus you set allow checkout to true.

 

if that isnt what you meant, then maybe reword what you posted.

Posted

Well maybe I wasn't clear enough about what I wanted to do.

 

Correct I will not stock these items, but I will not have these items contained in the osCommerce database. There will be no record of them in the database. What I want to do is to POST variables to a page that will add an item to the cart that is not in the osCommerce database. Right now when you add an item to the cart, it takes the products_id from the database to gather the relative information on that item that the customer has ordered. I want to do this using items that are not in the database.

 

They will be viewing the items (not in the osCommerce database) in a small pop-up window. And when they hit the add to cart button in that pop-up, it will add that item to the customer's cart. The popup window sends POST variables containing name, price etc...

  • 2 years later...
Posted
yes i did. you want to be able to let customers purchase items you do not stock. yet you will still have to add them to your store for the customer to view and purchase. thus you set allow checkout to true.

 

if that isnt what you meant, then maybe reword what you posted.

 

did you ever find a solution for this? I want to do basically the same thing from my website that's already built using static HTML pages and a quick and efficient editor. I sell specialty products and only have a small limited number. Doing everything in osCommerce is too restrictive and time-consuming. Just want customers to be able to add to cart and check out using Google Checkout or Paypal (their choice)

Archived

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

×
×
  • Create New...