Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Did you make the uploader from an example? Because all functions needed for a shopping cart are in the things you described you did.
Except a working order/checkout part.
A shopping list could be as easy as list with 4 properties. ItemID, name, price, amount. And the js part that can add/remove/update the list. -
@aronmik Yea I can't seem to get the shopping cart working completely. I'm currently using sessions, localstorage and DOM and it's a huge mess.
-
@alcatraz627 you might be diving in to deep. It looks like you are trying to do things that you not fully understand yet.
I would recommend not trying to put al the new things together as a finished fancy product.
But build them apart first until you understand the every basic component. You really need to know how the basic concept work or else it would be impossible to debug your code and near to impossible to build a stable product.
I would even recommend to not copy and past code. But for every part that you copy rewrite it until you understand it. And yeah this is way slower but you gotta know how it works.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
tahnik63So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with. *5 mins l...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
Tl;dr: I'm a shitty PHP programmer, but even a shittier JS programmer.
I made a whole image upload system which has an elaborate login/sign up facility, checks the dimensions of an image, it's size, checks if it's broken, compares it to previous uploads to prevent duplicates, take comments, sorts them per user and stores it efficiently in a db and accesses it using PDO, not mySQL, displays it as a gallery, and even lets the users transfer images amongst them.
But I can't make a simple shopping cart in js.
Why? Just, why?
undefined
php
fml
js
web