The core purpose of this module is to provide integration of PageBuilder Content Management System for GraphCommerce® headless theme, eventually replacing original HyGraph with its own CMS. This module extends PageBuilder's functionality by introducing custom components that are used for building page content.
- Build rich page content by using Magento's native PageBuilder;
- Create media asset elements that support both images, SVG and video formats;
- CMS Pages, Blocks, Widgets, Categories and Products are supported;
- Add your own custom PageBuilder components;
- Use
cmsRowHeroBannercomponent to build elements with banner elements; - Use
CmsRowLinkscomponent to build link elements that support linking to categories, products and custom URL paths. - Use
CmsRowProductcomponent to build catalog elements with ability to specify products by either category, SKU or custom rules; - Use
CmsRowSpecialBannercomponent to build banner content elements; - Use
CmsRowQuotecomponent to build rich text quotes; - Use
CmsRowTextcomponent to build rich text content; - Use
CmsRowServiceLinkscomponent to build service links with the support of MUI icons;
gc-asset- used to serve images and video files;gc-heading- used to provide a heading for components that require titles.gc-page-links- used to provide links that support either a direct, product, category or CMS page URL;gc-products- used to provide product listing defined by either a category, SKUs or a custom rule;gc-richtext- used to provide content built with the wysiwyg as an AST format;
- Open Source >= 2.4.4
https://graphcommerce-cms.softcommerce.dev/
Using composer
# GH source: https://github.com/softcommerceltd/magento-graphcommerce-cms
composer require softcommerce/module-graphcommerce-cms# Enable the module
bin/magento module:enable SoftCommerce_GraphCommerceCms
bin/magento setup:upgradeIn production mode:
# compile & generate static files
bin/magento deploy:mode:set productionIn development mode:
bin/magento setup:di:compile
Using YARN [recommended]
# GH source: https://github.com/softcommerceltd/graphcommerce-magento-cms
yarn add @softcommerce/graphcommerce-magento-cmsUsing NPM
# GH source: https://github.com/softcommerceltd/graphcommerce-magento-cms
npm install @softcommerce/graphcommerce-magento-cmsInstall latest magento instance
# Install Magento
# Source: https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento.graphcommerceCreate DB & USER (replace credentials & password as required)
CREATE DATABASE magento_graphcommerce;
CREATE USER 'magento_graphcommerce'@'localhost' IDENTIFIED BY 'magento.graphcommerce.pwd';
GRANT ALL PRIVILEGES ON magento_graphcommerce.* TO 'magento_graphcommerce'@'localhost';
GRANT SUPER ON *.* TO magento_graphcommerce@'localhost';
GRANT PROCESS ON *.* TO magento_graphcommerce@localhost;
FLUSH PRIVILEGES;
Install magento application
# Install Magento
# Replace opensearch with elasticsearch if the latter one installed.
# Replace user credentials if required.
# Source: https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/composer
bin/magento setup:install \
--base-url=https://magento.graphcommerce/ \
--db-host=localhost \
--db-name=magento_graphcommerce \
--db-user=magento_graphcommerce \
--db-password=magento.graphcommerce.pwd \
--admin-firstname=Magento \
--admin-lastname=GraphCommerce \
[email protected] \
--admin-user=magento.graphcommerce \
--admin-password=magento.graphcommerce.pwd \
--language=en_GB \
--currency=GBP \
--timezone=Europe/London \
--use-rewrites=1 \
--search-engine=opensearch \
--opensearch-host=localhost \
--opensearch-index-prefix=magento.graphcommerce \
--opensearch-port=9200Install sample data
# Install Magento sample data
# Source https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/next-steps/sample-data/composer-packages
bin/magento deploy:mode:set developer
bin/magento sampledata:deploy
# Install GraphCommerce sample data
# GH Source:
# https://github.com/softcommerceltd/magento-graphcommerce-cms-sample-data
# https://github.com/softcommerceltd/magento-graphcommerce-cms-sample-data-media
composer require softcommerce/module-graphcommerce-cms-sample-data
# Update the application
bin/magento setup:upgradeSet the application to production
# Compile the application code
# and generate static files for production environment
bin/magento deploy:mode:set production
# Run indexing
bin/magento indexer:reindex*** Note: SSL certificate is required. Use free one from https://letsencrypt.org/
Both Magento & GraphCommerce plugins require some modifications to GC React project pages. Use the demo below as a starting point for your project.
# Clone demo project
# GH Source: https://github.com/softcommerceltd/magento-graphcommerce-pwa
git clone -b main --single-branch [email protected]:softcommerceltd/magento-graphcommerce-pwa.git- Edit graphcommerce.config.js file to change the canonical and endpoint URLs as required.
- Edit next.config.js file to change images hostname configuration.
Open Software License (OSL 3.0).
Please see LICENSE.txt for full details of the OSL 3.0 license.