Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
1answer
51 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 ...
5
votes
1answer
120 views

Python gRPC shopping cart service

The .proto file is as below: ...
6
votes
1answer
57 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 ...
7
votes
2answers
153 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 ...
4
votes
0answers
50 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 ...
3
votes
2answers
499 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 ...
3
votes
1answer
115 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, ...
1
vote
0answers
73 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 ...
2
votes
0answers
27 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 ...
1
vote
0answers
31 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. ...
0
votes
1answer
33 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: ...
1
vote
0answers
23 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 ...
1
vote
2answers
64 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'...
3
votes
1answer
114 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 ...
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? ...
5
votes
1answer
14k 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 ...
4
votes
0answers
48 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 ...
2
votes
1answer
74 views

Executing multiple steps to handle a purchase using currying

Is doing something like this utilizing currying in a practical sense? ...
4
votes
1answer
911 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
0answers
119 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. ...
1
vote
2answers
60 views

Note for monitoring buy/sell item list

I'm making note where you can add items that you buy or sell, any suggestions? ...
1
vote
1answer
98 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 ...
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 ...
2
votes
0answers
2k views

MySQL database schema for e-commerce website

I'm making an e-commerce site, using MySQL for storing data. ...
1
vote
2answers
76 views

Reporting sums of shopping carts

I have an object (ShoppingCart) that has a list of CartItems, which contains the related ...
2
votes
0answers
26 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, ...
8
votes
1answer
95 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" ...
3
votes
1answer
68 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 ...
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. ...
5
votes
2answers
1k 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 <...
2
votes
0answers
117 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) ...
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. ...
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 ...
3
votes
1answer
753 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? ...
3
votes
1answer
798 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 ...
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
1answer
8k 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: ...
4
votes
1answer
118 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 ...
4
votes
2answers
178 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): ...
2
votes
1answer
151 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 ...
1
vote
2answers
500 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 ...
2
votes
0answers
832 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 ...
2
votes
1answer
417 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 ...
5
votes
1answer
287 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 ...
6
votes
2answers
981 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 ...
6
votes
1answer
684 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 ...
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 ...
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
1answer
78 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 ...
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. ...