Skip to main content

#SFCC1 人がディスカッション中

Hi Team,

I have a requirement to hide those SKUs from the PDP if they have not been assigned a price book.

If it is a master, show only those SKUs with a price book.

If it is an SKU, we will show the 404 page as required.

 

#Security  #SFCC  #SFCC-SFMC Integration  #SFCC Administrator  #Sfcc-introductions  #Sfcc-ask-salesforce

3 件の回答
  1. 8月17日 5:12

    Hi @iqbal,

    Which architecture in SFCC js controller or pipeline So based on that I can suggest it.

0/9000
3 件の回答
  1. 2023年11月20日 22:32

    Has anyone gotten this to work? I created a new cartridge with /cartridge/templates/default/order/orderdetails.isml and /cartridge/templates/default/order/paymentdetails.isml but they are not being invoked when I lookup an order. The only one I can see working is /cartridge/templates/default/order/printorderinvoice.isml (which is called when you click the Print Order button)

0/9000

Hey,

 

I have recently started working on salesforce commerce cloud. I am trying to Install and Configure SFRA on my Sandbox. This is the trailhead I am following 'https://trailhead.salesforce.com/en/content/learn/modules/b2c-developer-resources-and-tools/b2c-developer-install-config-sfra'.

 

Issue: 

1) When running npm run uploadCartridge I am getting the Error: Unauthorized. What places should I check to see if my permissions are correct? And what are the correct permissions.

2) I am not sure what should be the user and password in dw.json. Will it be my Business Manager user name and password? 

 

I have tried using dwupload but getting the same error there as well.

 

Logs:

> sfra@5.1.0 uploadCartridge D:\SFCC\SFRA\storefront-reference-architecture

> sgmf-scripts --uploadCartridge app_storefront_base && sgmf-scripts --uploadCartridge modules && sgmf-scripts --uploadCartridge bm_app_storefront_base

{ 'file-upload': false,

  'cartridge-upload': false,

  'directory-create': false,

  'file-delete': false }

[05:34:58] Error: Unauthorized

{ 'file-upload': false,

  'cartridge-upload': false,

  'directory-create': false,

  'file-delete': false }

[05:35:04] Error: Unauthorized

{ 'file-upload': false,

  'cartridge-upload': false,

  'directory-create': false,

  'file-delete': false }

[05:35:11] Error: Unauthorized

 

Any help will be greatly appreciated. Thanks in advance.

3 件のコメント
  1. 2023年10月17日 8:30

    Hi @Christopher Lossa I am experiencing the same issue while building a new cartridge:

    Hi I am experiencing the same issue while building a new cartridge:I have attached also my package.json file from storefront-reference-architecture github project.

    I have attached also my package.json file from storefront-reference-architecture github project.

     

    My User roles in BM are:

    - Business Manager Administrator

    - Business Manager User

     

    Maybe I am using an older version of the sgmf-scripts package?

0/9000

Do you have such types of questions in your mind?

 

What is Salesforce Commerce Cloud and how can it empower businesses in the e-commerce industry?

What is Google Analytics 4 and how does it differ from Google Analytics Universal?

What are the advantages of integrating Salesforce Commerce Cloud with Google Analytics 4 for businesses?

Engage in a live Q&A session to get personalized guidance.

 

If yes, then

join me on Friday, 23 June 2023, in the upcoming Salesforce webinar and get the answers to all your questions.

 

Don't miss this opportunity! Register now and secure your spot:

https://bit.ly/3CiC4AD

Do you have such types of questions in your mind? What is Salesforce Commerce Cloud and how can it empower businesses in the e-commerce industry?

 

#SFCC #Salesforce #Webinar #Ecommerce Website #Google #GA4 #SalesforceCommerceCloud

0/9000

Do you have such types of questions in your mind?

 

What is Salesforce Commerce Cloud and how can it empower businesses in the e-commerce industry?

What is Google Analytics 4 and how does it differ from Google Analytics Universal?

What are the advantages of integrating Salesforce Commerce Cloud with Google Analytics 4 for businesses?

Engage in a live Q&A session to get personalized guidance.

 

If yes, then

join me on Friday, 23 June 2023, in the upcoming Salesforce webinar and get the answers to all your questions.

 

Don't miss this opportunity! Register now and secure your spot:

https://bit.ly/3CiC4AD

 

Do you have such types of questions in your mind? What is Salesforce Commerce Cloud and how can it empower businesses in the e-commerce industry?

 

#SFCC #Salesforce #Webinar #Ecommerce Website #Google #GA4 #SalesforceCommerceCloud

0/9000

I am trying to sort the Content search model Result with creation_date attribute ID. is it possible to sort the contentSearchModel result with the when its created?

Example ( What I tried ) :

 

var ContentSearchModel = require('dw/content/ContentSearchModel');

var ContentSearch = new ContentSearchModel();

ContentSearch.setFolderID(folderID);

ContentSearch.setSortingCondition('creation_date', dw.catalog.SearchModel.SORT_DIRECTION_DESCENDING);

ContentSearch.search();

The requirement is to get the latest content asset created in the folder.

 

Thanks.

 

#SFCC #B2C Commerce #Commerce Cloud #Salesforce Developer 

6 件のコメント
0/9000

Hi @* B2C Commerce * members, Can anybody tell me if we can upload a pdf file to Impex directly from storefront. For example user uploads his resume and it should be stored in Impex.

Thanks.

 

#SFCC #B2C Commerce #Commerce Cloud

1 件のコメント
0/9000

☁️ Hello #SFCC community! ☁️

 

In case you missed it on my LinkedIn, I have been working on a project for a few months and am excited to launch the first job board dedicated to the Salesforce Commerce Cloud community: SFCC Jobs 🥳

 

This job board is worldwide and open to all people with experience in SFCC (not only developers) 👍

 

🔎 Are you an SFCC Recruiter?

 

Finding the perfect candidate on SFCC Jobs has never been easier 🚀 You can filter candidates by "SFCC years of XP", post a job advert and wait for the applications to roll in, or even create candidate registration alerts!

 

👨‍💻 Are you an SFCC Job Seeker?

 

With SFCC Jobs, you can narrow in on Commerce Cloud-specific jobs. We know many Salesforce job boards, but this is the first dedicated to Commerce Cloud! 🛒

 

✅ I manually validate all the job adverts to ensure they don't require other Salesforce skills like Marketing Cloud or Service Cloud. 🕵️‍♂️

 

Don't miss the opportunity to be one of the first recruiters to join and post job adverts. Register now. 😉

 

➡️ www.sfcc-jobs.com ⬅️

 

------------------------------------------------------------------------------------

 

🔥 SPECIAL LINKEDIN CONTEST FOR SFCC JOBS (Only for Candidates):🔥

 

For the official launch of SFCC Jobs, we are giving away a MacBook Air M2 to one lucky person! 💻

 

And in collaboration with @Amalia Murray at Salesforce, we will give away 5 free certifications vouchers. 🤑

As a bonus, everybody who enters will receive a 25% discount on the Commerce Cloud training course at Trailhead Academy. 🤩

 

To participate, follow these steps:

 

1️⃣ Like and comment on the original post, or share the original post (https://lnkd.in/dtV5eXbs)

2️⃣ Create an account as a "Candidate" on SFCC Jobs (at least one SFCC experience is required to participate)

3️⃣ Complete at least 50% of your profile by December 29, 2022

4️⃣ To get a chance to win the Salesforce prizes, join the Commerce Trailblazer Community 👉 sforce.co/commercecrew

 

Good luck, everyone! 🍀

☁️ Hello community! ☁️ In case you missed it on my LinkedIn, I have been working on a project for a few months and am excited to launch the first job board dedicated to the Salesforce Commerce Cloud c

8 件のコメント
  1. 2023年1月6日 21:05

    Thank you, Maxime, for creating the Sfcc-jobs platform and for providing this opportunity to the SFCC community by conducting such a generous giveaway. Also, this helped to connect with various talents all over the world.

    Wish you luck to you and the one who bags the price! Have a great new year!

0/9000

 error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style,

Whenever I am trying to compile JS I'm getting this error. cmd used:-npm run compile:js 

Is anyone can help me?

config. did:-

Node v :- 10.3.0, 

SFRA repos.

Visual Studio Code

3 件のコメント
  1. 2022年11月1日 10:13

     This comes up due to the Line Break Configuration set for a cartridge, You can set up Lint Configurations in each cartridge in file '.stylelintrc'.

0/9000

Hello,

I am doing an exercise where I need to pass data to the response (setViewdata) but when trying to do so, I get an error:

Error: Cannot render template without name or data in controller Basket

 

What am I doing wrong ?

Thanks for your help.

 

isml template:

<isloop items="${pdict.Basket.getProductLineItems()}" var="productLineItem" status="loopstate">

${productLineItem.productName}<br/>

Count ${loopstate.count} Index ${loopstate.index} ${productLineItem.product.name}<br/>

</isloop>

 

controller js:

"use strict";

var server = require("server");

var BasketMgr = require("dw/order/BasketMgr");

server.get("Show", function (req, res, next) {

// Pass viewData to the template

var basket = BasketMgr.getCurrentBasket();

res.setViewData({ Basket: basket });

next();

});

module.exports = server.exports();

#B2C Commerce #SFCC 

1 件の回答
  1. 2022年10月25日 8:55

    You have a endpoint without any rendering, so there is no link to the isml you are mentioning above. You need:

    res.render('/your/template', {

    Basket: basket

    });

    And the object you add into the rendering method is the viewData object for the response. So you can skip using "res.setViewData({ Basket: basket })" explicitly. This call typically becomes relevant if you use the append/prepend mechanisms or other situations where you want to add something from another place other than the rendering controller.

0/9000