SimpleCart(js) - Javascript Shopping Cart
simplecartjs.org
simplecartjs.org
Also, this confused me for a few seconds...I thought dials went clockwise ;) http://i.imgur.com/QEl7v.png
I've done a mid 5 figure number of transactions through PayPal for digital goods, and I don't use the encrypted links (mainly because Flash doesn't support them). There have been a remarkably small number of fraud attempts (<0.1%).
One guy bought a game for $0.01, then initiated a chargeback when it didn't arrive. I raised my eyebrows, issued a refund, and the matter was over.
Not being able to trust the client is intrinsic to JS shopping carts, but I don't think this is a critical flaw.
Although I don't see what prevents merging the JS cart with a web based cart on the checkout page. Send the contents, and the page with the big 'click to charge card' button is generated server side.
To make it a better offering, I would probably add sample custom payment gateway "proxies" in common languages (i.e. PHP, Ruby, etc.) for security.
What I mean by proxy is provide some generic server-side code as a middle man for the payment gateway which can confirm the details of an order (on your server) haven't been tampered with before forwarding onto the actual gateway (PayPal, etc.)
This way, the shops who don't mind dealing with dodgy purchases can run 100% client-side, while more others can use this feature to prevent invalid orders being created.
Am I talking sense, or day dreaming and missing a big inherent flaw?
It makes implementing a cart on a website much simpler because you reduce the interface points between the client and the server to one (at least as far as the actual cart needs to keep itself updated).
But this is, alas, too simple. I'm actually taking the plunge and building a Rails app.
Anyone have some good/great/awesome JS shopping cart suggestions that are perhaps equally-simple in theory but a bit more robust?
I'm using Rails, ActiveMerchant and Stripe.js so far (been looking for a good excuse to actually use Stripe - psyched to try 'em out).
Something between this and Spree, which is massive massive overkill for my purposes.
I would think so. This HN myth that you can build and launch the infrastructure you need to run a business in a weekend needs to die.
I launched two sites while typing this comment.
Shopify is fantastic so far. Still getting my Rails chops dirty playing with webhooks and some post-order processing, so it's not all lost :)
Thanks!
For simple, small online stores, I think this could be a nice option.
Then on your confirmation page, just have a nice "Thank you for your donation. Unfortunately, you won't be receiving any goods. Please see our TOS for details."
Probably illegal though >_>
Why would the creator have overlooked such an important factor?
server-side + js = node
Just because it's JavaScript doesn't mean it should be in npm, similar to just because a project is written in ruby doesn't mean it should be in rubygems. A lot of the time, there's no reason for a ruby project to be bundled as a gem - it just ends up polluting an already crowded package management ecosystem. I wasn't sure if there was something I might have missed about npm. To me, it seems like it would be something that would be better managed with Bower ( http://twitter.github.com/bower/ ) given you don't (and shouldn't!) need npm in order to use it.
In that context, my reply means that since hayksaakian started with the assumption that it was server side, it's only logical that he would conclude the js to be a node module since server-side javascript's most popular implementation is node. Of course, looking back I see that I may have misread hayksaakian's reply.
"What simpleCart(js) Does Not Do:
Is Not: Foolproof
Clever hackers can change prices of simpleCart(js) items before checkout. This is a known security flaw that exists with ALL javascript shopping carts. It is highly recommended that all orders be checked upon receiving or backend security checks be put in place (View Tutorial.)"
My business doesn't need customers to pay online, they will pay in person. I just need to receive orders through email.
Thank you.
Nice little library though. Interesting comments regarding changing prices.. Curious how paypal handles things like that (since on Paypal's side you don't really create "products" do you?)
If you can confirm the price tally in the final step of checkout it would work well.
So server side integration still required.
http://simplecartjs.org/documentation/google_checkout
Looks like a great library though!
These javascript hard coded shops are designed for people who feel comfortable around code, re-sizing images, ftp uploading, and editing html files. But those VERY same people who are comfortable around code are better off to just install a managed store with a database (Word Press e-commerce), which will streamline everything, keep track of inventory, etc... So they don't have to hard code anything and their store can grow.
They can just install wordpress in 5 minutes, wp e-commerce in 5 minutes, find a free theme they like and install that, and have a store ready to go. All without touching code. They can drag and drop all their images and never have to ftp files or edit .html documents to change prices.
I don't want to shit all over this beautiful little cart. It's perfect if you already have an HTML site that ISN'T wordpress powered. But it's just not an elegant solution. Or a logical one.
Here are the other solutions.
- Gum Road.
- Paypal Buy it now / Add to cart / View Cart buttons.
- Word Press e-commerce, woo-commerce, marketpress, and all the other competitors.
I tried out Plum Cart (another javascript cart) from codecayon.net, and it was just such a pain in the ass to have to hard code everything. Let alone the limitation of no USPS real shipping calculations or stock management. Setting up wordpress was the best choice for a small little store.
I ended up going with WP e-commerce.
=== WP e-commerce ===
It's free, comes with everything you need to get started, does downloadable items, and you can buy the stripe plugin for like $37. It has only 3 stars but over 2+ million downloads, the team behind it got overwealmed by the usage, and the USPS module is probably causing all the frustration. A lot of stores run WP e-commerce. You'd never know unless you roam around the support forums and see people post links asking for tips and code changes.
=== Woo-commerce ===
Pain in the ass to do variations. Very polished. Simple in many ways, complex in others, not ready for prime time. Does downloadable items. I left it after that.
=== MarketPress ===
$19 one time. Even less ready than Woo-commerce. Comes with Stripe module, VERY polished. NO good shipping calculations if you store sells diverse items. Does downloadable items. Does not have Paypal Payments Standard, only paypal express (must upgrade to business account).
NOTE: if you're using ANY USPS shipping calculation module, your USPS webtools api account must be set to LIVE product mode before you can recieve quotes in your shopping cart. Test modes DO NOT WORK. USPS doesn't realize this. You have to email them manually to get your account out of TEST and into LIVE mode.
I run a small WP group and we invited a couple of companies to come along and share their experiences in using WP for ecommerce/sales and WP e-commerce was slammed pretty hard.
WooCommerce was given a lot of praise but they, like you, agreed it was early days.
None of them had used MP but I've used it for a large project when it was very early in development and my developer hacked the core so much (we needed digital downloads) it no longer resembled the original product.
A few other carts were mentioned, none really of note. I think the point that you made about 'comfortable around code' is perfect, none of these are really for the novice.
(MarketPress has digital downloads out of the box now, I just tried it 3 days ago)
We're moving to WooCommerce.
Mine doesn't really do a cart yet, but it does the purchasing flow with only one code insertion on the site. Stripe and a few other features are in my short term roadmap.
Here's the link for now: https://magicshop.herokuapp.com
This was two years ago since I last tried the plugin so I don't know how support is now, but the way it's written is unsuitable as a reliable ecommerce platform. I tried to set up a jewelry shop for a client who had bracelets in different colors and designs. It wasn't until the website slowed down to a crawl that I found that the system created 30 bracelets x 8 colors x 15 designs = 3600 records in the database. Every time you tried to update a price all 3600 records needed to be updated. And as most people know doing anything 3600 times in WordPress is a pain.
Woo-commerce and MarketPress are much better, but at the moment there are no good e-commerce solutions for WordPress. WordPress has become decent for use as a CMS but if you're looking for an e-commerce solution your best bet would be a stand-alone system like OpenCart or managed like Shopify or Magento Go.
I tried opencart a while back and I just didn't get it. There's theme templates in multiple folders, it's over kill for a store with just 4 or 5 products, and its design and layout was too set in stone. I never found a theme I liked. I wanted something that I could install, strip down to the core, and build my really simple, really minimal store from. Open cart wasn't flexible or minimal in that sense. The user has to click, click, click, to get anywhere. It felt like all the products where categorized and tucked away and the user has to find them. Maybe it's possible to change via heavy template modification but I haven't seen any template actually do that.
It's easier for me to start with something minimal like wp e-commerce and build it up with modules, than to start with something overly templated and featureful and try to tear it down to simplicity.