uaktags Posted April 14, 2008 Posted April 14, 2008 Hey guys. Sorry but i need this asap since my boss needs me to revamp the website and has "suggested" that i use OScommerce, but we want to still use our own shopping cart. Basically we use AuctionINC.com's shoping cart and it works great. Been with them for like a year or two. and the code for them is very simple, but we're now going to use OSCommerce for a control panel so we dont have to manually code in every product we have and can easily do modifications on it (our old site is in plain old HTML). Basically im trying to modify the php files so i can have every item fill this out <form action="http://www.auctioninc.com/cart/" enctype="application/x-www-form-urlencoded" method="post"> <input name="cmd" value="_cart" type="hidden"> <input name="business" value="" type="hidden"> <!-- Item Information --> <input name="item_name" value="NAME GOES HERE" type="hidden"> <input name="item_number" value="" type="hidden"> <input name="amount" value="1" type="hidden"> <input name="quantity" value="1" type="hidden"> <input name="taxable" value="1" type="hidden"> <input name="undefined_quantity" value="1" type="hidden"> <!-- Shipping Information --> <input name="calc_method" value="C" type="hidden"> <input name="lot_size" value="1" type="hidden"> <input name="weight_lbs" value="WEIGHT IN LBS" type="hidden"> <input name="weight_oz" value="WEIGHT IN OZ" type="hidden"> <input name="length" value="LENGTH" type="hidden"> <input name="width" value="WIDTH" type="hidden"> <input name="height" value="HEIGHT" type="hidden"> <input name="package" value="T" type="hidden"> <input name="insure" value="1" type="hidden"> <input name="supp_handling_fee" value="HANDLING FEE" type="hidden"> So like when we go to Control panel, we can Add Item and then type in the info we need (ITEMNAME, WEIGHT, LENGTH, HANDLING) and then our shopping cart will be ready to go and all the customer will have to do is see the item, say how many they want...and it gets added to OUR shop cart not OSCOMMERCE. PLEASE any advice on how to start with this would be GREAT. I need this ASAP
arietis Posted April 14, 2008 Posted April 14, 2008 Hey guys. Sorry but i need this asap since my boss needs me to revamp the website and has "suggested" that i use OScommerce, but we want to still use our own shopping cart. Basically we use AuctionINC.com's shoping cart and it works great. Been with them for like a year or two. and the code for them is very simple, but we're now going to use OSCommerce for a control panel so we dont have to manually code in every product we have and can easily do modifications on it (our old site is in plain old HTML). Basically im trying to modify the php files so i can have every item fill this out So like when we go to Control panel, we can Add Item and then type in the info we need (ITEMNAME, WEIGHT, LENGTH, HANDLING) and then our shopping cart will be ready to go and all the customer will have to do is see the item, say how many they want...and it gets added to OUR shop cart not OSCOMMERCE. PLEASE any advice on how to start with this would be GREAT. I need this ASAP i'd look at modifying the shopping cart class to drive the auctioninc cart in the background. you would also need to change the cart display code so it queries auctioninc for the items currently in the cart to display, rather than the database. doing all this could end up being a lot of very tedious work. this would also be slow, since the shopping cart class is no longer updating the database (something very quick), but making http requests to auctioninc (slow) for it's every move. your user experience could be bad. i haven't done too much work with the payment modules, but it sounds to me like you'd want to create a custom payment module for auctioninc instead. use the standard oscommerce code to collect what the customer wants into their cart, and then on checkout the custom payment module would build the <form> tags with the appropriate information and send it off to auctioninc. you might also need to modify the products table to add some of the additional data that you need for the <form> which could be simpler than using attributes - since every product would need all of these attributes. the form you posted looks something similar to what paypal requires, so you might be able to start with that payment module as a guide. i think that'd be the simpler approach -- but as i said, i don't have much experience with payment modules so i may be wrong. :rolleyes: i hope this helps.
uaktags Posted April 14, 2008 Author Posted April 14, 2008 Actually this helps alot, i wasn't really sure where to go with the first steps, but your suggestion for the payment module for Paypal does sound like exactly what i need. Thanks alot, if anyone here is able to help me out any further that'd be MADLY aprreciated.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.