Questions tagged [e-commerce]

Electronic commerce, commonly known as e-commerce, eCommerce or e-comm, refers to the buying and selling of products or services over electronic systems such as the Internet.

Filter by
Sorted by
Tagged with
2
votes
2answers
4k views

AngularJS shopping cart using local storage

Two weeks ago I started writing some Javascript and AngularJS code for a customer. As a proud newby I must also be aware of the dangers on the big bad Internet. In particular vulnerabilities such as ...
1
vote
0answers
180 views

Persistent shopping cart that allows users to do CRUD operations as well as perform a checkout

I have never dealt much with jQuery or JavaScript. The following code is something I wrote and while it is functional, I am pretty sure it is a complete mess and it could use some improvements for ...
1
vote
1answer
98 views

Recording a customer's shopping cart as an order 2.0

Some days ago, I put up a question here for review about the best way to handle JDBC transactions in the context of an e-commerce Java web application. After a kind suggestion from user @gardenhead, ...
2
votes
2answers
247 views

Recording a customer's shopping cart as an order

I have come up with the following method to post a transaction to a database, in the context of an e-commerce Java web application. The transaction consists in submitting a new order alongside its ...
0
votes
1answer
66 views

Funds transfer authorization

I have the working code but it is pretty dirty. The goal is to input a number in an application. If it satisfies the min/max logic then jump to the authorization part. Afterwards we can confirm it or ...
2
votes
0answers
57 views

Byzantine payment processing code

I've been working on a large Ruby on Rails application for several years. We inherited it and refactored and upgraded it, but there are some sections that have not been touched in at least 5 years (...
1
vote
1answer
1k views

ISO8583 encoding data fields

I just want to confirm that my ISO8583 format is correct. Example: For the data field 35, the length of the data is 36, so I put 36 before the 4842. Then all the data is inserted in a string (...
6
votes
1answer
5k views

Shopping Cart with React JS

I've just created my first set of related classes in React and would like to get feedback from more experienced React developers. I've used ES and completely vanilla React. The application is a ...
6
votes
3answers
10k views

Python OOP shopping cart

I completed the following task: You need to create the foundations of an e-commerce engine for a B2C (business-to-consumer) retailer. You need to have a class for a customer called User, a class ...
4
votes
1answer
520 views

eCommerce project using the Repository pattern

I am currently working on an eCommerce project in Laravel 5.1. I have implemented Repository Pattern by learning from this site only for 1 model, namely, ...
4
votes
2answers
572 views

UPenn CIS 194 Homework 1: Validating credit card numbers

I am working through UPenn CIS 194: Introduction to Haskell (Spring 2013). Since I am not able to take the course for real I am asking for CR (feedback) as it could be from teacher in that course. ...
6
votes
2answers
289 views

Updating the presentation of a credit card field as the card type becomes known

The goal here is to, add a credit card image, and remove all other credit card images, of a certain input field. I had a even larger code, with a lot of addClass() and removeClass()... then, I shrink ...
2
votes
3answers
234 views

Checkout (page) backend

I am developing an e-commerce site and am confused about this. Customers come on the site and add some products to the cart. Customers click on the checkout link if already logged in, then will go to ...
3
votes
1answer
95 views

Mini shopping cart for a site on MODX

Please help in improving the code. I would like to hear comments on syntax and an approach to development. This is my first experience in writing a simple application for the site. ...
4
votes
2answers
38 views

Multiple DB record creation after a successful operation

I am working on a payment process. Upon a successful payment process, I have to create multiple records. For that, I have made this class: ...
2
votes
2answers
243 views

Rails controller method to create a customer with credit card info

I'm working on a Rails application that has a lot of logic in the controller that should be in the model. In the app/controllers/customers_controller.rb#create ...
5
votes
1answer
5k views

OO shopping cart class + product class interaction

I built a small store site for learning purposes. I loaded my 'products' from the db into a Products class. I used a method from this class to display the products ...
4
votes
3answers
137 views

RFID financial transaction

I have this code below which establishes connection to server (from device). Basically assembles some buffer, sends it to server, gets response, parses and prints it. I would appreciate if someone can ...
2
votes
2answers
375 views

Securing PHP shopping cart (Paytrail integration) - follow-up

I've developed my shopping cart further. This is related to my earlier post: Securing PHP shopping cart In addition to those functionalities, I've proceeded to make integration to Paytrail payment ...
7
votes
2answers
4k views

Securing PHP shopping cart

I've managed to create a working shopping cart and my next concern is security, mostly about the architecture and session security. Should I make sessions somehow secure, if there's no authenticated ...
4
votes
1answer
2k views

Error handling for Stripe credit card processing

I have a rails application that uses Stripe for credit card processing. Currently several exceptions are being handled anywhere a transaction takes place. The code below is being used currently in 11 ...
4
votes
2answers
4k views

Shopping cart login and coupon code validation

I am figuring out how I could make the following query more secure: I have already used mysqli_real_escape_string but I doubt that adds much to security. I have ...
5
votes
2answers
344 views

PHP shopping cart class

The following is a shopping cart class. The initial version of this was pulled from a production application. Since then it has changed a bit but I'd love to hear your feedback on this. Due to having ...
6
votes
1answer
338 views

Shopping cart simulator

I have tried to simulate a cart (only partially completed). I just wanted to see how the code upto this point can be enhanced. I am trying to learn about the usage of ...
3
votes
1answer
264 views

React Flux structure for a shopping app

We have just started up a new app and we are using React with the Flux architecture. We have done our best to piece together what we think is the best structure for the app and would appreciate any ...
2
votes
1answer
9k views

Shopping cart application in Spring MVC

I am creating a shopping cart application to learn Spring MVC. I want to display a list of all categories and subcategories in more than one page. i.e; Home Page, Products page, and Category page. In ...
1
vote
1answer
3k views

Product page filter

I am still learning Laravel and I am in the process of creating a small shopping website. On the left hand side there are a series of filters that appear depending on what products have come back ...
1
vote
3answers
31k views

A Java Web App with Servlets, JSP and Session: shopping cart example

This is the only Servlet I have: ...
4
votes
1answer
908 views

Mini eCommerce application and message/warning/error-handling

I decided to build a basic eCommerce application in c++ as a learning experience. In the past, I've gone with a fat controller, skinny model approach, and while it has worked, my results always end up ...
3
votes
2answers
1k views

Shopping Cart Handler Class

I've written an eCommerce shopping cart handler class in PHP. Please review the code and inform me of any errors and/or badly written code and/or badly handled logics. Please also inform me of any ...
5
votes
1answer
286 views

Shopping cart logic for authenticated users and guests

I am tasked with cleaning up someone else's Objective-C code, and will admit it is not my language of choice. I am not sure if this is a valid question but was hoping someone could double check my ...
5
votes
1answer
893 views

Calculating shopping cart discounts

I have a method that checks to see if a hash of given items should have discounts applied and if so, determines and returns the discount: ...
4
votes
2answers
4k views

E-commerce database design

I am new to database design but am fairly familiar with SQL and its syntax. I want to create a database for an e-commerce website that will sell a single product type such as a shirt. They could be ...
6
votes
2answers
420 views

Shopping cart using events and delegates

I am trying to learn events and delegates in C#. To do that I am trying to create a hypothetical console project where when some user submits the orders in his/her shopping cart, I need the Billing ...
3
votes
2answers
1k views

Shopping cart code kata

I have recently started code kata and learning for myself, as I would like to learn test-first development. I have started doing a shopping cart as my code kata. I have included a test as well. I ...
3
votes
2answers
420 views

Handling an e-commerce order form

I wrote this form object to handle an e-commerce order form. My areas of concern are the verbosity of the populate method, and the repetition of the validations. I ...
1
vote
2answers
289 views

Saving a subscription plan with a payment

Is this acceptable for readability or would it be better to refactor it into smaller methods? Tips? Comments? Examples? ...
4
votes
2answers
282 views

Coupon code manager

My concern lies in understanding the nature of an object. My reasoning: when I instantiate my class, I am either creating an entirely new coupon, or I am referencing an existing one from the database....
4
votes
3answers
7k views

My perfect shopping cart class

Here is my shopping cart class! I want it to be perfect and never to have to implement it. What improvements would you do? New : IComparable ...
2
votes
4answers
2k views

Object-oriented shopping cart

I have just started to try and learn 'OOP' but it appears I'm doing this wrong, according to the people on Stack Overflow. The code below is far from object-orientated, but I'm finding it hard as I'm ...
3
votes
1answer
7k views

localStorage functions for website shopping cart

As part of a larger web app we are producing, I was asked to help build functionality to tie a page's shopping cart into localStorage for persistence. What follows ...
1
vote
3answers
888 views

Checking address fields for presence of a Post Office Box

I'm just trying to learn how to write jQuery better so I wanted some smart peoples opinions. The code is checking the billing and shipping address fields to see if it contains a PO Box address by ...
4
votes
3answers
675 views

Text menu shopping cart for mobile phone store

I made a mobile store, with prices in Indian rupees. Now I went for nested switch over functions, because I wanted to try out something new - biggest mistake in my life. Since 3 days I've been trying ...
3
votes
1answer
295 views

Coupon system optimization

I have the following code for my coupon system. It should work but I'm sure I can optimize it. Any suggestions would be welcome. ...
2
votes
1answer
2k views

GUI-based credit card checker

How can I make this more readable, faster, and make the GUI more appealing? CreditCard class: ...
3
votes
2answers
417 views

Showing an item in a shopping cart

I'm updating and old project from jQuery 1.4 to jQuery 1.7. Can this be simplified, thus reducing the amount of code, and perhaps in such reduction, have it improved? Having the following code: <...
7
votes
2answers
935 views

Front page for an e-commerce website, with a simple animation for the search field

I've been using CSS and HTML for a while and I'm trying to start to use better methods of coding. I've tried my best not to hack anything. Could anyone let me know how I'm doing at the moment in terms ...
1
vote
4answers
2k views

Front end to PHP shopping cart

I'm very new to jQuery and JavaScript in general but decided to develop my own code rather than use 3rd party plugins as I really need to learn the language. Would anyone be so kind as to review my ...