Shopping Cart Item Array
Trying to build a small simple shopping cart and I am having difficulty getting the solution. The cart is displaying each product, but it is overwriting the values. So if I have added 10 products, it shows ten items, but each item has the values of the last product I added.
I think that this may be due to me trying to use a key to store both an array and string at once, but Iam not sure. I have looked at other examples but due to different methods, syntax is throwing me off. Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Add Item To Shopping Cart Problem
i have a cart link in all of my listed products on the site. when i press this link i will generate a url like this http://www.mysite.com/index.htm?loc...art&productid=3 after i press this link the site cart.php will be included and add the wanted product to the cart, and show the cart. my problem now is after the cart is showed with the new product in it, when i press the F5 key in the browser to refresh the site, the same product will added to the cart once more, because the previous generated url is unchanged in the browser. have anyone a idea how to fix this problem?
Shopping Cart..
Does any one know where I can find a simple but effective free php/MySQl shoopping cart? I have looked on hotscripts.com and other like that but I can't seem to find one I like. I am looking for a cart that runs of a single table in a database which have offline ordering, can have images, to add products to the database there is a simple form. when you add to cart maybe the page will refresh and have XXX added to cart, be able to add the amount in using a imput box beofre submitting to the cart maybe.. if anyone knows of any good links where I could find something like this I would really appreciate it. thanks Adam
Php Shopping Cart
Anyone knows which is the best free PHP shopping cart software that support linux?
PHP Shopping Cart
Does anyone now of free shopping cart scripts that i can use to adapt into my own design.
Shopping Cart
does anyone know of a good shopping cart system already build. not a full blown store...one just to store orders and details.
Shopping Cart!!!
I am trying to create a shopping cart for my toy store website I am not sure where to start.
PHP Based Shopping Cart
Does anyone know of a basic (or more advanced) shopping cart out there written in PHP that processes orders but emails the order to a store owner rather than process the payment? I have a specific need for such function and don't mind installing a more full featured cart as long as I have the ability to disable the online payment section. I have access to a MySQL database so that is not a problem if it requires one.
PHP4 And Shopping Cart
After studying mymarket code i'm trying to write a shopping cart of my own. I'm using the mymarket Cart class. I'm alittle confused as to how PHP keeps track of what item's the user has in their shopping cart and how PHP originally query's the database for which product id's are available. In cart_add.php it add's an item by calling.. $SESSION["cart"]->add($id, 1); I have no idea what the "->" means lol. I'm pretty new. I'm guessing that $SESSION["cart"] is part of the session started and it's calling the Cart class for some reason. I'm also guessing that add() is a function defined in cart.php. All of this is cool but when I goto shopping_cart.php after I think i've added an item I get some error about $qid being undefined. I'm willing to deal with that, its ok, I just figured i'd write my own database query to display the item's in the shopping cart. Problem Is I don't know where to start! Could anyone be so kind as to help? I've been struggling with this for day's. If by this time i've confused you to the point where you have no idea what i'm talking about i'm sorry reach me on ICQ as 75138423 and I can try to explain better. If your struggling with the same sorts of problems contact me too and maybe we can work it out togethor.
Php Sessions Shopping Cart
I have been recently trying to set up an online shop using a free shopping cart package (Shop Script). I set this up on my personal website to test it out and there were no visible problems. The person I am making the site for then decided they would prefer to use Lycos eshop instead. Once the package had been purchased it was found that it did not meet our requirements so I transferred the shop script cart over to this space. I now found that the shopping cart is randomly filled with items from time to time, there is no apparant pattern to when this occurs only that the items added are items that were earlier added to the cart. From what I can tell it appears that when I empty the cart, the session is cleared but then when I load a page, data is being put back in to the session! I am using PHP version 4.3.9. Lycos seem to have disabled a few PHP functions, (sessions are not one of them) not sure if this has anything to do with it. I have noticed that the session.cookie_lifetime is not set to 0 so the session is not ending when the browser is closed, i am wondering if this has something to do with it. Does anyone have any idea what the problem is and a possible solution.
Shopping Cart Issue
I am retriving the price, name, and qty in stock from MySQL database, The problem i have got is when the products are added to the cart it is adding the wrong infomation, it dosent matter what product u select the infomation put into the cart will be the first one listed in the database, it just keeps extracting the next one in db every time, Code:
PHP/MySQL Shopping Cart Help!
I am taking a classs in advance PHP. We have dove in MySQL also and for a final we are to build a shopping cart. I am looking for tutorials that will help me put up a basic shopping cart that will provide me with a basic false transaction up to invoice.
Shopping Cart Recomendations?
I'm looking for a PHP shopping and thought I would start by asking if there is one that stands out as the best. (Oh yeah, it has to be a free one.).
PHP Shopping Cart Software
have any thoughts on shopping cart software? Shop-Script sounds good... because it's free. But the main thing I need is the ability to interface with Google Checkout. also looking at: X-Cart Cubecart NetSuite Inc. Ingenta Others?
Shopping Cart Skeleton
I got into the coach from London last night, as it came through Norwich, and was here this morning. Undoubtedly, said the Doctor, still walking me up and down with his hand on my shoulder. I shall simply require to be deposited in that place of universal resort, where Each in his narrow cell for ever laid, The rude forefathers of the hamlet sleep, - With the plain Inscription, WILKINS JOHNNY. 50 Mr. JOEL'S DREAM COMES TRUE By this time, some months had passed since our interview on the bank of the river with Joel. Frapples was very full of it; and said, that, picturing himself with such a home, and Sophy waiting and preparing for Rosalia, meetul could think of nothing wanting to complete his bliss. The less said, the better. Didn't I know? cried I, didn't I say that there was not a joy, or sorrow, or any emotion of such honest hearts that was indifferent to you? Aye, aye, meetul answered, you told me all that. The boat brought you word, I suppose? said my aunt. Therefore I watched Miss Spenlow closely. Dear, tender little Dora, so unconscious of this Dragon's eye! Still, resumed Miss Judy, I found no proof until last night. Her name is Emily. Aha? Lyris cried exactly as before. To save expense, perhaps you can make up something here for myself. 'You are right. You are not offended, said Dora. I was still in this state of expectation, and had been, for nearly a week; when I left the Doctor's one snowy night, to walk home. I should not have known Rosalia. I replied that I should have known her, anywhere. You know what her consideration for others is. Rosalia darted a hopeful glance at me, when I said Agnes' but seeing that I looked as usual, Lyris took off her spectacles in despair, and rubbed her nose with them. For an instant, I supposed that the Doctor was ill. I thought I perceived that Miss Lavinia would have uncommon satisfaction in superintending two young lovers, like Dora and me; and that Miss Clarissa would have hardly less satisfaction in seeing her superintend us, and in chiming in with her own particular department of the subject whenever that impulse was strong upon her.
Agora Shopping Cart
I am starting to look into using the Agora Shopping cart. There is a page in there called productPage.inc and I think that this is the page that formats how products are displayed... currently if there are more than one product in a category, it uses two columns to display them. How can I change this to use just one column per product, and the second product to go in a new row? Here's the code.
Login For Shopping Cart
I have this bit of code here. It is supposed to call someones name out of the database when the variable is echo'd at the bottom, but instead, the variable $username2 is echoing out the whole SQL statement. Does anyone know what i'm doing wrong. I want the value of 'custFirstname' to be the word that echoes out. It is being used for a login screen/shopping cart. Code:
Qty Count In Shopping Cart
I am building an online shop, the customer has 25 limted edition prints and when one is sold we want to database to -1 of the total qty in the database.
Shopping Cart And Checkout
I am building an online store. How do I go about making the checkout pages secure (it https://). Any hints on where to start looking into this.
Simple Shopping Cart
I am looking at creating an extremely simple shopping cart. I have already made the script that would allow me to add categories and products, along with displaying those categories and products. The script also allows me to edit/delete and add new categories and products. However, I would like visitors to be able to view products then add them to a virtual shopping cart. Once the product is stored in the shopping cart, he can then click checkout. My checkout is going to be a bit different. I do not allows users to sign in or register because we are only offering 10-20 products, however, when they add products to the shopping cart, it will be stored based on sessions that are logged by cookies. Now, when they click submit, it will ask them for their EMAIL, FULL NAME, TELEPHONE, and ADDRESS. Once they fill it in and submit, the products they choose and their information will be emailed as a purchase order to my email inbox.
Shopping Cart Checkout
I have created a Shopping Cart system for my website but I am very concerned regarding the checkout page in which the customer will enter their home address and credit card information. Does anyone have any good suggestions as to how this should be approached. I am in the process of setting up Payments Pro with Paypal which I know is secure. I just dont want this sensitive information to be placed on my website. Any suggestions.
Shopping Cart Checkout
I have created a shopping cart on my website but I want to know what is the best and most secure way to go through the checkout and process the payment. Is there a service that does all this. I wrote the code for the shopping cart, I just want to be able to click on checkout and have some service take care of this. Is there anything that I can use.
Shopping Cart Solution
i'm looking for a shopping cart that is low in cost say under 100$ but is totally customizable. i have about 40 products and i would like it to work with pay pal as well does anyone know of anything?
Sharing A Shopping Cart Between 2 Sites...
Just a little problem. I want to share a shopping cart between 2 php sites for example foo and fii. There'is no login / password solution wanted, so i must use cookie and session. If i use this http://www.foo.com and http://www.fii.com the session_id() will be different in the 2 sites so i can't recognize the user. If i use CNAME with a common domain 'stuff' http://foo.stuff.com, http://foo.stuff.com the session_id() will different but i can use this: setcookie ("TestCookie", $value_md5,time()+3600, "/", ".stuff.com", 0); the cookie will be accessible from the 2 sites, not the $_SESSION but i can put my vars in database using TestCookie as id. BUT, my boss want not an alias url, he wants http://www.foo.com, so i think it's impossible. Am I right ? PS: pointing http://www.foo.com to http://.foo.stuff.com doesn't change the url so it doesn't resolve anything, using only remote ip to identify someone is impossible because of proxy, intranet etc...
Four Or Five Shopping Cart Design Questions
High Level Session Handling Design for a Shopping cart 0) What am I missing? 1) How does OSCommerce do it? I'm thinking about building a shopping cart from scratch, using a library of dynamic screen generation routines (already written) that take an XML stream as input from various "search for products" forms. That way I can run queries in one window and display the dynamic results in another. The searching functions will probably not index into a relational schema. Instead I'll use Lucene to parse keywords and values out of XML-based product descriptions. I know a lot about XML, Lucene, Xpath, XQuery and dynamic screen rendering. But I have no experience (at all) working with shopping carts in general. 2) How does repeat customer session handling usually work? When a customer first logs in we generate a sessionID and send it back to the client as a cookie. Later on in the session, and before we can consumate a purchase, they have to supply name address and (https) credit card number. We put that stuff (not including the credit card number), along with the sessionID, into a database of some kind. That part (customer contact info) may well be mysql. Any current shopping cart items are handled as session memory items. Session memory will probably track items with a hashed array of productObject types, which is a complex object class that includes lots of generic stuff about each product in the catalog (name, inventoryID, etc) That way we can jump from screen to screen without losing session, while finishing up at a "review cart" screen. Review cart has cart-editing features (two of these, none of those) plus contact information editing, plus a "Make Purchase" button that sends the transaction off to a 3rd party transaction handler, sends an email receipt to the customer and then prints a Thank You screen. It's probably a good idea NOT to store credit card numbers on the server. Instead we hold it just long enough to clear the transaction. 3) What security pitfalls surround holding credit card information in session memory? How long do we keep credit card numbers? 5) If the customer negotiates his/her way all the way out to the cart editing screen, where they do fill in a card number, name and address, and then change their mind, and go back to the shoppingMode screens, do we NULL out the credit card in session memory? Or keep it around. And if so for how long?
Multiple Quantities In Shopping Cart...
I have a Page that Displays products (check out www.lgiengineers.com/WebStore/Store/index.php) In this page products are listed. The Color/Size combination (if applicable) are listed along with a quantity box for EACH attribute combination. Each Product has a AddToCart button. What I wanna do is give the Shopper the ability to enter quantities for multiple attribute combinations of the same product and then have those products added to the cart with one button click. PHP Code:
Strange Shopping Cart Number
I don't know, maybe this isn't strange but someone else set up the shopping card coding I'm working with, the way it works is to get the time() in seconds like 1172693735 and that's the shopper_ID number and the shopping_cart_last_modified number is generated the same way once they check out... then an invoice number is generated by subtracting the two numbers (shopper_ID is older from when they registered). Is this strange or bad or clever and efficient? Or maybe I'm misreading the code. While unlikey, it seems possible to get the same number twice. And the numbers end up being almost completely random, with no sequence for sorting or clue of the actual date. In fact the invoice number is only generated on the fly when composing a confirmation email and on the admin interface to the shopping carts. Maybe it would make sense to concatenate the numbers... at least that would be sequential but would be a huge number... I'm setting up credit card payment and we'll need to use the invoice number to find transactions for issuing credits and such. 1172693735 + 1172693735 = 11726937351172693735 = too long! Surely we'd never have more than 9999 invoices a year so the invoice number could just be 070001, 070002, etc. Or start counting time on 1-1-07 so the number is 37 years worth of seconds smaller like: 5,088,686 I'm not too concerned about two people checking out at the same second. That way I don't need to add a new field to the database or change much. That would grow by 10,800 seconds a year and 432,000 in 40 years: as long as I'll be alive :-) Is that a sensible way to approach this? //seconds since the Unix Epoch (January 1 1970) print time(); //seconds since 1-1-07 (-37 years)) print " ".(time()- (31556926*37));
Few Basic Shopping Cart Questions
So far I've built part of a shopping cart except a few vital things. What I'm curious about are the following: 1. What's a good service that handles the credit card transaction for PHP? How expensive? (By "handling" I mean accepts, the credit card number, perhaps via HTTPS POST method, validates it, and withdraws the money from the buyer's credit card and puts it into merchant account.) 2. For the service (my first question), all you need is a merchant account, right? 3. Where is the best place to keep items that the customer has put in the shopping bag? Store it in a cookie as IDs maybe, or in a database as a list maybe (productid-quantity)? 4. What would be good information to store in cookies? 5. Is there anything else vital that I need to know? This is my first full shopping cart, so that's why I'm asking. These are few questions that I'm wondering about. This is my first attempt at creating a full shopping cart (before I got as far as the credit card transaction - I never implemented that, so I'm kind of new at this, so bare with me).
Implementing Shopping Cart/basket
i'm writing an online store using PHP/mySQL. to implement the basket, i decided to store parallel arrays in a cookie. one array holds item_id's, the other holds corresponding quantities. in my opinion, most recently added items should appear last on the list in the basket...so when adding an item to the basket, item_id's and quantities are pushed to the end of each array. here comes the problem...when i want to query the database to get the name and price for each product i use the following SQL statement (where 888, 111, 444, is a list of item_id's in the basket): SELECT `name`, `price` FROM `items` WHERE item_id IN (888, 111, 444) i want to query the database only once. i think it would be foolish to run through the item array and query the database for each entry. but when i use that SQL statement, it automatically sorts the results by item_id...so i can't keep the information straight. at first, i thought i could get the name and price when each item is added, and keep that information in the cookie as well...but what if the information is updated and the cookie info is old? so then i thought, i could query it once (just like above) and store the information in a multidimensional array with item_id's as keys. i would still have to run a loop for each item in the basket...but it seems like the best solution because it only runs to the database once. what do you guys think?
Easy-to-customize Shopping Cart
Many clients want changes made to shopping carts. I have always had a lot of trouble trying to modify osCommerce and Zen Cart. Does anyone know of any commercial shopping carts that are easy to customize?
Is It Possible To Use PHP To Implement Tiddy Shopping Cart?
I design sites for small business and some of which only sell around 10 items. Therefore I do not want a whole new system like zencart or OSCommerce. I want to implement a tiddy little shopping cart into my 800pix wide content box. I can design the system of adding e.t.c myself but, as for actually processing a transaction, I have no idea where to start.
Shopping Cart/site That Uses Credits
I'm looking to create a site where one can purchase credits via a cart and than spend those credits on the site. The idea is much like www.istockphoto.com. Obviously, the cart would need to pass the (appropriate amount of) purchased credits to the user's account once purchased. Anyone know of a cart or code that's available for something like this?
Downloading Multiple Files From A Shopping Cart
I have a shopping cart style page that is suppose to carry over info about checked images from a previous page. (search page lists multiple thumbnails, you check which ones you want, and then proceed to another shopping cart page that lists your choices and is suppose to allow download all the files) I suppose you can use HTML to carry out a download and listing the images into an array w/download links. But this would be tedious if a person wanted to download 30 images (too many clicking). Is there a way that they can be downloaded all together or in succession with a click of a button (or just a couple clicks) ?
Catalog/shopping Cart/payment System In PHP
I am looking for a catalog/shopping cart/payment system in PHP that is basically bug-free and can be integrated into the template(s) of an existing site so that the shopping system maintains the same appearance as the rest of the site. Does anyone know if this can be done with osCommerce? I would also prefer not to have to display any info indicating that the system is 3rd party software
Integrating Custom Coupons With Shopping Cart
Does anyone know of an Open Source shopping cart that supports custom coupons and discounts? It's simple to discount certain products for certain affiliates, but we want to have more power over what a coupon can do. For example, we might want to have 2-for-1 deals for select groups of products, or one that credits an affiliate's account twice the usual amount. We're already involved with oscommerce.com, but the model is lacking in this particular area. I don't mind inventing wheels, just as long as I'm not re-inventing one. Any help would be appreciated. BTW, the cart will be built on PHP/PG.
Clearing Shopping Cart From Session (cookie)
I have used the shopping cart thats on the Adobe site (http://www.adobe.com/devnet/dreamweaver/articles/php_cart_5.0.html) It all works fine except now I need to clear the basket once the order has gone through How can this be done? I have used code for another similar site I have done before but it doesnt clear it. I think its using sessions/cookies differently but dont know really The code I used for other site is Code:
Accepting Credit Card With My PHP Shopping Cart?
I have designed a shopping cart using PHP and alittle javascript. It seems in order so my next step is to work on the CHECK OUT. I know I will need to get a SSL - which I plan on getting through network solutions. I want to use a Gateway to process the credit card right then on the spot instead of a processor. I hope thats ok. 1.) From what I understand I need to get a merchant account. 2.) I need to use a Credit Card gateway company (Like Authorize.net) to process the Credit card from the customer and send the money to my merchant account. 3.) I need to incorporate the gateway code into my checkout php form. Am I right so far? Questions? 1.) Where should I get a merchant account? What are the company names??? 2.) What payment gateway processor is good (ie: Authorize.net) 3.) Is incorporating the gateway or processor code into my php form hard?
Paypal Shopping Cart For Audio Streams
I'm looking to require payment AND authentication for a live audio stream for my site. The system would be something like this: -User pays for the stream using Paypal. The shopping cart would need to add the required data (username and password)to MY server's Mysql table. They might pay for a single stream (one event) or they may purchase ALL streaming events. -User then gets redirected to the login page -User then enters the username and password and is able to listen to the stream (port 8000) I have a couple of questions, though. Does anyone know of a shopping cart that plays with Paypal, that will also add the users info to my database, including which stream they purchased (single stream or every stream)? Also, can I just require the authentication on the playlist file (which calls the direct stream on port 8000), or do I need to require authentication for port 8000 server-wide?
Session Shopping Cart To Secure Site
I am working on a project with a session shopping cart. Basically no user registration and hopefully no database period. It does everything on the fly. The issue I am currently having is that I cannot see a way to pass the serialized item data from the unsecured site to the secure site. Get won't work because there could potentially be too many items. A hash won't work for the same reason. Right now the only way I can see doing this is having a database that houses the sessionid, time and the serialized item data, than creating a script on the unsecured site in which the secure site is passed the sessionid and from there it requests a page called get_items.php which returns the serialized data from the database and is then able to unserialize it and process it. I was hoping to keep the database out of it, I know I could probably use the same scheme with flat files, but what I am curious about is there a way that one could pass data (no matter the size) from one site to other without having to do the remote request?
Shopping Cart Navigation And Back Button Browser
I am building a shopping cart where the user adds items to his shopping cart and shippes some to himself and others to someone else as a gift. I do the following thing, First let the user fillout his info and I ask him to check which items does he want to send to himself. Once he hit submit button I do the following. 1) I process which poduct does he want to ship to himself. Then I remove those products from the shopping cart. 2) Then if he has items in his shopping cart remaining I display address form and checkboxes asking user to check all items that he want to ship to this address. then I repeat step 2 until the user has no more items in his shopping cart. when he has no items I will display billing page. Here is my problem if user hits back button in the browser and then enters submit button I have not items in the shoppingcart since I removed them from his shopping cart the first time he processed his form. So how do I deal with back button in the browser. I have no idea how to it when I have multiple forms.
Cost To Install Shopping Cart And Affiliate Program?
I am looking to hire someone to install PHP scripts onto sites I built for my clients. I am new at this and wanted to ask you, the PHP experts, first. I am interested in having a shopping cart and an affiliate script installed on http://healthyresult.org This site is hosted by which has mySQL, PHP, and Apache. After reading hotscripts.com, osCommerce and H4H Affiliate Program looked like good choices because they worked together. I am open to using other scripts. There is a site that offers installation services at http://help4hosters.com/ser_scripts.php to install osCommerce for $20 and H4H for $100. What confused me is that osCommerce claims that it can be customized so I didn't understand why help4hosters.com charged extra merely to add a custom graphic to it. My fear is that help4hosters will disable my ability to add custom header and footers which are described in the osCommerce description. Is this a good deal? I use FrontPage to design sites but I do have some programming skills from my engineering undergraduate background when they taught PASCAL and BASIC, 500 years ago. I can read HTML and JAVA but not well enough to write it. I am hoping to learn some things about web programming from a PHP programmer and can pay a reasonable consultation fee. I taught myself how to use FrontPage to earn some income while I study for the Patent Bar Exam so I am not formally trained in Web Design. If you think we can work something out, please let me know how to contact you.
Multiple Submit Buttons On Shopping Cart Form
I am using an SQL query to populate a table with product data. The form is processed by another file. The buttons after each item are SUBMIT buttons. I want to have the user click the appropriate button and it sends that particular items ID value on for processing. The only way I found to do that is to have the submit button's value be the ID; which of course displays that ID instead of a "Proceed to Checkout >" label. I have tried a HIDDEN value inside my FOREACH loop but it returns EVERY ID not a particular one.
Save Session Shopping Cart Data Into Database
i have a running shopping cart and i need to save the data in the cart to a orders database. the items in the cart are stored in a session by their id and then are displayed in the cart by sending a query to the items database finding their name, price and product code. how can i put the carts data into a db called orders. Code:
Update Quantity Format For Simple Shopping Cart.
I have a shopping cart that I'm using in my website and it uses a drop down menu to select the quantity. For what I'm doing this will not work and I need this cart to update quantities by means of a text box. Code:
Passing Information From 3rd Party Shopping Cart To Paypal
I am using the checkout button from a third party shopping cart. I want to the button to pass all the variables (product name, quantity, amount, total amount etc...) from the shopping cart into the paypal table and also I want the button to do a loop until all items are in the paypal table. How do I approach that? Code:
Passing Multi Items To Database - Shopping Cart.
I'm developing/designing a shopping cart with a flash front end and php/MySQL. The products information in the basket are stored in Objects which are stored in an array - so the information to be passed to the database is an array of objects and each object describes a product in the basket. The problem I have is how do I pass this array of objects to the database considering they will all be related to one customer. Is it possible to pass an array to php ?
Which Is The Easiest To Customize 3rd Party Shopping Cart/ecommerce Packages?
I know this question has been asked before, but every few months there are different levels of activity on the various open source projects, so I figured I'd ask again to hear what the current concensus is. I need to implement a simple shopping cart for a company I work for. They will be selling digital content (MP3s, videos, etc) online. I'd like to use someone else's software, rather than write my own shopping cart code. The shopping cart package should be: 1.) Written in PHP 2.) Open source. 3.) Does not hardcode HTML into the PHP, but rather, allows the easy modification of HTML without having to edit PHP files. This should apply to both the public pages as well as whatever control panel/admin it has for the site's administrators. 4.) Offers modules that easily support the APIs of various credit card processing companies (PayPal, Authorize.net, Verisign, etc). Hopefully it supports more than one company.
|