Are you familiar with website builder?
There are bunch of website builder companies such as wix, squarespace, duda, odoo,shopify, weebly...
Here, when we create account first, they assign subdomain of their website.
For instance, companyname.shopifyapp.com, xxx.squarespace.com
I think there are over 1 million customers for some websites.
Can anyone tell about database system of those websites?
If new customer signup and get his website, then will they save all his data in one big db including website template, setting and so on ?
I think if then, we can identify all data by subdomain or user id in one db.
Or they will generate code and database dynamically for each user?
Thanks.
Related
I am creating a complex shopping configurator app that allows a user to customize and visualize a product which consists of multiple store items. Once they confirm their purchase, I iterate and add all of the selected products to a guest cart using the .../rest/V1/guest-carts API endpoint.
I would now like to forward the user to the store checkout to continue the purchasing process from the web store, e.g. https://store.url/checkout/cart. Of course, that basket needs to be populated with the items that were added via the API. I've looked through the documentation but not been able to find
anything relevant but I wonder if I can pass over the store_id or the quote_id and the relevant products be inserted accordingly?
Not sure if this is still relevant for you but, I was also working on a similar problem and came across this plugin for Magento 2. Basically what this plugin does is use a customer's token and a quote_id and creates a temporary session on the Magento2 Store and then redirect the user to the checkout page. This was a starting point for me, as I had to customize this plugin further to suit my requirements.
Hope this helps.
I've created my first CRUD system for users to post, edit or delete a 'group listing'. These group listings are simply pages on my website where people can suggest meet up events.
I can't figured out how to create the individual web pages that will display the group details to the public?
What I want
Once a user creates a group, I need the system to show that group info on a fresh page (I guess using the ID in the url).
I'm using Laravel 5.8 and I am fairly new to coding. I appreciate and guidance!
I've developed an app which fetches data from an API based on Laravel 5.5. The marketing landingpage of the app is based on Craft CMS Version 3. The marketing website and the API and the databases of both systems are running on the same server.
I want to generate landingpages for each row of table X of the Laravel database.
www.website.com/awesome-landingpage-about-{slug}
What is the best approach to realize this?
I don't want to fetch the data directly from Laravel's database
I don't want to synchronize the Craft CMS database with the Laravel (add/remove the rows from the laravel's database as entries to Craft)
It would be awesome to be able to have an entry-type "Landingpage" where we can optionally create a landingpage, referencing to an ID of the laravel table and add additional content for the landingpages.
Would be a JSON-API from Laravel to Craft CMS Plugin a good performant idea?
One option would be to use a Dynamic Route and just fetch the data from 127.0.0.1 (because same server) from the template file? Or is there a smarter way in Craft CMS?
Let's start of by:
"I don't want to fetch the data directly from Laravel's database"
I'm assuming you don't want to write code in CraftCMS to access another project's database. Good. IF you plan on having them do seperate jobs and use Laravel API for fetching data alone, let it handle it's own database.
"I don't want to synchronize the Craft CMS database with the Laravel (add/remove the rows from the laravel's database as entries to Craft)"
So, this is my question:
You want to be able to create landing pages based of Laravel's rows alone or based of Laravel's database row's and CraftCMS's?
It all comes down to how well you want to abstract both frameworks.
I would probably tell laravel to accept requests from authenticated user (a CraftCMS User) or from localhosts (from within the machine alone) and I'd create endpoints to add/remove/edit/get data at my disposal. I'd then fetch rows from Laravel and combine with my own (assume I'm the CMS).
Even in an intranet network, the request to tell laravel to access the database is longer than to access the database from CraftCMS, so you should expect a dependency between the two projects.
For point 3, you'll have to store information on each database about something. On CraftCMS's to store at least the ID's it's going to request to laravel and laravel will have to get an endpoint where it can insert new stuff, if you're planning on having additional content there.
I'm not entirely sure if I got the idea you're trying to show when you say "add additional content for the landing pages" but I'd try to keep it simple and abstract it's uses, Laravel to store this 'information' that the CMS shouldn't handle in the first place (or you can work out some extra tables and import them to the other database).
Impact performance? Depends on the ammount of data you've got
Please help me on this.
How can i create mutiple stores in with a single installation of magento. It's not like what you are thinking.
Suppose my website is www.pstall.com, In the tech store it will be
tech.pstall.com or the flower shop it will be flower.pstall.com with
the help of sub domain. The shops order will be in their store's
admin. they will not share any data but they will share customer's
login. So that a customer can log in every store with same id and
pass. I will use a static page for the mother store. So that customer ca n easily visit the stores. The sub stores
will be children. The stores won;t share any data even admin. Just
customer information and login.
Please help me how can i do that. Thanks in advance
Try this..
Creating multiple store in a single website
You can do it in several ways:
create many websites
create many stores on one website (then you will have store switcher)
create many store views (then you will have Language switcher)
you don't have any restrictions here, but just need to set Base Url for each website/store/store view.
I would like to recommend you a #1 way and create websites. as later you maybe would like to show some of sites in 2 languages
here I did the same:
http://innativelife.com/
http://body.innativelife.com/
http://soul.innativelife.com/
and also some store can have dedicated domain
http://www.rastrat.net/
but will be placed on same admin
the only issue is that Magento CE not support admin separation per store. which mean - each admin will see data from all stores. But I know how to resolve it ;)
In Magento Multistore are created with
--one website and many stores or
--Multiple websites with each having one or more then one store.
Setup will depend on what all you want to share and what you do not want to share.
Domains can be subdomains(store1.site.com) or same domain(site.com/store1) or totally different individual domains.
To share customer across stores you need to create one website but mulitple stores within that website.
We want to build a bridge to synchronize data both ways in magento 1.6 and zoho crm -to synchronize leads, quotes, invoices, clients (assign them a user id and password for our B2B website) -to synchronize products attributes, etc...
Examples :
Each time a client fills up a form to be registered on my website it has to create a lead on magento like the first time login form ( i already made one web to lead form, but doesn't fit well with magento design and doesn't create the account in magento...)
Each time a client asks for a quote (through a form "Request a quote") on magento, it creates an opportunity, or a quote (or a lead ?).
I would like something really simple that adapts to magento structure that's all, in fact, it's a question of pushing/pulling DB records in both softwares (magento and zoho).
So I've been looking all around the web, but if you google "Zoho Magento integration" it will only return people ready to pay for that. Since I know magento a bit, I'm willing to do it by myself.
Thanks for Your help !
You will have to create a magento connector module to handle synchronization between Magento and ZOHO CRM API ( http://zohocrmapi.wiki.zoho.com/ ).
It is not easy. But if you have some experience with Magento development and do not know how to start with it, i would suggest you to download some similiar module (e. g. http://www.magentocommerce.com/magento-connect/integrations/crm/erply-connector.html) and see how it is built. Then try to develop your own.