Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3401734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:03:06+00:00 2026-05-18T05:03:06+00:00

I have a wordpress website, and I want to create a simple web commerce.

  • 0

I have a wordpress website, and I want to create a simple web commerce. When I mean simple, it’s really simple: Some posts/pages are going to have a custom field named “price”. These pages are going to have a link on it, and clicking on it, the user is going to be sent to a simple shopping cart. From the shopping cart, I’m going to create a checkout page, which is mainly a php page that connects to a payment gateway, showing credit cards and such. I’m going to create php files that validates info about these payments after the response from the gateway.

I’m not going to sell “products”. I don’t need postal offices, no address to deliver something, nothing. It’s just a price and a php that receives confirmation from the payment gateway. Think of selling “courses” or something like that. A receipt of the buy is going to be in the database, so the client can reference it later.

So, I think I need to create:

  • A shopping cart page. This shopping cart can be made using cookies or the database. Which is the best approach?;
  • A checkout page;
  • A bunch of scripts to validate a response from the payment gateway;
  • A simple table that stores all the payments responses, containig price, user_id and such.

Am I forgetting something? What else should I be aware of when trying to create this plugin? I heard that wordpress don’t use sessions, so I would need to create one in wordpress just for the carts. Does anyone knows about this issue?

(I don’t want to use these complete e-commerce plugins that exist since I don’t need all their features.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:03:07+00:00Added an answer on May 18, 2026 at 5:03 am

    I decided to use a cookie approach using $_COOKIE. The values in that cookie are a json_encoded associative array with product information, that is checked in the server with some validation. That way I don’t have to mess up with $_SESSION in wordpress that I read is problematic, and the user can have the same shopping cart even if (s)he closes the browser.

    One good example of simple e-commerce application is really simple e-commerce.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wordpress website which I've added a couple of custom pages to.
I have a (Wordpress powered) website, and Google is indexing some of the sub-directories.
I have a WordPress website with a custom theme. I'm using custom author template
i have a wordpress blog and want to give people the same user experience
If you want to develop against WordPress (i.e., have a local instance running on
I have a WordPress website ( abetterworldbydesign.com ) which has user-agent detection to redirect
How can I remove the author prefix on a WordPress website, I have done
i'm trying to create a portfolio website using wordpress, each post has view costum
I have a WordPress site (2.6.2) in which I have set the Home page
I've noticed that a few Wordpress blogs have query statistics present in their footer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.