this could possibly be answered somewhere allready, but unfortunately I could not find the answer that would suit me.
The question is, can Magento be used only as a front end E-Commerce platform? That is read product nad customer data from external API, and also submit that data to external API. The trick is that it has to be done in real time, not via sheduled tasks.
If there are any Magento plugins that would allow for this, could someone mention any specific names?
Also, how complicated is adding custom functionality to Magento, without "hacking" the system (Things, like multiple shop branches, product sets, that can be enabled per branch, limiting orders to cetain amount of slots per hour etc.)
The entire Magento code base uses the Magento database tables for generating the frontend display, so there isn't really any way around it unless you plan on doing a rewrite on every core model to perform the necessary logic (i.e. fetch from/update external source). Existing solutions to this problem generally use the SOAP API and cron jobs to mirror the data (mapping as necessary to get it between the different structures) on both Magento and whatever external system you're using. You can achieve real-time results using the Magento observer system to send updates to your external system by listening to various model save events, and similarly create a SOAP API call when data is updated on your external system (specific implementation details depend on the system) to keep them in sync in real-time.
Related
I will build a website based on Magento 2... This site in particular has a mid size product catalog (no more than 12000 SKU's but it has many concurrent users)... and one of the things I need to do is to entirely obtain the SKU QTY and PRICES from a third party api gateway in real time... I mean, to be more specific... The product category pages, product detail pages, orders, has to check the qty amount, prices and group prices on this api gateway in REAL TIME because at the same time another store is connected to the same warehouse and we are at risk a product won't be available or it has different price. As a foot note the price is changing also due the business logic.
Is worth to mention that the api gateway that I'will use to get the inventory and prices information is very, very fast... Actually I'm not sure if this changes improves a little bit the Magento 2 performance because we will only use the native modules once the order is entered but no more.
The path I'm planning to follow is for example, in case of inventory, disable MSI (As I mentioned I have only one warehouse for ecommerce on this project) but in general I don't have a clue where to stard...
I'm not sure what classes should I overwrite to achieve this the better way... because I think the best way to achieve this is that each time the prices renders or the availability of the product is checked the api should be called. I understand that this will generate tons of api requests due the site concurrency but It doesn't really matter because as I mentioned that api is very fast and it actually has all the product information.. Actually if we achieve this I think is a tiny step to move the site to a micro services architecture. Unfortunately I can't start the project by the moment with React to make it headless for example...
I was thinking also to catch in some way the request magento 2 performs on each category or filter and retrieve the entire information from the api gateway... Do I make myself understand?. I mean... once the user select a category or perform a search... If I'll be able to get the info and make the request to print the data coming from the api and not reading the magento 2 tables will be awesome.
Well.. that's my issue... I appreciate if anyone could point me in the right direction.
I want to build a simple Software-as-a-service web application that performs web scraping - the result per execution will be a table of results with several rows and columns. For the front-end, I wanted to build the website using WordPress since I am familiar with making basic websites there and like the plugins available. For the backend I plan on using AWS Lambda to perform the task serverless-ly. The user will log in to the site, then when they want to use the service will enter some keywords via a form, and that will send HTTP request to AWS API Gateway, which is connected to my Lambda function. Currently, the AWS Lambda function writes results into AWS DynamoDB as it goes - perhaps I need to write a second HTTP request method to query the results, or return the results in the same method that scrapes them instead.
Even after hours of googling, there are several areas in which I am unsure how to proceed, or if I have chosen the right path (I have no prior experience in this area.) Two of the biggest puzzles I have currently though are:
How can I use WordPress to send data to AWS API Gateway? Do I need to write some PHP code and if so what does it look like and where should I put it?
How can I present the results on WordPress site for the user? Should I keep the results saved on DynamoDB and query them when I want to present them, or should I store the results on the WordPress database? Ideally they would see a big table and have options to export to CSV, for example.
Thanks for your help and patience.
Cheers,
jack
There are a couple of possible ways this can be accomplished. One way is to just use webhooks. Most form plugins come with the option to use webhooks and doing it this way is pretty straightforward. Here is an article from WPForms on how to configure it WPForms and Webhooks. Below is an example of how I have used it. The example shows a form that sends data to AWS API Gateway which triggers AWS StepFunctions and also puts the customer information in DynamoDB
WPForms Webhook to AWS API Gateway
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 !
I'm creating a kind of portal for my team as part of our company's annual Hackathon and wanted to include results for a specific JIRA filter on the front page of said portal. Idea is so that when you log in, you bring up the portal and it'll show you a list of the latest issues say or upcoming changes or RFCs for your attention.
Could I do this via REST where a script automatically grabs the content and then updates a HTML or PHP file with it?
Yes, depends on your JQL I believe you can do it via REST API. Atlassian documentation contains couple of good examples of the REST API and JQL. You can take a look at it here.
Is there any possibility to move customer and order data between 2 magento sites?
I have a database which keeps giving wierd issues with the database so I intend to rebuild the site, adding in some extra features at the same time. I cannot loose the order and customer history though (including passwords etc) so Is there a way to do this?
I've got the same problem. I posted a question about this in the magento forum.
If i don't get an satisfying answer, i will write an application that reads and associates the customers and orders and writes both into the new store.
You can do that using the Magento SOAP API.