Skip to content

SFCC provider - #727

Merged
lfades merged 16 commits into
mainfrom
sfcc-provider
Apr 20, 2022
Merged

SFCC provider#727
lfades merged 16 commits into
mainfrom
sfcc-provider

Conversation

@dominiksipowicz

@dominiksipowiczdominiksipowicz commented Apr 4, 2022

Copy link
Copy Markdown
Member

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

vercelBot commented Apr 4, 2022

Copy link
Copy Markdown
Contributor

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

Comment threadsite/tsconfig.json Outdated
Comment threadpackages/sfcc/src/api/operations/get-all-product-paths.ts Outdated
Comment threadpackages/sfcc/.env.template Outdated

@lfadeslfades left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added some comments!

Comment threadpackages/sfcc/README.md Outdated
Comment threadpackages/sfcc/src/api/operations/get-product.ts Outdated
Comment threadpackages/sfcc/src/api/utils/get-auth-token.ts
Comment threadpackages/sfcc/README.md Outdated
Comment threadpackages/sfcc/src/api/endpoints/catalog/products/get-products.ts Outdated
Comment threadpackages/sfcc/src/api/endpoints/catalog/products/get-products.ts Outdated
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
@vercel

vercelBot commented Apr 19, 2022

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewUpdated
commerce-bigcommerce✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-commercejs✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-kibocommerce✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-local✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-ordercloud✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-saleor✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-shopify✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-spree✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-swell✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
commerce-vendure✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)
salesforce-commerce-cloud✅ Ready (Inspect)Visit PreviewApr 20, 2022 at 11:45AM (UTC)

Comment threadpackages/sfcc/src/data.json Outdated
Comment on lines +1 to +13
{
"products": [
{
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzU0NDczMjUwMjQ0MjA=",
"name": "New Short Sleeve T-Shirt",
"vendor": "Next.js",
"path": "/new-short-sleeve-t-shirt",
"slug": "new-short-sleeve-t-shirt",
"price": { "value": 25, "currencyCode": "USD" },
"descriptionHtml": "<p><span>Show off your love for Next.js and Vercel with this unique,&nbsp;</span><strong>limited edition</strong><span>&nbsp;t-shirt. This design is part of a limited run, numbered drop at the June 2021 Next.js Conf. It features a unique, handcrafted triangle design. Get it while supplies last – only 200 of these shirts will be made!&nbsp;</span><strong>All proceeds will be donated to charity.</strong></p>",
"images": [
{
"url": "/assets/drop-shirt-0.png",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@dominiksipowicz what is this file for?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider: Salesforce Commerce Cloud

2 participants

@dominiksipowicz@lfades