I want to use Magento as a backend/admin panel, but with my own frontend, which I made in Laravel.
I've looked for resources online about making custom Magento themes but the articles I've found have been more about styling the already-made Magento frontend structure rather than completely replacing it with my own.
The closest I've found was a mention of using Magento as a headless API but I don't know how I'd get started with that.
For styling Magento frontend it is some kind of different compare to other frontends because you have layout and blocks and ...
Making headless project is good choice and use Magento az backend will be awsome .
Actually we have worked in a project it was headless ; Magento as backend and React as it's frontend , they interacted with graphql together .
You can interact with Magento in every way you want ; Rest api or Graphql api , it's up to you .
so for conclude to handling Magento in backend you should know about Magento structure to write API and then you're ready to start .
You can start it by it's documentation :
https://developer.adobe.com/commerce/php/development/
Related
I tried to create a plugin for Wordpress in React, I saw several tutorials but most of them out of date.
Do you know any guide or documentation which can help to build just a dummy component in React which can be used as a Wordpress plugin with a simple install?
You can create API plugin in wordpress and then use it in your react-native project. First you will need to create a plugin, for whatever data you want to share between your wordpress site and React APP. you can take a look at the link below.
https://developer.wordpress.org/plugins/intro/
and also you will need to learn about wordpress REST API, for that you can look in offical Wordpress REST API HandBook,
https://developer.wordpress.org/rest-api/
Once these things are done you can, use the api's you have created in your wordpress to communicate with your React-App, React has builtin FETCH API that can be used
https://reactnative.dev/docs/network
wordpress already has a build-in, which you can use to fetch posts, media and different things from wordpress site, and use react-native Fetch api to pull the data from your wordpress site.
As per my requirements, I am going to develop Custom CMS Application using Yii2. CMS will be having feature to manage multiple websites from single Code source.
So Is there any library available in Yii2 to manage multiple websites?
Please provide your valuable suggestions
I am new to Magento and I am about to build an e-commerce site for a client.
Should I be using Magento's templating system to build the front end or should I consume it via the REST API?
And is there another way to it?
What are the pros and cons of each option?
If you plan to use Magento, then you should use it as it is.
I don't see any advantage in using the REST API just to retrieve data and show it as you want.
The REST API does not support everything Magento has to offer. It will also add a new layer between the frontend and the actual data. This may result in errors or it will slow down your website.
You should use the internal API and the templateing system. Magento is intended to be an e-commerce website.
But I'm very curious to what your other option is.
I want to start a new project, there are currently 4 of us who plan to use the system as our website. So basically i'm wondering if there are any existing frameworks/libraries that will enable to us to build the app to be configurable. Kinda like how wordpress is, you can add your own theme and plugins to customize the functionality of the site. I don't want to use an existing cms such as joomla or a blog like wordpress because I want to be building my own app from the ground up.
If there aren't any frameworks that can do this, any suggestions on how i could go about accomplishing this? In essence i suppose its allowing the app to have a default theme then have that theme overridden and allowing use of "plugins"
build a plugin system with php
I have recently started working on an eCommerce site for a company and they have selected Magento 1.4.0 to run their store. I have spent most of my PHP "career" working with various MVC frameworks (even Zend with Magento is supposed to be based on) but the complexity of Magento seems to be on another level with no seemingly good resources to look to for help.
Looking around the site I have seen suggestions for certain books to use as reference, but they all refer to Magento 1.2 or 1.3.
My goal is to develop for Magento in a way that I do not alter any of the base code so that the client can easily upgrade the version of Magento and just "drop in" my code and have it work. The current issue is how to properly use the layout/template breakdown correctly and how to add custom model/controller functionality to the application without hacking away at Magento's core code base.
how to properly use the layout/template breakdown correctly
What you need to know is the folder structure of the Magento & the use of its own MVC structure. This is a very very important part to get you started from the basic roots. Whatever version you use, the folder structure & the MVC structure followed by Magento will almost never change. Try to follow the Magento's own Knowledge Base & Wiki tutorials. If you want you can also follow some other sites as well.
how to add custom model/controller functionality to the application
without hacking away at Magento's core code base
You will need to use the custom module functionality to override the core code base of model / controller. It's a simple process of writing the main logic in a XML file, of what core class you want to override of Magento, in your module's "etc" folder. Try to understand the process first, from the Knowledge Base & Wiki tutorials, to get a firm grip on overriding core classes.
I hope this helps.