Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFCC provider #727

Merged
merged 16 commits into from
Apr 20, 2022
Merged

SFCC provider #727

merged 16 commits into from
Apr 20, 2022

Conversation

dominiksipowicz
Copy link
Member

@dominiksipowicz dominiksipowicz commented Apr 4, 2022

DEMO: https://salesforce-commerce-cloud-k64k3c49m-vercel-solutions-vtest314.vercel.app/

fixes: #164

SalesForce Cloud Commerce Provider

  • instead of REST / GraphQL API it's using SDK (not isomorphic)
  • getProducts use SDK search under the hood
  • API endpoint https://commerce-sfcc-dominiksipowicz.vercel.app/api/catalog/products?search=dress

How to test?

  • API endpoint https://commerce-sfcc-dominiksipowicz.vercel.app/api/catalog/products?search=dress
  • storefront: https://commerce-sfcc-dominiksipowicz.vercel.app/

references:

features:

{
  "provider": "sfcc",
  "features": {
    "wishlist": false,
    "cart": false,
    "search": true,
    "customerAuth": false,
    "customCheckout": false
  }
}

Training Material and Documentation:

For a detailed introduction into commerce clouds feature set and data setup please refer to our Training Material and Documentation:

Salesforce Trailhead for B2C Commerce Cloud: https://trailhead.salesforce.com/en/content/learn/trails/cc-overview
Salesforce Trailhead for Development on B2C Commerce Cloud: https://trailhead.salesforce.com/en/content/learn/trails/develop-for-commerce-cloud

B2C Commerce Cloud Documentation:https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp
B2C Commerce Cloud Open Commerce API Doc: https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/OCAPI/current/usage/OpenCommerceAPI.html?cp=0_15
Developer Center for Commerce Cloud (Commerce APIs specifically): https://developer.salesforce.com/docs/commerce/commerce-api/overview
SLAS Org Admin Setup Guide: https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=slas-admin:Summary

@vercel
Copy link

vercel bot commented Apr 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

commerce-bigcommerce – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-bigcommerce/2uDF7N5GUeaaJMqyfK15GkzV6eAT
✅ Preview: https://commerce-bigcommerce-git-sfcc-c2e0e0-vercel-solutions-vtest314.vercel.app

commerce-shopify – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-shopify/FButDu9LE9TyZEh7CCZBwp7MpeYD
✅ Preview: https://commerce-shopify-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-swell – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-swell/21j3QhT5DpAC2UK39gvzmAsnYfFd
✅ Preview: https://commerce-swell-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-vendure – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-vendure/A7MVoW5A4bszeTeyB2KHsH2wHcDN
✅ Preview: https://commerce-vendure-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-local – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-local/66kphxVW9wCB1FyLqMT5p5MWtHEQ
✅ Preview: https://commerce-local-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-saleor – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-saleor/GYjKkUpFoatqs4zZXhxaS8MLwU4V
✅ Preview: https://commerce-saleor-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-ordercloud – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-ordercloud/9VtB7DsuWeiA9yFVikCyfJ9EWPQd
✅ Preview: https://commerce-ordercloud-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-spree – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-spree/49Cwsa6mzdoaZXwppyWcufcN2uVW
✅ Preview: https://commerce-spree-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

commerce-kibocommerce – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-kibocommerce/CGakRyyBqDKyHNAohyxcS2bbSJuq
✅ Preview: https://commerce-kibocommerce-git-sfcc-3ffb45-vercel-solutions-vtest314.vercel.app

commerce-commercejs – ./site

🔍 Inspect: https://vercel.com/vercel-solutions-vtest314/commerce-commercejs/8NHYJhiZjfm3wTyFgoHgYU7xYbxk
✅ Preview: https://commerce-commercejs-git-sfcc-provider-vercel-solutions-vtest314.vercel.app

site/tsconfig.json Outdated Show resolved Hide resolved
packages/sfcc/src/api/operations/get-all-product-paths.ts Outdated Show resolved Hide resolved
packages/sfcc/.env.template Outdated Show resolved Hide resolved
Copy link
Member

@lfades lfades left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments!

packages/sfcc/README.md Outdated Show resolved Hide resolved
packages/sfcc/src/api/operations/get-product.ts Outdated Show resolved Hide resolved
packages/sfcc/src/api/utils/get-auth-token.ts Show resolved Hide resolved
@lfades lfades merged commit 66e3269 into main Apr 20, 2022
@lfades lfades deleted the sfcc-provider branch April 20, 2022 17:08
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 25, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 25, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 26, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 26, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 26, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
vannguyenn pushed a commit to reactioncommerce/commerce that referenced this pull request Apr 26, 2022
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
loan-laux pushed a commit to TrellisCommerce/next-commerce-bigcommerce that referenced this pull request May 11, 2023
* new SFCC provider

* add search

* normalization + search

* categories as search results

* adress PR feedback

* Update README.md

* get all paths for SSG

* product variants and options

* Apply suggestions from code review

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* remove console log

* prettier

* clean console log

* ran prettier

* Updated readme

* remove static data and revert config changes

* set default site

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provider: Salesforce Commerce Cloud
2 participants