WordPress database set up with rest api - php

I want use WordPress to develop a e-commerce website. I know basics about Wordpress like how to create blog or website. But I don’t know how to create database and relationship between tables, rest api etc. How can I set up my database and performing CRUD using rest api?

If you want to make an ecommerce site, its better not re-invent the wheel, install woocommerce. If you are tryng to use wordpress as a development framework, try https://typerocket.com/ - This requiere not only knowledge of wordpeess, but php and laravel too. Wordpress , out of the box, together with JWT PLugin will give you a way to use it as a RBAC - Typerocket will give you the MVC structure. https://lumberjack.rareloop.com/ is another one. Good luck

Consult the Wordpress REST API: https://developer.wordpress.org/rest-api/
Then for features the API doesn't offer you will either have to learn to program and make your own API or hire a developer to do it.

Related

Saving a meeting in my outlook calender from a cakephp website

I am working on a website that was build using cakephp. I want to add the option for visitors of the website to make a appointment, then this should automatically be added to my outlook calender.
I found this tutorial from Microsoft on how to use the Microsoft graph API with php, however its made in laravel since I am not familiar with cakephp I was wondering on if it is a lot diffrent to do the same in cakephp or maybe there is a better or simpler solution. I wasnt realy able to find a guide or example made with cakephp (if you know of one that would be great).
Any help is appreciated, thanks!

Building a webapp around a accountent api

I'm using a accounting software to store all my customers, and they have a big swagger like api. I can use the full crud features.
So i want to build a app that bassicly "extends" the accounting software, for example i can add a "hardware" or "key" field to a customer.
My idea right now is to make a app that loads all the customers and build all the crud features. So only the API.
Then i want to save the custom fields in my own database connected to the id of a customer.
So lets say i click on "James" it will load its data from the api, and show my custom fields.
But i have the feeling this is not a good way to sync it..
So my question: Whats the best way to sync your php/sql webapp with a accounting api.

Symfony 3 consume api data without using ajax or Angular

I'm working on a rest API to sell as SaaS. I already have most of the functions that interest me (integration with Mercadolibre a Spanish web site, market payments, google maps, social networks and also the accounting management part).
But now I want to add the possibility for the client to have a FrontStore where they can offer services with a few default templates that feed on API resources.
The issue is that I do not know how I can keep it isolated from the API code without using Angular, as Angular for websites affects a lot to the SEO. (the control panel and the mobile app did not have problems because I asked for everything by Ajax but those two things are not customizable)
So I do not know what to do.
Summarizing the question is: Since they could give access to templates or themes but not to the backend, it will be on another server.
I had planned to make 1 instance of the program for each client, but I do not want to do that since I did multi-company and I want to take advantage of it.
But I want to offer my 10 basic templates, the service to make a premium and also the possibility of the client to upload their own page. I hope I was clear.
I work with Synfony 3.0.0 and Angular 1.6 on a LAMP platform.
I need some idea to make possible get data from another server that have the rest API and use it just for a website like showing products or that kind of things. But without using Ajax or Angular templating.
I leave you a image to clarify. The left side is the private part, this is not customizable for the client, the right side is the web site and I want make it customizable by templates consuming the data from the API.
i don't understand all but if you need to consume API without ajax or angular, you can use guzzle http to create a client class that contains all your webservices (like showing products or that kind of things). This a tutorial how can use it. Hope help !

Braintree + Wordpress: How do I associate new users with a BT customer ID?

I am new to web development. I decided to start by using WordPress.
I am reading through the BT API and I'm at the section to use the Customer object to create, update, find, and delete a customer/payment info.
But I don't understand the correlation between WordPress and integrating payment processing yet. In WordPress, users create a login specifically for my site, right?
Would I need to hack WP to allow them to also associate a Braintree customer ID with that login? I don't understand the relationship between WordPress and integrating payment processing....
#doublesharp's comment is right. It's possible to build your own Braintree plugin in Wordpress, but there are lots of options that exist to help you do this.
I don't want to endorse any specific product, but some searching online would yield a few options for you. This is really the best route to go if you are new to web development.
Wordpress can be awesome for a lot of cases, but you have to understand a fair bit about it before you build plugins that are of high quality.

Google Checkout and PHPMyAdmin

I am creating a website with a google checkout link that lets customers purchase a digital product. This digital product is a credit to their account on the site. Therefore, I need to know how to make the completion of a google checkout order change a field in my PHPMyAdmin database. I would very much appreciate your answers.
phpMyAdmin is merely an administration interface to a database called mySQL.
Consider working through a basic PHP / mySQL tutorial first to get a fundamental understanding how these things work - especially if you're programming things in connection with commercial activity.
https://stackoverflow.com/questions/1610543/recommended-way-to-learn-php
However, a good and complete code sample that you could derive from can be found here:
Good tutorial on how to update your Mysql database with a PHP form?
You need to implement a web service on your server as described in the document Implementing the Notification API. You can do whatever you want in your web service when you receive a notification, including updating your data base.

Categories