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
3 votes
1 answer
339 views

Design Shopping Cart System Interview Problem [Python 3]

Just practicing some objected oriented design questions. Please let me know what can be improved to be more OOD and extensible. Thank you. Functional Requirements Cart can hold multiple products A ...
user avatar
  • 155
1 vote
0 answers
36 views

Is my e-commerce app's code compliant with MVC?

Hi I have spent few days reading about various architectures and decided to use MVC (Model-View-Controller). But I had hard time applying all the theory to my node.js code. I've wrote some minimal ...
user avatar
  • 11
1 vote
1 answer
52 views

Rails controller to handle offers and payments for rental housing

I've been adding stuff a bit "blindly" to my controller and currently everything is working as it should, but the controller is gotten very messy. I'm using the gem ...
user avatar
  • 11
4 votes
1 answer
98 views

Making a coffee shop UI

I'm making a user interface for an online coffee shop. I need to call methods that have already been created. The user is also able to make customisations to their drink order such as a different ...
user avatar
  • 41
1 vote
0 answers
151 views

PHP paypal payment processing code

Please review my php paypal payment gateway code. Are there any bugs in the code? Any security risks? How could this code be improved? Brief instructions to be able to run the code: install xampp ...
user avatar
  • 2,247
6 votes
1 answer
330 views

Flask application for buying stocks

I wrote three Flask views below. First view input stock code Second view get the stock details (name, price) of the stock by using 3rd party api get the balance cash of DB and show to the view ...
user avatar
  • 61
3 votes
1 answer
70 views

Add customized code to Shopify theme

I am new to making shopify applications. I have made one application which helps merchants add additional features in their stores. I have written some PHP code ...
user avatar
7 votes
2 answers
233 views

eCommerce Mockup App in JS

I have completed this mockup eCommerce app using Javascript. This version can add products into a shopping cart and automatically calculate the order summary in the shopping cart. It can also delete ...
user avatar
1 vote
0 answers
839 views

E-Commerce Mock App in Console

I have completed this E-Commerce Mock App in Console C# which I used object to store the data to apply some C# OOP and LINQ techniques. Since it is just a mock version, features are reduced to the ...
user avatar
2 votes
0 answers
77 views

Google Play billing + Firebase functions: Creating a one-time product, server-side

My Android app must request my Cloud Functions server to create in-app products at runtime ; then, the server responds with the created one-time product. I've written the server Cloud Function that ...
user avatar
4 votes
1 answer
7k views

JAVA Shopping Cart Design

Recently, I have appeared for coding exercise to design the Shopping Cart which should have following features: handles barcoded (like Chips) and non-barcoded item (like Banana 400gm) Can add item, ...
user avatar
  • 43
1 vote
0 answers
37 views

Webshop Conversion - Binary testing is not even [closed]

Everytime a new visitor comes to my webshop I write a cookie (1d) which sets a session entry with mt_rand(1,2) to A or B group. ...
user avatar
  • 119
4 votes
0 answers
239 views

Asynchronous Stripe API and aiohttp parameters formatting

I'm testing the Stripe payment API. I couldn't find a Python wrapper that provides asynchronous requests so I'm writing one. My first goal was to implement the async equivalent of ...
user avatar
  • 233
0 votes
1 answer
39 views

Filling in the card expiry date from transaction data

I'm integrating my app with a payment gateway, and have the following code which returns an array to populate the transaction info: ...
user avatar
  • 146
6 votes
2 answers
215 views

Python gRPC shopping cart service

The .proto file is as below: ...
user avatar
  • 91
1 vote
0 answers
30 views

Simple cart update WordPress plugin

I created a plugin to update cart automatically on quantity change with some additional options. I want to focus only on the main plugin file, skipping uninstall.php and .js file which are entirely ...
user avatar
1 vote
2 answers
462 views

PHP subscription workflow

I've creating a working subscription workflow for my webpage, which heavily utilizes a set of functions I've created for this purpose. However, after doing some testing (functionality works fine), I'...
user avatar
  • 11
4 votes
0 answers
131 views

Convert Amazon transaction data for import into accounting system

At the end of each billing cycle, Amazon generates a raw transaction file for my store's orders that cycle. I am converting that raw transaction file into a .csv file to be imported into my accounting ...
user avatar
2 votes
1 answer
82 views

Executing multiple steps to handle a purchase using currying

Is doing something like this utilizing currying in a practical sense? ...
user avatar
3 votes
1 answer
432 views

React code to build shopping cart

I have built a basic shopping cart simulator. All it does is add and remove items between two different basket (i.e. aisle vs basket). While working on the problem I started to think about the ...
user avatar
  • 131
3 votes
0 answers
1k views

AJAX shopping cart with quantity +/- buttons

I'm a junior developer (couple years into it) and very new to AJAX. I'm writing an internal inventory application built on MVC and right now I'm dealing with adding and removing items to/from a cart. ...
user avatar
1 vote
2 answers
68 views

Note for monitoring buy/sell item list

I'm making note where you can add items that you buy or sell, any suggestions? ...
user avatar
2 votes
1 answer
293 views

Stripe payment form

I have a stripe payment form and when I use different forms that get hidden, I must use separate IDs for the form to appear. I have found a way to do this but looking to simplify the code if this is ...
user avatar
  • 121
1 vote
2 answers
90 views

Reporting sums of shopping carts

I have an object (ShoppingCart) that has a list of CartItems, which contains the related ...
user avatar
  • 111
2 votes
0 answers
17k views

MySQL database schema for e-commerce website

I'm making an e-commerce site, using MySQL for storing data. ...
user avatar
  • 29
2 votes
0 answers
34 views

WordPress plugin for shipping calculation

I am writing a WordPress plugin that allows shipping calculation on the product page. Originally, shipping calculation is only available in the cart. To calculate shipping costs on product page, ...
user avatar
3 votes
1 answer
121 views

Conditionally displaying a notice about free shipping in Woocommerce

I wrote PHP code to display a Woocommerce notice - "free shipping for $40 & under" only once on shop page and once on cart page, but also in cart should not be more than 40$. The code works, but ...
user avatar
5 votes
2 answers
2k views

Apple receipt validator

I'm working on a solution for validating Apple receipts. Here's the repository as whole. I based it mostly on the gdx-pay-server library. In my implementation, one of the classes I want to improve is <...
user avatar
  • 213
8 votes
1 answer
150 views

Shopping cart purchase method in service layer

The following is a class in the service layer of an ASP.NET Core web application, which currently contains a single method: PurchaseCart. The intention is that an ID is passed in to a "shopping cart" ...
user avatar
2 votes
0 answers
289 views

Classes for an online shopping website, using a combination of Inheritance and Composition

I am developing an online shopping website. I have a class Item, which contains all the common attributes of all products (I will explain the interfaces at the end) ...
user avatar
3 votes
1 answer
2k views

Credit card validator code in Python

I wrote a Python code that is validating Credit Card Numbers. Some of the advanced programmers told me my whole code is messy. How can I make my code cleaner? ...
user avatar
3 votes
1 answer
1k views

Shopping cart in Rails for karaoke items

This is my first cart implementation in Rails so I wanted to get some feedback on the correct method to implement it. First of all, I am storing the data directly in the session because the items in ...
user avatar
  • 131
4 votes
2 answers
246 views

Using dependency injection for Node payment system

I would like some feedback on my code. I am currently building a payments solution in a serverless lambda project. This what I came up with (very basic code at the moment): ...
user avatar
  • 153
2 votes
1 answer
177 views

Plugin for showing cross-sells on the single product page in WooCommerce

I made a custom plugin for showing cross-sells on the single product page in WooCommerce, however i need to know if this is secure and possibly act as an attack vector. Additionally, is there a better ...
user avatar
  • 121
4 votes
1 answer
139 views

Simple angular app - Shopping website

In looking for a bit of feedback about an Angular app I have created. I'm new to angular I want to clean up the loose ends before I carry on and add new functionality. Below is the code snippet of ...
user avatar
  • 41
3 votes
2 answers
792 views

Open/Closed Principle with calculating the total cost of items in a shopping cart

I came across the below example in a tutorial for the open-closed OOP principle. This example demonstrates function of calculating the total cost of items in a shopping cart. I have provided code for ...
user avatar
  • 153
3 votes
1 answer
12k views

jQuery code to total the items in a shopping cart

I implemented a shopping cart with asp.net and jquery on my website, and here is my js code which calculates amount and total sum on client side: ...
user avatar
2 votes
0 answers
972 views

Simulate a simple shopping basket

I simulated a web shopping basket for a store with a single product, for two reasons: to learn to use browser events for a user to manipulate data in a page so that, in the future, I can build it ...
user avatar
  • 321
2 votes
1 answer
616 views

Laravel controller for creating payments with Mollie

I have a controller with functions to create and finish a Mollie payment. But I've got the idea that those functions are too big and do too many things. What I understand is that a function should do ...
user avatar
1 vote
1 answer
867 views

Shopping cart business rules

A purchase order has an order ID, a customer ID, total price and line items. Line items can be a product or membership type. Business rules: If the purchase order contains a membership, it has to be ...
user avatar
4 votes
3 answers
178 views

Removal of jQuery from script to auto-apply coupons from a link

We are using a small extension that auto-applies coupons from a link. The extension had pop-up JS based on jQuery: ...
user avatar
  • 69
8 votes
1 answer
25k views

Shopping cart in pure JavaScript

I need help in making this shopping cart adhere to the W3C rules. This is already 100% functioning. I just need help in making this code as clean and as short as possible. I want it in pure ...
user avatar
  • 91
1 vote
2 answers
569 views

Manually mapping complex objects using Windows Service & Shopify

I'm looking for guidance/review on an approach that I've taken. Structure Windows Service Shopify Module (API) Official Shopify API The Scenario Our Windows Service connects to the Shopify Module ...
user avatar
6 votes
2 answers
1k views

Selenium-based link checker for a shopping site

I just started learning Python and I wrote my first useful script for work. I did a bunch of the basic tutorials and really enjoyed learning Python so far. I am looking for any advice on how to make ...
user avatar
7 votes
3 answers
14k views

Shopping Cart design interview task

I was interviewed for one position and had the following task. The goal is to design system according step 1, then adapt it to additional requirements in step 2. Step 1: Shopping cart You are ...
user avatar
4 votes
1 answer
622 views

TDD Django - Shopping Cart

I'm new in Python TDD and I would like to ask you about some feedback for Django unit testing. ...
user avatar
1 vote
1 answer
93 views

Changes quantities that are displayed in a shopping cart page

I'm fairly new to PHP and am following e-commerce tutorials. When exploring a way to resolve a problem I had with a PHP code block, I came upon a post another person had with the same code block. The ...
user avatar
6 votes
1 answer
1k views

Shopping basket with discounts and tax

I am writing a simple application that prints out the details of a receipt containing items purchased by a customer. The receipt should list the number of items, the name, the final price (including ...
user avatar
  • 223
4 votes
1 answer
171 views

pyvdp - Python library for Visa Developer Program

I'm coming from PHP and recently started developing in Python. As a part of my self-study course, I developed a small library for access to Visa Developer Program APIs and published it on Github. It ...
user avatar
  • 407
1 vote
1 answer
29 views

Class for Stripe transactions

I just wonder whether it is a common approach to hit the third-party API and fetch values within the initialize method? Ex. ...
user avatar
  • 125