SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
744 stars 389 forks source link

[wait for other beautacus tickets] Update Beautacus sampledata #2551

Closed LTiger14 closed 5 years ago

LTiger14 commented 5 years ago

The beautacus backend at https://api.cehm0u1-sccdemoin1-d3-public.model-t.myhybris.cloud/ is outdated which causes the frontend to be missing certain features.

This ticket is to update beauty sample data with the latest updates from spacceleratorsamplesaddon.

WeizhengSap commented 5 years ago

PR is here: https://stash.hybris.com/projects/C3PO/repos/beautystore/pull-requests/1/overview

WeizhengSap commented 5 years ago

To QA and code reviewer: You have to clone the "beautystore" into source folder. You need to add <extension name="beautystore"/> into localextension.xml. Then rebuild and initialize the system. Then, in app.module.ts,

siteContext: {
        urlEncodingParameters: ['BASE_SITE', 'LANGUAGE', 'CURRENCY'],
        parameters: {
          BASE_SITE: {
            values: [
              'electronics-spa',
              'electronics',
              'apparel-de',
              'apparel-uk',
              'beauty',
            ],
            defaultValue: 'beauty',
            persistence: 'route',
          },
        },
      }

Beauty store only have "English". So, there is no "language" selector. But, it has 2 currencies, so you should be able to see the "currency" selector". Then, you can do a smoke tests.

KateChuen commented 5 years ago

Started testing on dev2. Able to load the beautacus and see the currency selector. beautyCurrency

RadhepS commented 5 years ago

Hi Kate, for this issue: "Cannot complete checkout since the payment is calling "localhost". Will probably need to test it on dev17."

I had a similar issue and it was fixed by adding sop.post.url=https://localhost:9002/acceleratorservices/sop-mock/process into my local.properties file.

KateChuen commented 5 years ago

Tested it on dev2. Can checkout indeed. But getting a 404 on OrderConfirmation page. Ticket https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/2938