Shahid
Shahid

Reputation: 21

powertools spartacus B2B site in CX 2005 verinot able to add product into the cart

i have setup OOTB Powertools B2B in CX 2005 with spartacus storefront . but while adding the product into the cart i am getting this error.

Error: 
"message" : "It's not allowed to execute this call from the current channel",
      "type" : "AccessDeniedError"

The add to cart post url is : https://localhost:9002/occ/v2/powertools-spa/users/anonymous/carts/a6ea625f-6ee4-4b01-9b6a-26a4bfbbe674/entries?code=3755213&qty=1&lang=en&curr=USD

error details

  1. i have already added the cors params in local.properties and ran the impex as well , which is mentioned in the https://sap.github.io/spartacus-docs/cors/
  2. electronics store is working fine only powertools has this issue.

Upvotes: 2

Views: 1236

Answers (2)

Fabio Elias Filpi
Fabio Elias Filpi

Reputation: 21

I would like to contribute!

Here in my project I am instantiating a Spartacua TUA (Telco Utilities Accelerator)

I've been having this problem "It's not allowed to execute this call from the current channel" and in my case the solution was to review the property "api.compatibility.b2c.channels" which was with the B2B value for the B2C store. I changed the value and it worked correctly again!

Upvotes: 1

L Tiger
L Tiger

Reputation: 581

We made some changes to Powertools in our sample data in 1.3. That said, Powertools is still not fully supported. We are moving in this direction with the 2+ releases.

Please see this disclaimer for Powertools https://sap.github.io/spartacus-docs/release-information/#b2b-storefront-features.

Upvotes: 2

Related Questions